-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from manzsolutions-lpr/fix-scrape-config-path
fix: scrape config files path
- Loading branch information
Showing
9 changed files
with
104 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Run local preparation | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Create scrape_configs directory | ||
ansible.builtin.file: | ||
name: /tmp/prometheus/scrape_configs | ||
state: directory | ||
recurse: true | ||
check_mode: false | ||
- name: Create empty scrape config file | ||
ansible.builtin.file: | ||
name: /tmp/prometheus/scrape_configs/empty_scrapes.yml | ||
state: touch | ||
mode: 0664 | ||
check_mode: false | ||
|
||
- name: Import shared preparation playbook | ||
import_playbook: "../../../../.config/molecule/alternative/prepare.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Run local preparation | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Create scrape_configs directory | ||
ansible.builtin.file: | ||
name: "{{ playbook_dir }}/../../prometheus/scrape_configs" | ||
state: directory | ||
recurse: true | ||
check_mode: false | ||
- name: Create empty scrape config file | ||
ansible.builtin.file: | ||
name: "{{ playbook_dir }}/../../prometheus/scrape_configs/empty_scrapes.yml" | ||
state: touch | ||
mode: 0664 | ||
check_mode: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters