Prometheus: [devenv] provision gdev-prometheus development environment with basic auth (#71153)

* provision gdev-prometheus development environment with basic auth
This commit is contained in:
Galen Kistler 2023-07-06 13:11:55 -05:00 committed by GitHub
parent 30fc075cd7
commit 76f7152904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

View File

@ -56,11 +56,15 @@ datasources:
type: prometheus
access: proxy
url: http://localhost:9090
basicAuth: true #username: admin, password: admin
basicAuthUser: admin
jsonData:
manageAlerts: true
alertmanagerUid: gdev-alertmanager
prometheusType: Prometheus #Cortex | Mimir | Prometheus | Thanos
prometheusVersion: 2.40.0
secureJsonData:
basicAuthPassword: admin #https://grafana.com/docs/grafana/latest/administration/provisioning/#using-environment-variables
- name: gdev-slow-prometheus
uid: gdev-slow-prometheus-uid

View File

@ -2,3 +2,4 @@ FROM prom/prometheus:latest
ADD prometheus.yml /etc/prometheus/
ADD recording.yml /etc/prometheus/
ADD alert.yml /etc/prometheus/
ADD web.yml /etc/prometheus/

View File

@ -10,6 +10,7 @@
--storage.tsdb.path=/prometheus
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
--web.config.file=/etc/prometheus/web.yml
node_exporter:
image: prom/node-exporter

View File

@ -0,0 +1,3 @@
basic_auth_users:
# username: admin, password: admin
admin: $2a$12$HvzPxejEHakuEIjxQ8uQrOaZ57GmFznB6M/w.85MpdEtSFFOOyDgW