add Grafana dashboard (#407)

* add Grafana dashboard

* Create 407.misc

* Move hookshot-dashboard.json to contrib/

* Add Grafana dashboard to docs/metrics.md

* Update 407.misc

* Fix link to hookshot-dashboard.json

Co-authored-by: Will Hunt <will@half-shot.uk>

* Update hookshot-dashboard.json

* Update metrics.md

* Update hookshot-dashboard.json

- add generic event pushes
- add http requests
- shuffle some panels around

* update docs correctly as per review

* Update contrib/hookshot-dashboard.json

Co-authored-by: Will Hunt <will@half-shot.uk>
This commit is contained in:
Kim Brose 2022-08-11 18:09:33 +02:00 committed by GitHub
parent e9613225be
commit a79309071d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2150 additions and 0 deletions

1
changelog.d/407.misc Normal file
View File

@ -0,0 +1 @@
Add Grafana dashboard including documentation. Contributed by @HarHarLinks

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,13 @@ metrics:
port: 9002
```
An example dashboard that can be used with [Grafana](https://grafana.com) can be found at [/contrib/hookshot-dashboard.json](https://github.com/matrix-org/matrix-hookshot/blob/main/contrib/hookshot-dashboard.json).
There are 3 variables at the top of the dashboard:
![image](https://user-images.githubusercontent.com/2803622/179366574-1bb83e30-05c6-4558-9e66-e813e85b3a6e.png)
Select the Prometheus with your Hookshot metrics as Data Source. Set Interval to your scraping interval. Set 2x Interval to twice the Interval value ([why?](https://github.com/matrix-org/matrix-hookshot/pull/407#issuecomment-1186251618)).
Below is the generated list of Prometheus metrics for Hookshot.

View File

@ -35,6 +35,13 @@ metrics:
port: 9002
\`\`\`
An example dashboard that can be used with [Grafana](https://grafana.com) can be found at [/contrib/hookshot-dashboard.json](https://github.com/matrix-org/matrix-hookshot/blob/main/contrib/hookshot-dashboard.json).
There are 3 variables at the top of the dashboard:
![image](https://user-images.githubusercontent.com/2803622/179366574-1bb83e30-05c6-4558-9e66-e813e85b3a6e.png)
Select the Prometheus with your Hookshot metrics as Data Source. Set Interval to your scraping interval. Set 2x Interval to twice the Interval value ([why?](https://github.com/matrix-org/matrix-hookshot/pull/407#issuecomment-1186251618)).
Below is the generated list of Prometheus metrics for Hookshot.
`)