diff --git a/tasks/configuration.yml b/tasks/configuration.yml index c01c11a..3c31757 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -39,6 +39,7 @@ owner: "{{ prometheus_user }}" group: "{{ prometheus_group }}" mode: 0644 + delimiter: '\n### START FRAGMENT ###' validate: "{{ prometheus_bin_dir }}/promtool check-config %s" notify: - reload prometheus diff --git a/templates/etc/prometheus/prometheus.yml.j2 b/templates/etc/prometheus/prometheus.yml.j2 index 40c1000..692f648 100644 --- a/templates/etc/prometheus/prometheus.yml.j2 +++ b/templates/etc/prometheus/prometheus.yml.j2 @@ -13,9 +13,3 @@ rule_files: # A list of scrape configurations. scrape_configs: - - - job_name: 'prometheus' - scrape_interval: {{ prometheus_self_scrape_interval }} - scrape_timeout: {{ prometheus_self_evaluation_interval }} - static_configs: - - targets: ['localhost:9090']