add support for rabbitmq
This commit is contained in:
@ -18,6 +18,7 @@ The present role :
|
|||||||
- elasticsearch
|
- elasticsearch
|
||||||
- nginx
|
- nginx
|
||||||
- opensearch (via plugin for opensearch https://github.com/aiven/prometheus-exporter-plugin-for-opensearch)
|
- opensearch (via plugin for opensearch https://github.com/aiven/prometheus-exporter-plugin-for-opensearch)
|
||||||
|
- rabbitmq
|
||||||
- Deploys Grafana with a dashboard for each exporter configured.
|
- Deploys Grafana with a dashboard for each exporter configured.
|
||||||
- Supports deploying VictoriaMetrics as the Prometheus backend.
|
- Supports deploying VictoriaMetrics as the Prometheus backend.
|
||||||
|
|
||||||
|
1815
files/dashboards/rabbitmq.json
Normal file
1815
files/dashboards/rabbitmq.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -302,3 +302,13 @@
|
|||||||
mode: '0750'
|
mode: '0750'
|
||||||
when: prometheus_elasticsearch_exporter_targets is defined
|
when: prometheus_elasticsearch_exporter_targets is defined
|
||||||
notify: "grafana-prometheus-restart"
|
notify: "grafana-prometheus-restart"
|
||||||
|
|
||||||
|
- name: "grafana-prometheus | import grafana rabbitmq dashboard"
|
||||||
|
copy:
|
||||||
|
src: dashboards/rabbitmq.json
|
||||||
|
dest: /opt/docker-compose/grafana-prometheus/dashboards/rabbitmq.json
|
||||||
|
owner: '1000'
|
||||||
|
group: '1000'
|
||||||
|
mode: '0750'
|
||||||
|
when: prometheus_rabbitmq_exporter_targets is defined
|
||||||
|
notify: "grafana-prometheus-restart"
|
@ -531,3 +531,19 @@ scrape_configs:
|
|||||||
replacement: '${1}'
|
replacement: '${1}'
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if prometheus_rabbitmq_exporter_targets is defined %}
|
||||||
|
# Rabbitmq #
|
||||||
|
- job_name: elasticsearch
|
||||||
|
scrape_interval: 15s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
{% for target in prometheus_rabbitmq_exporter_targets %}
|
||||||
|
- {{ target }}:15692
|
||||||
|
{% endfor %}
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: [ __address__ ]
|
||||||
|
target_label: instance
|
||||||
|
regex: '(.*):15692'
|
||||||
|
replacement: '${1}'
|
||||||
|
|
||||||
|
{% endif %}
|
Reference in New Issue
Block a user