Compare commits
No commits in common. "main" and "transcaffeine/alertmanager-refactor" have entirely different histories.
main
...
transcaffe
@ -17,7 +17,7 @@ metrics or alerting.
|
|||||||
- [`grafana`](roles/grafana/README.md): a popular visualization and
|
- [`grafana`](roles/grafana/README.md): a popular visualization and
|
||||||
dashboard creation tool able to use various datasources.
|
dashboard creation tool able to use various datasources.
|
||||||
|
|
||||||
- [`matrix_alertmanager`](roles/matrix_alertmanager/README.md): An alert-
|
- [`matrix-alertmanager`](roles/matrix-alertmanager/README.md): An alert-
|
||||||
manager receiver which posts alerts to a configured matrix channel
|
manager receiver which posts alerts to a configured matrix channel
|
||||||
using alertmanagers' webhooks.
|
using alertmanagers' webhooks.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
namespace: finallycoffee
|
namespace: finallycoffee
|
||||||
name: observability
|
name: observability
|
||||||
version: 0.1.4
|
version: 0.1.2
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors:
|
authors:
|
||||||
- transcaffeine <transcaffeine@finally.coffee>
|
- transcaffeine <transcaffeine@finally.coffee>
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
alertmanager_config_global: {}
|
|
||||||
alertmanager_config_route: {}
|
|
||||||
alertmanager_config_receivers: []
|
|
||||||
alertmanager_config:
|
|
||||||
global: "{{ alertmanager_config_global }}"
|
|
||||||
route: "{{ alertmanager_config_route }}"
|
|
||||||
receivers: "{{ alertmanager_config_receivers }}"
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
alertmanager_user: alertmanager
|
alertmanager_user: alertmanager
|
||||||
alertmanager_version: "0.28.0"
|
alertmanager_version: 0.27.0
|
||||||
alertmanager_state: present
|
alertmanager_state: present
|
||||||
alertmanager_deployment_method: docker
|
alertmanager_deployment_method: docker
|
||||||
alertmanager_base_path: /opt/alertmanager
|
alertmanager_base_path: /opt/alertmanager
|
||||||
@ -8,3 +8,8 @@ alertmanager_config_path: "{{ alertmanager_base_path }}/config"
|
|||||||
alertmanager_config_file: "{{ alertmanager_config_path }}/alertmanager.yml"
|
alertmanager_config_file: "{{ alertmanager_config_path }}/alertmanager.yml"
|
||||||
alertmanager_data_path: "{{ alertmanager_base_path }}/data"
|
alertmanager_data_path: "{{ alertmanager_base_path }}/data"
|
||||||
|
|
||||||
|
|
||||||
|
alertmanager_config:
|
||||||
|
global: {}
|
||||||
|
route: {}
|
||||||
|
receivers: []
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
cadvisor_version: "0.51.0"
|
cadvisor_version: "0.50.0"
|
||||||
cadvisor_state: present
|
cadvisor_state: present
|
||||||
cadvisor_deployment_method: docker
|
cadvisor_deployment_method: docker
|
||||||
|
|
||||||
|
@ -1,4 +1,50 @@
|
|||||||
---
|
---
|
||||||
|
grafana_user: grafana
|
||||||
|
grafana_version: "10.1.1"
|
||||||
|
grafana_base_path: "/opt/grafana"
|
||||||
|
grafana_config_path: "{{ grafana_base_path }}/config"
|
||||||
|
grafana_config_file: "{{ grafana_config_path }}/grafana.ini"
|
||||||
|
grafana_ldap_config_file: "{{ grafana_config_path }}/ldap.toml"
|
||||||
|
grafana_provisioning_path: "{{ grafana_config_path }}/provisioning"
|
||||||
|
grafana_notifier_provisioning_path: "{{ grafana_provisioning_path }}/notifiers"
|
||||||
|
grafana_dashboard_provisioning_path: "{{ grafana_provisioning_path }}/dashboards"
|
||||||
|
grafana_datasource_provisioning_path: "{{ grafana_provisioning_path }}/datasources"
|
||||||
|
grafana_plugin_provisioning_path: "{{ grafana_provisioning_path }}/plugins"
|
||||||
|
grafana_data_path: "{{ grafana_base_path }}/data"
|
||||||
|
grafana_logs_path: "{{ grafana_base_path }}/logs"
|
||||||
|
grafana_state: present
|
||||||
|
|
||||||
|
grafana_run_user: >-
|
||||||
|
{{ ('uid' in (grafana_user_info | default([]))) | ternary(grafana_user_info.uid, grafana_user) }}
|
||||||
|
grafana_run_group: >-
|
||||||
|
{{ ('group' in (grafana_user_info | default([]))) | ternary(grafana_user_info.group, grafana_user) }}
|
||||||
|
|
||||||
|
grafana_container_image_server: "docker.io"
|
||||||
|
grafana_container_image_namespace: "grafana"
|
||||||
|
grafana_container_image_container: "grafana"
|
||||||
|
grafana_container_image_name: >-
|
||||||
|
{{
|
||||||
|
[
|
||||||
|
((grafana_container_image_server is defined)
|
||||||
|
| ternary([ grafana_container_image_server ], [])),
|
||||||
|
((grafana_container_image_namespace is defined)
|
||||||
|
| ternary([ grafana_container_image_namespace], [])),
|
||||||
|
grafana_container_image_container,
|
||||||
|
] | ansible.builtin.flatten | join('/')
|
||||||
|
}}
|
||||||
|
grafana_container_image: >-
|
||||||
|
{{ grafana_container_image_name }}:{{ grafana_container_image_tag | default(grafana_version, true) }}
|
||||||
|
|
||||||
|
grafana_container_name: grafana
|
||||||
|
grafana_container_base_volumes:
|
||||||
|
- "{{ grafana_config_path }}:{{ grafana_container_config_path }}:ro"
|
||||||
|
- "{{ grafana_data_path }}:{{ grafana_container_data_path }}:rw"
|
||||||
|
- "{{ grafana_logs_path }}:{{ grafana_container_logs_path }}:rw"
|
||||||
|
grafana_container_volumes: []
|
||||||
|
grafana_container_collected_volumes: >-
|
||||||
|
{{ grafana_container_base_volumes + grafana_container_volumes }}
|
||||||
|
grafana_container_restart_policy: "unless-stopped"
|
||||||
|
|
||||||
grafana_config_log_mode:
|
grafana_config_log_mode:
|
||||||
- console
|
- console
|
||||||
- file
|
- file
|
@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
grafana_container_image_server: "docker.io"
|
|
||||||
grafana_container_image_namespace: "grafana"
|
|
||||||
grafana_container_image_container: "grafana"
|
|
||||||
grafana_container_image_name: >-2
|
|
||||||
{{
|
|
||||||
[
|
|
||||||
((grafana_container_image_server is defined)
|
|
||||||
| ternary([ grafana_container_image_server ], [])),
|
|
||||||
((grafana_container_image_namespace is defined)
|
|
||||||
| ternary([ grafana_container_image_namespace], [])),
|
|
||||||
grafana_container_image_container,
|
|
||||||
] | ansible.builtin.flatten | join('/')
|
|
||||||
}}
|
|
||||||
grafana_container_image: >-2
|
|
||||||
{{ grafana_container_image_name }}:{{ grafana_container_image_tag | default(grafana_version, true) }}
|
|
||||||
|
|
||||||
grafana_container_name: grafana
|
|
||||||
grafana_container_base_volumes:
|
|
||||||
- "{{ grafana_config_path }}:{{ grafana_container_config_path }}:ro"
|
|
||||||
- "{{ grafana_data_path }}:{{ grafana_container_data_path }}:rw"
|
|
||||||
- "{{ grafana_logs_path }}:{{ grafana_container_logs_path }}:rw"
|
|
||||||
grafana_container_volumes: []
|
|
||||||
grafana_container_collected_volumes: >-2
|
|
||||||
{{ grafana_container_base_volumes + grafana_container_volumes }}
|
|
||||||
grafana_container_restart_policy: "unless-stopped"
|
|
@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
grafana_user: grafana
|
|
||||||
grafana_version: "11.5.1"
|
|
||||||
grafana_base_path: "/opt/grafana"
|
|
||||||
grafana_config_path: "{{ grafana_base_path }}/config"
|
|
||||||
grafana_config_file: "{{ grafana_config_path }}/grafana.ini"
|
|
||||||
grafana_ldap_config_file: "{{ grafana_config_path }}/ldap.toml"
|
|
||||||
grafana_provisioning_path: "{{ grafana_config_path }}/provisioning"
|
|
||||||
grafana_notifier_provisioning_path: "{{ grafana_provisioning_path }}/notifiers"
|
|
||||||
grafana_dashboard_provisioning_path: "{{ grafana_provisioning_path }}/dashboards"
|
|
||||||
grafana_datasource_provisioning_path: "{{ grafana_provisioning_path }}/datasources"
|
|
||||||
grafana_plugin_provisioning_path: "{{ grafana_provisioning_path }}/plugins"
|
|
||||||
grafana_data_path: "{{ grafana_base_path }}/data"
|
|
||||||
grafana_logs_path: "{{ grafana_base_path }}/logs"
|
|
||||||
grafana_state: present
|
|
||||||
|
|
||||||
grafana_run_user: >-
|
|
||||||
{{ ('uid' in (grafana_user_info | default([]))) | ternary(grafana_user_info.uid, grafana_user) }}
|
|
||||||
grafana_run_group: >-
|
|
||||||
{{ ('group' in (grafana_user_info | default([]))) | ternary(grafana_user_info.group, grafana_user) }}
|
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
allow_duplicates: true
|
|
||||||
dependencies: []
|
|
||||||
galaxy_info:
|
|
||||||
role_name: grafana
|
|
||||||
description: Deploy and configure the grafana
|
|
||||||
galaxy_tags:
|
|
||||||
- grafana
|
|
||||||
- monitoring
|
|
||||||
- prometheus
|
|
||||||
- docker
|
|
@ -2,7 +2,7 @@
|
|||||||
- name: Ensure grafana_state is valid
|
- name: Ensure grafana_state is valid
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- "grafana_state in grafana_states"
|
- "grafana_state in ['present', 'absent']"
|
||||||
fail_msg: >-
|
fail_msg: >-
|
||||||
Only 'present' and 'absent' are allowed as values for grafana_state
|
Only 'present' and 'absent' are allowed as values for grafana_state
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
---
|
---
|
||||||
grafana_states:
|
|
||||||
- present
|
|
||||||
- absent
|
|
||||||
grafana_container_config_path: "/etc/grafana"
|
grafana_container_config_path: "/etc/grafana"
|
||||||
grafana_container_data_path: "/var/lib/grafana"
|
grafana_container_data_path: "/var/lib/grafana"
|
||||||
grafana_container_logs_path: "/var/log/grafana"
|
grafana_container_logs_path: "/var/log/grafana"
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
allow_duplicates: true
|
|
||||||
dependencies: []
|
|
||||||
galaxy_info:
|
|
||||||
role_name: matrix_alertmanager
|
|
||||||
description: Deploy matrix_alertmanager, an alertmanager receiver for matrix rooms
|
|
||||||
galaxy_tags:
|
|
||||||
- matrix_alertmanager
|
|
||||||
- alertmanager_receiver
|
|
||||||
- alertmanager
|
|
||||||
- matrix
|
|
||||||
- docker
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
postgres_exporter_version: "0.15.0"
|
postgres_exporter_version: "0.10.1"
|
||||||
postgres_exporter_user: root
|
postgres_exporter_user: root
|
||||||
postgres_exporter_create_user: false
|
postgres_exporter_create_user: false
|
||||||
|
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
allow_duplicates: true
|
|
||||||
dependencies: []
|
|
||||||
galaxy_info:
|
|
||||||
role_name: postgres_exporter
|
|
||||||
description: Deploy and configure the prometheus-maintained postgres_exporter
|
|
||||||
galaxy_tags:
|
|
||||||
- postgres_exporter
|
|
||||||
- prometheus
|
|
||||||
- postgresql
|
|
||||||
- postgres
|
|
||||||
- docker
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
vmagent_user: vmagent
|
vmagent_user: vmagent
|
||||||
vmagent_version: "1.110.0"
|
vmagent_version: "1.104.0"
|
||||||
vmagent_state: present
|
vmagent_state: present
|
||||||
vmagent_deployment_method: "docker"
|
vmagent_deployment_method: "docker"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
vmalert_state: present
|
vmalert_state: present
|
||||||
vmalert_user: vmalert
|
vmalert_user: vmalert
|
||||||
vmalert_version: "1.110.0"
|
vmalert_version: "1.104.0"
|
||||||
vmalert_base_path: "/opt/vmalert"
|
vmalert_base_path: "/opt/vmalert"
|
||||||
vmalert_config_path: "{{ vmalert_base_path }}/config"
|
vmalert_config_path: "{{ vmalert_base_path }}/config"
|
||||||
vmalert_alert_config: "{{ vmalert_config_path }}/alerts.yml"
|
vmalert_alert_config: "{{ vmalert_config_path }}/alerts.yml"
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
allow_duplicates: true
|
|
||||||
dependencies: []
|
|
||||||
galaxy_info:
|
|
||||||
role_name: vmalert
|
|
||||||
description: Deploy and configure the victoriametrics alerting engine `vmalert`
|
|
||||||
galaxy_tags:
|
|
||||||
- victoriametrics
|
|
||||||
- vmalert
|
|
||||||
- alerting
|
|
||||||
- prometheus
|
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
vmtsdb_state: present
|
vmtsdb_state: present
|
||||||
vmtsdb_user: vmtsdb
|
vmtsdb_user: vmtsdb
|
||||||
vmtsdb_version: "1.110.0"
|
vmtsdb_version: "1.104.0"
|
||||||
vmtsdb_base_path: "/opt/vmtsdb"
|
vmtsdb_base_path: "/opt/vmtsdb"
|
||||||
vmtsdb_data_path: "{{ vmtsdb_base_path }}/data"
|
vmtsdb_data_path: "{{ vmtsdb_base_path }}/data"
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
allow_duplicates: true
|
|
||||||
dependencies: []
|
|
||||||
galaxy_info:
|
|
||||||
role_name: vmtsdb
|
|
||||||
description: Deploy and configure the victoriametrics time-series database `vmtsdb`
|
|
||||||
galaxy_tags:
|
|
||||||
- victoriametrics
|
|
||||||
- vmtsdb
|
|
||||||
- prometheus
|
|
Loading…
x
Reference in New Issue
Block a user