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', )