From a630b8d7781e8c566be77b14b088da2cf4adbedc Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 22 Jul 2021 17:21:33 +0200 Subject: [PATCH] monitoring: Add option to disable rendering service --- roles/monitoring/defaults/main.yml | 1 + roles/monitoring/templates/docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/monitoring/defaults/main.yml b/roles/monitoring/defaults/main.yml index 13d83d0..4d88427 100644 --- a/roles/monitoring/defaults/main.yml +++ b/roles/monitoring/defaults/main.yml @@ -46,6 +46,7 @@ monitoring_grafana_image_version: "{{ monitoring_grafana_version }}" # Additional plugins, that should be installed (see https://grafana.com/docs/grafana/latest/installation/docker/) monitoring_grafana_plugins: [] +monitoring_grafana_renderer_enabled: true # OAuth settings for grafana monitoring_grafana_oauth: diff --git a/roles/monitoring/templates/docker-compose.yml b/roles/monitoring/templates/docker-compose.yml index 61675b9..9c2302c 100644 --- a/roles/monitoring/templates/docker-compose.yml +++ b/roles/monitoring/templates/docker-compose.yml @@ -77,6 +77,7 @@ services: volumes: - "{{ monitoring_grafana_location }}:/var/lib/grafana" +{% if monitoring_grafana_renderer_enabled %} renderer: image: docker.io/grafana/grafana-image-renderer:latest mem_limit: 512mb @@ -88,6 +89,7 @@ services: - no-new-privileges networks: grafana: +{% endif %} influxdb: image: docker.io/library/influxdb:{{ monitoring_influxdb_image_version }}