Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
prometheus
Commits
dbe4f3eb
Commit
dbe4f3eb
authored
5 years ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
prometheus: Fix scraping prometheus’ own metrics
parent
54808597
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
prometheus/defaults/main.yml
+1
-0
1 addition, 0 deletions
prometheus/defaults/main.yml
prometheus/templates/prometheus.yml.j2
+1
-0
1 addition, 0 deletions
prometheus/templates/prometheus.yml.j2
with
2 additions
and
0 deletions
prometheus/defaults/main.yml
+
1
−
0
View file @
dbe4f3eb
---
---
prometheus_args
:
"
"
prometheus_args
:
"
"
prometheus_metrics_path
:
/metrics
# This variable intentionally left null. They need to exist, so that the
# This variable intentionally left null. They need to exist, so that the
# template works, but they need to have a value (empty string does not work).
# template works, but they need to have a value (empty string does not work).
prometheus_rules
:
null
prometheus_rules
:
null
...
...
This diff is collapsed.
Click to expand it.
prometheus/templates/prometheus.yml.j2
+
1
−
0
View file @
dbe4f3eb
...
@@ -18,6 +18,7 @@ scrape_configs:
...
@@ -18,6 +18,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds.
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_interval: 5s
scrape_timeout: 5s
scrape_timeout: 5s
metrics_path: '{{ prometheus_metrics_path }}'
static_configs:
static_configs:
- targets:
- targets:
- 'localhost:9090'
- 'localhost:9090'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment