Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
float
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
float
Commits
6e95949f
Commit
6e95949f
authored
Jun 10, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configurable metrics_path for monitoring_endpoints
parent
86982d3c
Pipeline
#3359
passed with stage
in 4 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
docs/configuration.md
docs/configuration.md
+2
-0
roles/prometheus/templates/prometheus.yml.j2
roles/prometheus/templates/prometheus.yml.j2
+3
-0
No files found.
docs/configuration.md
View file @
6e95949f
...
...
@@ -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
...
...
roles/prometheus/templates/prometheus.yml.j2
View file @
6e95949f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment