Commit 6e95949f authored by ale's avatar ale

Add configurable metrics_path for monitoring_endpoints

parent 86982d3c
Pipeline #3359 passed with stage
in 4 minutes and 54 seconds
......@@ -212,6 +212,8 @@ Prometheus to find the service endpoints. This can only have the value
`scheme`: HTTP scheme for the service endpoint. The default is *https*.
`metrics_path`: Path for metrics if different from the default of `/metrics`.
### Global traffic routing
Services can define *public* HTTP and TCP endpoints, that will be
......
......@@ -50,6 +50,9 @@
{% macro job_service_config(service_name, target_config) %}
- job_name: "{{ target_config.get('job_name', service_name) }}"
scheme: "{{ target_config.get('scheme', 'https') }}"
{% if target_config.get('metrics_path') %}
metrics_path: "{{ target_config['metrics_path'] }}"a
{% endif %}
{% if target_config.get('scheme', 'https') == 'https' %}
tls_config:
ca_file: /etc/credentials/x509/prometheus/ca.pem
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment