-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into install_amtool_when_installation_disabled
- Loading branch information
Showing
191 changed files
with
3,800 additions
and
551 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
any_errors_fatal: true | ||
tasks: | ||
- name: "Run role" | ||
ansible.builtin.include_role: | ||
name: "prometheus.prometheus.{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" |
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,22 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Description: Lint the defaults/main.yml against the meta/arguments_spec.yml | ||
|
||
lint_diff() { | ||
diff -u \ | ||
<(yq 'keys | .[]' "${role}/defaults/main.yml" | sort -u) \ | ||
<(yq '.argument_specs.main.options | keys | .[] ' "${role}/meta/argument_specs.yml" | sort -u) | ||
return $? | ||
} | ||
|
||
error=0 | ||
|
||
for role in roles/* ; do | ||
echo "Checking ${role}" | ||
if ! lint_diff ; then | ||
echo "ERROR: ${role}: meta/argument_specs.yml doesn't match defaults/main.yml" | ||
error=1 | ||
fi | ||
done | ||
|
||
exit "${error}" |
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
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ plugins: | |
shell: {} | ||
strategy: {} | ||
vars: {} | ||
version: 0.5.2 | ||
version: 0.6.1 |
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,34 @@ | ||
--- | ||
provisioner: | ||
inventory: | ||
group_vars: | ||
all: | ||
alertmanager_binary_local_dir: '/tmp/alertmanager-linux-amd64' | ||
alertmanager_config_dir: /opt/am/etc | ||
alertmanager_db_dir: /opt/am/lib | ||
alertmanager_web_listen_address: '127.0.0.1:9093' | ||
alertmanager_web_external_url: 'http://localhost:9093/alertmanager' | ||
alertmanager_resolve_timeout: 10m | ||
alertmanager_slack_api_url: "http://example.com" | ||
alertmanager_receivers: | ||
- name: slack | ||
slack_configs: | ||
- send_resolved: true | ||
api_url: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX' | ||
channel: '#alerts' | ||
alertmanager_route: | ||
group_by: ['alertname', 'cluster', 'service'] | ||
group_wait: 30s | ||
group_interval: 5m | ||
repeat_interval: 3h | ||
receiver: slack | ||
routes: | ||
- match_re: | ||
service: ^(foo1|foo2|baz)$$ | ||
receiver: slack | ||
alertmanager_mesh: | ||
listen-address: "127.0.0.1:6783" | ||
peers: | ||
- "127.0.0.1:6783" | ||
- "alertmanager.demo.do.prometheus.io:6783" | ||
version: 0.19.0 |
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
Oops, something went wrong.