Packages
prom_ex
1.4.0
1.12.0
1.11.0
1.10.0
1.9.0
1.8.0
1.7.1
1.7.0
retired
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
0.1.15-beta
0.1.14-beta
0.1.13-beta
0.1.12-beta
0.1.11-alpha
0.1.10-alpha
0.1.9-alpha
0.1.8-alpha
0.1.7-alpha
0.1.6-alpha
0.1.5-alpha
0.1.4-alpha
0.1.3-alpha
0.1.2-alpha
0.1.1-alpha
0.1.0-alpha
Prometheus metrics and Grafana dashboards for all of your favorite Elixir libraries
Current section
Files
Jump to
Current section
Files
lib/prom_ex/grafana_client/dashboard_checker.ex
defmodule PromEx.GrafanaClient.DashboardChecker do
@moduledoc """
This module is used to validate Grafana dashboard to ensure that
they adhere to certain style and structure requirements.
"""
# TODO: Items to check for to ensure uniformity
# - Shared cross hair
# - Y Axis min 0 on non-negative data
# - Y axis labels
# - Ensure null ID field value
# - Ensure readonly dashboard
# - Ensure uid is prefixed with "prom_ex_"
# - Ensure version is always at 1
# - Ensure timeline is current time - 1h
# - Ensure refresh interval is 5s
# - Check for default panel names
# - Check for dashboard name format "PromEx - .*"
# - Check for 3 variables: time aggregate, job, instance
# - Check for PromEx tags: PromEx, Plugin name, prometheus
# - Ensure that help tips end in a period
# - Check for template strings in datasource fields
end