mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
When you try to run `make docker-cluster-up` and try to check metrics in the Explore page of the Grafana, you will see the basic auth request. If you enter the correct login and password from the `auth-vm-cluster.yml` it will continue to ask about the username and password. It happens because the datasource is configured to ask for data vmauth, but in the configuration, no auth information is provided. Added the basich auth info to the datasource provision file
20 lines
601 B
YAML
20 lines
601 B
YAML
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: VictoriaMetrics - cluster
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://vmauth:8427/select/0/prometheus
|
|
isDefault: true
|
|
# Basic Auth credentials for the datasource
|
|
# This is used to authenticate with the vmauth service
|
|
# Note: please check changes in the vmauth configuration `auth-vm-cluster.yml`
|
|
# to ensure the credential match
|
|
basicAuth: true
|
|
basicAuthUser: foo
|
|
secureJsonData:
|
|
basicAuthPassword: bar
|
|
jsonData:
|
|
prometheusType: Prometheus
|
|
prometheusVersion: 2.24.0
|