From 824b10546d28e222fde040e81018c3542a791609 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 9 Apr 2022 16:32:08 +0200 Subject: [PATCH] grafana set domain --- bundles/grafana/metadata.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bundles/grafana/metadata.py b/bundles/grafana/metadata.py index 74d9a34..2928a29 100644 --- a/bundles/grafana/metadata.py +++ b/bundles/grafana/metadata.py @@ -55,6 +55,20 @@ defaults = { } +@metadata_reactor.provides( + 'grafana/config/server/domain', +) +def domain(metadata): + return { + 'grafana': { + 'config': { + 'server': { + 'domain': metadata.get('grafana/hostname'), + }, + }, + }, + } + @metadata_reactor.provides( 'grafana/datasources', )