From 09440d04e1c73923252c3d3e7b521ef86dadee88 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 29 Aug 2023 10:30:25 +0200 Subject: [PATCH] cloudflare exporter - add email --- tasks/exporter/services/cloudflare.yml | 1 + templates/compose/cloudflare.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/exporter/services/cloudflare.yml b/tasks/exporter/services/cloudflare.yml index e490a69..da62c4c 100644 --- a/tasks/exporter/services/cloudflare.yml +++ b/tasks/exporter/services/cloudflare.yml @@ -3,6 +3,7 @@ assert: that: - cloudflare_api_key is defined + - cloudflare_api_email is defined tags: ['prometheus_cloudflare'] - include_tasks: ../docker.yml diff --git a/templates/compose/cloudflare.yml.j2 b/templates/compose/cloudflare.yml.j2 index 5b6af39..989151d 100644 --- a/templates/compose/cloudflare.yml.j2 +++ b/templates/compose/cloudflare.yml.j2 @@ -11,6 +11,7 @@ services: restart: unless-stopped environment: - CF_API_TOKEN={{ cloudflare_api_key }} + - CF_API_EMAIL={{ cloudflare_api_email }} ports: - 8082:8080 networks: