You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds the following:
analyse ruler
analyse dashboards (JSON dashboard input)
analyse rule-files (YAML rule file input)
Modifies analyse prometheus to accept input from analyse ruler and analyse rule-file output
Fixes a bug to iterate over sub panels of a row type Panel
Adds two simple tests for extracting metrics
Adds metric extraction from templating sections of dashboard files
@@ -195,11 +195,12 @@ This lets you generate the header which can then be used to enforce access contr
195
195
196
196
#### Analyse
197
197
198
-
Run analysis against your Prometheus, Grafana and Cortex to see which metrics being used and exported.
198
+
Run analysis against your Prometheus, Grafana and Cortex to see which metrics being used and exported. Can also extract metrics
199
+
from dashboard JSON and rules YAML files.
199
200
200
-
##### grafana-analyse
201
+
##### `analyse grafana`
201
202
202
-
This command will be run against your Grafana instance and it will download the dashboards and pick the Prometheus metrics that are used in the queries. The output is a JSON file.
203
+
This command will run against your Grafana instance and will download its dashboards and then extract the Prometheus metrics used in its queries. The output is a JSON file.
203
204
204
205
###### Configuration
205
206
@@ -211,28 +212,166 @@ This command will be run against your Grafana instance and it will download the
This command will run against your Grafana Cloud Prometheus instance and will fetch its rule groups. It will then extract the Prometheus metrics used in the rule queries. The output is a JSON file.
This command will be run against your Prometheus / GrafanaCloud instance, then it will use the output from `grafana-analyse`show you how many series in the Prometheus server are actually being used in dashboards. Also, it'll show which metrics exist in Grafana Cloud that are **not** in dashboards. The output is a JSON file
294
+
This command will run against your Prometheus / Cloud Prometheus instance. It will then use the output from `analyse grafana` and `analyse ruler` to show you how many series in the Prometheus server are actually being used in dashboards and rules. Also, it'll show which metrics exist in Grafana Cloud that are **not** in dashboards or rules. The output is a JSON file.
This command accepts Grafana dashboard JSON files as input and extracts Prometheus metrics used in the queries. The output is a JSON file compatible with `analyse prometheus`.
This command accepts Prometheus rule YAML files as input and extracts Prometheus metrics used in the queries. The output is a JSON file compatible with `analyse prometheus`.
0 commit comments