Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit fa38dee

Browse files
committed
work on configuration
1 parent 3018b54 commit fa38dee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tasks/configuration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
template:
66
src: "../templates/etc/prometheus/prometheus.yml.j2"
77
dest: "{{ prometheus_config_dir }}/prometheus.yml"
8+
force: yes
89
owner: "{{ prometheus_user }}"
910
group: "{{ prometheus_group }}"
1011
mode: 0644

templates/etc/prometheus/prometheus.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ scrape_configs:
4141
{% if job.metrics_path | default('') %}
4242
metrics_path: '{{job.metrics_path}}'
4343
{% endif %}
44-
{% if job.target_groups is defined %}
45-
target_groups:
44+
{% if job.static_configs is defined %}
45+
staitc_configs:
4646
- targets:
4747
{% for target in job.target_groups.targets %}
4848
- "{{ target }}"

0 commit comments

Comments
 (0)