Skip to content

Commit 185a269

Browse files
bengoapaulfantom
authored andcommitted
Adding the ability to manage [panels] session (cloudalchemy#185)
* Adding the ability to manage AWS Cloudwatch through grafana_datasource (API). * Adding the ability to manage [panels] session.
1 parent eca8af7 commit 185a269

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,8 @@ grafana_api_keys: []
245245
grafana_api_keys_dir: "{{ lookup('env', 'HOME') }}/grafana/keys"
246246

247247
grafana_environment: {}
248+
249+
# Panels configurations
250+
grafana_panels: {}
251+
# disable_sanitize_html: false
252+
# enable_alpha: false

templates/grafana.ini.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,11 @@ provider = {{ grafana_image_storage.provider }}
178178
{% endif %}
179179
{% endfor %}
180180
{% endif %}
181+
182+
# Panels
183+
{% if grafana_panels != {} %}
184+
[panels]
185+
{% for k,v in grafana_panels.items() %}
186+
{{ k }} = {{ v }}
187+
{% endfor %}
188+
{% endif %}

0 commit comments

Comments
 (0)