prometheus
Options
Section titled “Options”services.prometheus.enable
Section titled “services.prometheus.enable”Whether to enable Prometheus monitoring system.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.prometheus.package
Section titled “services.prometheus.package”Which package of Prometheus to use
Type: package
Default:
pkgs.prometheusDeclared by:
services.prometheus.advanced.storage
Section titled “services.prometheus.advanced.storage”Storage configuration
Type: attribute set
Default:
{ }Declared by:
services.prometheus.advanced.tsdb
Section titled “services.prometheus.advanced.tsdb”TSDB configuration
Type: attribute set
Default:
{ }Declared by:
services.prometheus.alerting
Section titled “services.prometheus.alerting”Alerting configuration
Type: null or (attribute set)
Default:
nullDeclared by:
services.prometheus.experimentalFeatures.enableExemplars
Section titled “services.prometheus.experimentalFeatures.enableExemplars”Enable exemplar storage
Type: boolean
Default:
falseDeclared by:
services.prometheus.experimentalFeatures.enableOTLP
Section titled “services.prometheus.experimentalFeatures.enableOTLP”Enable OTLP receiver
Type: boolean
Default:
falseDeclared by:
services.prometheus.experimentalFeatures.enableTracing
Section titled “services.prometheus.experimentalFeatures.enableTracing”Enable tracing
Type: boolean
Default:
falseDeclared by:
services.prometheus.extraArgs
Section titled “services.prometheus.extraArgs”Additional arguments to pass to Prometheus
Type: string
Default:
""Declared by:
services.prometheus.globalConfig
Section titled “services.prometheus.globalConfig”Global Prometheus configuration
Type: attribute set
Default:
{ evaluation_interval = "1m"; scrape_interval = "1m"; scrape_timeout = "10s";}Declared by:
services.prometheus.port
Section titled “services.prometheus.port”Port for Prometheus web interface.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9090Declared by:
services.prometheus.remoteRead
Section titled “services.prometheus.remoteRead”Remote read configurations
Type: list of (attribute set)
Default:
[ ]Declared by:
services.prometheus.remoteWrite
Section titled “services.prometheus.remoteWrite”Remote write configurations
Type: list of (attribute set)
Default:
[ ]Declared by:
services.prometheus.ruleFiles
Section titled “services.prometheus.ruleFiles”List of rule files to load
Type: list of string
Default:
[ ]Declared by:
services.prometheus.scrapeConfigs
Section titled “services.prometheus.scrapeConfigs”List of scrape configurations
Type: list of (attribute set)
Default:
[ ]Declared by:
services.prometheus.storage.path
Section titled “services.prometheus.storage.path”Path where Prometheus will store its database
Type: string
Default:
${config.devenv.state}/prometheusDeclared by:
services.prometheus.storage.retentionTime
Section titled “services.prometheus.storage.retentionTime”How long to retain data
Type: string
Default:
"15d"Declared by:

