Files
Dmytro KozlovandGitHub 966086a74e deployment/docker: fix datasource provision file for cluster
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
2025-07-08 10:53:44 +02:00

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