+++ /dev/null
-global:
- scrape_interval: 5s
- scrape_timeout: 5s
- evaluation_interval: 15s
-alerting:
- alertmanagers:
- - static_configs:
- - targets: []
- scheme: http
- timeout: 10s
- api_version: v1
-scrape_configs:
-- job_name: 'prometheus'
- static_configs:
- - targets: ['localhost:9090']
-
-- job_name: host-http
- honor_timestamps: true
- metrics_path: /metrics
- scheme: http
- static_configs:
- - targets: ['localhost:8080']
- name: grafana-config
mountPath: /grafana-config
readOnly: true
- - name: grafana-datasource
- mountPath: /etc/grafana/provisioning/datasources/datasource.yaml
+ - name: grafana-provisioning
+ mountPath: /etc/grafana/provisioning
readOnly: true
- image: quay.io/prometheus/prometheus:latest
volumes:
- hostPath:
- path: ./conf-grafana/datasource.yaml
- type: File
- name: grafana-datasource
+ path: ./grafana-provisioning
+ name: grafana-provisioning
- hostPath:
- path: ./conf-grafana
+ path: ./grafana-config
name: grafana-config
- hostPath:
- path: ./conf-prometheus
+ path: ./prometheus-config
name: prometheus-config
- hostPath:
path: ./http
--- /dev/null
+global:
+ scrape_interval: 5s
+ scrape_timeout: 5s
+ evaluation_interval: 15s
+alerting:
+ alertmanagers:
+ - static_configs:
+ - targets: []
+ scheme: http
+ timeout: 10s
+ api_version: v1
+scrape_configs:
+- job_name: 'prometheus'
+ static_configs:
+ - targets: ['localhost:9090']
+
+- job_name: host-http
+ honor_timestamps: true
+ metrics_path: /metrics
+ scheme: http
+ static_configs:
+ - targets: ['localhost:8080']