With the new network we need to deploy a push based solution in order to get metrics into prometheus
22 lines
970 B
YAML
22 lines
970 B
YAML
docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/ntfy/docker_compose/compose.yaml.j2') }}"
|
|
docker_compose__configuration_files:
|
|
- name: server.yml
|
|
content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/ntfy/docker_compose/server.yaml.j2') }}"
|
|
|
|
certbot__version_spec: ""
|
|
certbot__acme_account_email_address: le-admin@hamburg.ccc.de
|
|
certbot__certificate_domains:
|
|
- "ntfy.hamburg.ccc.de"
|
|
certbot__new_cert_commands:
|
|
- "systemctl reload nginx.service"
|
|
|
|
nginx__version_spec: ""
|
|
nginx__configurations:
|
|
- name: ntfy.hamburg.ccc.de
|
|
content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/ntfy/nginx/ntfy.hamburg.ccc.de.conf') }}"
|
|
|
|
alloy_config_additional: |
|
|
prometheus.scrape "ntfy_metrics" {
|
|
targets = [{"__address__" = "localhost:9586", job = "ntfy", instance = "ntfy", __scrape_interval__ = "120s"}]
|
|
forward_to = [prometheus.relabel.chaosknoten_common.receiver]
|
|
}
|