Skip to content

Commit

Permalink
Merge pull request #504 from pyrra-dev/grafana-docs
Browse files Browse the repository at this point in the history
Update examples/grafana/README.md
  • Loading branch information
metalmatze authored Nov 8, 2022
2 parents ca8f1bb + edbd4d2 commit 8c2e2ef
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions examples/grafana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Pyrra Grafana Dashboards

## Live Demo

We host a live demo of these dashboards on [demo.pyrra.dev/grafana](https://demo.pyrra.dev/grafana/d/ccssRIenz/pyrra-detail?orgId=1&refresh=10s&from=now-7d&to=now).

## Installation

Let's discuss how you can install the Pyrra Grafana dashboards.

### Generic Rules

Pyrra supports generic recording rules.
It means that Pyrra generates metrics with the same name for each SLO.
```
pyrra_objective
pyrra_window
pyrra_availability
pyrra_requests_total
pyrra_errors_total
```

The Grafana dashboards rely on these recording rules. You need to enabled generating these on the `filesystem` or `kubernetes` component.
Run these components with the `--generic-rules` flag.

Please note that the `grouping` feature is not supported when using generic rules.
This is a limitation with the Grafana dashboard dropdowns (they would need to be dynamic).

### Import the JSON files

That that the Prometheus gets configured to generate the generic rules Grafana dashboards can make use of them.
Download the `list.json` and `detail.json` files and import them into your Grafana instance (next to creating new dashboards).
Make sure to keep the IDs of the dashboards so linking from the List to the Detail dashboard still works.

## Dashboards

The List dashboard shows and overview of all your SLOs.
It's simliar to the Pyrra list and shows metrics like the availablity and remaining error budget.
You can click on the names of each SLO to take you to the detail page with the SLO pre-selected.

![list](list.png)

The detail dashboards shows you an individual SLO. All necessary and important metrics are shown.
Use the dropdown to select other SLOs.

![detail](detail.png)

0 comments on commit 8c2e2ef

Please sign in to comment.