services.prometheus.pushgateway.persistMetrics

NixOS option

Whether to persist metrics to a file. When enabled metrics will be saved to a file called metrics in the directory /var/lib/pushgateway. The directory below /var/lib can be set using services.prometheus.pushgateway.stateDir.

type: boolean
Default
false
declared in: nixos/modules/services/monitoring/prometheus/pushgateway.nixView source on NixOS/nixpkgs →