You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means we can allow securing the /metrics endpoint with API key authorization. However, we would likely want to configure a separate API key for metrics that is different than the API key used for the other routes.
.NET Monitor does not currently support authorization scopes except for in the case of Entra ID authentication where a single scope is necessary to allow the use of .NET Monitor for each user. Additionally, there is no plan to add support for multiple API keys as there has not been any customer feedback for this. If fine-grained authorization is added and customers ask for multiple API keys, this can be revisited.
It appears that Prometheus does support authorization: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
This means we can allow securing the
/metrics
endpoint with API key authorization. However, we would likely want to configure a separate API key for metrics that is different than the API key used for the other routes.Configuration could look like:
This allows for multiple scenarios:
The text was updated successfully, but these errors were encountered: