services.prometheus.scrapeConfigs.*.bearer_token_file

Sets the Authorization header on every scrape request with the bearer token read from the configured file. It is mutually exclusive with bearer_token.

Type
null or string
Default
null
Declared
<nixpkgs/nixos/modules/services/monitoring/prometheus/default.nix>