Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
14bd47b8
Commit
14bd47b8
authored
May 01, 2021
by
Kristian Klausen
🎉
Browse files
prometheus: Scrap Prometheus
parent
e9f7c970
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/prometheus/templates/prometheus.yml.j2
View file @
14bd47b8
...
...
@@ -24,6 +24,23 @@ remote_write:
password: {{ vault_prometheus_passwd }}
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['127.0.0.1:9090']
labels:
instance: "{{ ansible_fqdn }}"
- job_name: prometheus-domain
scheme: https
basic_auth:
username: {{ vault_prometheus_user }}
password: {{ vault_prometheus_passwd }}
static_configs:
- targets: ['{{ prometheus_domain }}:9090']
labels:
job: prometheus
instance: "{{ prometheus_domain }}"
- job_name: loki
static_configs:
- targets: ['127.0.0.1:3100']
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment