services.nar-serve.metricsAddress

NixOS option

string
Written as a quoted string

Address to serve Prometheus metrics from, as host:port. The metrics get their own listener, thus they can stay on an address that is not the one the service answers the world from. An empty string does not serve metrics.

type: string
Default
""
Example
"127.0.0.1:9464"
declared in: nixos/modules/services/networking/nar-serve.nixView source on NixOS/nixpkgs →