mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-24 22:26:29 +09:00
metrics/cfg: add a new entry for the Prometheus listen address
This commit is contained in:
1 parent
d5fd7a5c00
commit
45d5ab30ff
2 files changed
+7
No files matched your search
@@ -284,6 +284,7 @@ func getHeadscaleConfig() headscale.Config {
|
||||
return headscale.Config{
|
||||
ServerURL: viper.GetString("server_url"),
|
||||
Addr: viper.GetString("listen_addr"),
|
||||
MetricsAddr: viper.GetString("metrics_listen_addr"),
|
||||
GRPCAddr: viper.GetString("grpc_listen_addr"),
|
||||
GRPCAllowInsecure: viper.GetBool("grpc_allow_insecure"),
|
||||
|
||||
|
||||
@@ -16,6 +16,12 @@ server_url: http://127.0.0.1:8080
|
||||
#
|
||||
listen_addr: 0.0.0.0:8080
|
||||
|
||||
# Address to listen to /metrics, you may want
|
||||
# to keep this endpoint private to your internal
|
||||
# network
|
||||
#
|
||||
metrics_listen_addr: 127.0.0.1:8081
|
||||
|
||||
# Address to listen for gRPC.
|
||||
# gRPC is used for controlling a headscale server
|
||||
# remotely with the CLI
|
||||
|
||||
Reference in new issue
Block a user