Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Allow to disable metrics (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Sturm authored Sep 21, 2020
1 parent 6bdf11a commit 3cd6f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/grafana.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ mode = {{ grafana_log.mode | default('console, file') }}
level = {{ grafana_log.level | default('info') }}

# Metrics
{% if grafana_metrics != {} %}
[metrics]
{% if grafana_metrics != {} %}
enabled = true
interval_seconds = {{ grafana_metrics.interval_seconds | default(10) }}
{% if grafana_metrics.basic_auth_username is defined %}
Expand All @@ -152,6 +152,8 @@ basic_auth_password = """{{ grafana_metrics.basic_auth_password }}"""
address = {{ grafana_metrics.graphite.address }}
prefix = {{ grafana_metrics.graphite.prefix }}
{% endif %}
{% else %}
enabled = false
{% endif %}

# Tracing
Expand Down

0 comments on commit 3cd6f9d

Please sign in to comment.