services.prometheus.exporters.elasticsearch.environmentFile

NixOS option

Path to an environment file, as defined in systemd.exec(5), used to pass credentials to the exporter without exposing them in the process arguments. It should contain either ES_USERNAME and ES_PASSWORD, or ES_API_KEY.

type: null or absolute path
Default
null
Example
"/run/secrets/elasticsearch-exporter.env"
declared in: nixos/modules/services/monitoring/prometheus/exporters.nixView source on NixOS/nixpkgs →