Skip to main content

Metrics Basic Authentication

Summary

Metrics Basic Authentication requires Basic HTTP Authentication to access the metrics endpoint.

To support this in Prometheus, consult the basic_auth option in the scrape_config documentation.

How to configure

Config file keysEnvironment variablesTypeUsage
metrics_basic_authenticationMETRICS_BASIC_AUTHENTICATIONstring (base64 encoded)optional

Examples

# for username: x and password: y
metrics_basic_authentication: eDp5

METRICS_BASIC_AUTHENTICATION=eDp5