add configuration for kong exporter

This commit is contained in:
Ludovic Cartier 2022-06-15 12:09:15 +02:00
parent d12356f09a
commit 2530f2ebf9

View File

@ -270,3 +270,19 @@ scrape_configs:
replacement: '${1}' replacement: '${1}'
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if prometheus_kong_exporter_targets is defined %}
# Kong exporter #
- job_name: kong
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
honor_labels: false
honor_timestamps: true
sample_limit: 0
static_configs:
- targets:
{% for target in prometheus_kong_exporter_targets %}
- {{ target }}
{% endfor %}
{% endif %}