formula-prometheus/prometheus/meta/grafana.yml
Dmitry Kalashnik 407c7776fb Add condition to remote_storage and pushgateway dashboards
Change-Id: If12b9aa69c9d5e40502fe6fafdb296c0bc6a8cfe
Closes-Bug: PROD-21466
2018-07-17 15:24:26 +04:00

32 lines
1.2 KiB
YAML

{% from "prometheus/map.jinja" import server, remote_storage_adapter, pushgateway, relay with context %}
dashboard:
prometheus-performances_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/server/{{server.version}}/prometheus_performances_prometheus.json
{%- if remote_storage_adapter.get('enabled', False) %}
remote_storage_adapter_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/remote_storage_adapter_prometheus.json
{%- endif %}
prometheus_stats_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/server/{{server.version}}/prometheus_stats_prometheus.json
alertmanager_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/alertmanager_prometheus.json
{%- if pushgateway.get('enabled', False) %}
pushgateway_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/pushgateway_prometheus.json
{%- endif %}
{%- if relay.get('enabled', False) %}
relay_prometheus:
datasource: prometheus
format: json
template: prometheus/files/grafana_dashboards/relay_prometheus.json
{%- endif %}