services.prometheus.exporters.elasticsearch.url
NixOS option
URI of the Elasticsearch (or OpenSearch) node to scrape, passed as --es.uri. Any credentials embedded here are overridden by the ES_USERNAME/ES_PASSWORD or ES_API_KEY environment variables when environmentFile is set.
type: stringDefault
"http://localhost:9200"
Example
declared in: nixos/modules/services/monitoring/prometheus/exporters.nixView source on NixOS/nixpkgs →"https://localhost:9200"