Add basic authentication support to metrics endpoint

This commit is contained in:
Bob Shannon
2018-11-14 15:42:47 -05:00
parent b47a4954c9
commit 362b3740ed
4 changed files with 42 additions and 0 deletions

View File

@@ -454,6 +454,15 @@ Ex `filters = sqlstore:debug`
### enabled
Enable metrics reporting. defaults true. Available via HTTP API `/metrics`.
### basic_auth_enabled
Enables basic authentication on the metrics endpoint. Defaults to false.
### basic_auth_username
Username to use for basic authentication on the metrics endpoint.
### basic_auth_password
Password to use for basic authentication on the metrics endpoint.
### interval_seconds
Flush/Write interval when sending metrics to external TSDB. Defaults to 10s.