services.prometheus.scrapeConfigs.*.bearer_token_file

NixOS option

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 in: nixos/modules/services/monitoring/prometheus/default.nixView source on NixOS/nixpkgs →