mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: [devenv] provision gdev-prometheus development environment with basic auth (#71153)
* provision gdev-prometheus development environment with basic auth
This commit is contained in:
parent
30fc075cd7
commit
76f7152904
@ -56,11 +56,15 @@ datasources:
|
|||||||
type: prometheus
|
type: prometheus
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://localhost:9090
|
url: http://localhost:9090
|
||||||
|
basicAuth: true #username: admin, password: admin
|
||||||
|
basicAuthUser: admin
|
||||||
jsonData:
|
jsonData:
|
||||||
manageAlerts: true
|
manageAlerts: true
|
||||||
alertmanagerUid: gdev-alertmanager
|
alertmanagerUid: gdev-alertmanager
|
||||||
prometheusType: Prometheus #Cortex | Mimir | Prometheus | Thanos
|
prometheusType: Prometheus #Cortex | Mimir | Prometheus | Thanos
|
||||||
prometheusVersion: 2.40.0
|
prometheusVersion: 2.40.0
|
||||||
|
secureJsonData:
|
||||||
|
basicAuthPassword: admin #https://grafana.com/docs/grafana/latest/administration/provisioning/#using-environment-variables
|
||||||
|
|
||||||
- name: gdev-slow-prometheus
|
- name: gdev-slow-prometheus
|
||||||
uid: gdev-slow-prometheus-uid
|
uid: gdev-slow-prometheus-uid
|
||||||
|
@ -2,3 +2,4 @@ FROM prom/prometheus:latest
|
|||||||
ADD prometheus.yml /etc/prometheus/
|
ADD prometheus.yml /etc/prometheus/
|
||||||
ADD recording.yml /etc/prometheus/
|
ADD recording.yml /etc/prometheus/
|
||||||
ADD alert.yml /etc/prometheus/
|
ADD alert.yml /etc/prometheus/
|
||||||
|
ADD web.yml /etc/prometheus/
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
--storage.tsdb.path=/prometheus
|
--storage.tsdb.path=/prometheus
|
||||||
--web.console.libraries=/usr/share/prometheus/console_libraries
|
--web.console.libraries=/usr/share/prometheus/console_libraries
|
||||||
--web.console.templates=/usr/share/prometheus/consoles
|
--web.console.templates=/usr/share/prometheus/consoles
|
||||||
|
--web.config.file=/etc/prometheus/web.yml
|
||||||
|
|
||||||
node_exporter:
|
node_exporter:
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
|
3
devenv/docker/blocks/prometheus/web.yml
Normal file
3
devenv/docker/blocks/prometheus/web.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
basic_auth_users:
|
||||||
|
# username: admin, password: admin
|
||||||
|
admin: $2a$12$HvzPxejEHakuEIjxQ8uQrOaZ57GmFznB6M/w.85MpdEtSFFOOyDgW
|
Loading…
Reference in New Issue
Block a user