Skip to content

Commit

Permalink
Grafana Dashboard Example (#12)
Browse files Browse the repository at this point in the history
* Grafana Example

* Update README - Grafana Example
  • Loading branch information
DanielWeeber authored Dec 11, 2021
1 parent fd3ede5 commit f96798b
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ To get up and running quickly, use [examples/manifest.yml](examples/manifest.yml

Otherwise, you can use the Helm Chart provided in [chart/status-cake-exporter](chart/status-cake-exporter/README.md).

### Grafana

To get up and running quickly, use [examples/grafana-example.json](examples/grafana-example.json) as an example.

### Terminal

```sh
Expand Down
169 changes: 169 additions & 0 deletions examples/grafana-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [
"blackbox",
"prometheus"
],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 14928,
"graphTooltip": 0,
"id": 68,
"links": [],
"liveNow": false,
"panels": [
{
"cards": {
"cardHSpacing": 2,
"cardMinWidth": 10,
"cardRound": null,
"cardVSpacing": 2
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateGnYlRd",
"defaultColor": "#757575",
"exponent": 0.5,
"max": 100,
"min": 0,
"mode": "spectrum",
"thresholds": [
{
"$$hashKey": "object:152",
"color": "#37872D",
"tooltip": "online",
"value": ""
},
{
"$$hashKey": "object:156",
"color": "#C4162A",
"tooltip": "offline",
"value": "0"
}
]
},
"datasource": "Prometheus",
"gridPos": {
"h": 8,
"w": 22,
"x": 0,
"y": 0
},
"highlightCards": true,
"id": 30,
"legend": {
"show": false
},
"links": [],
"nullPointMode": "as empty",
"pageSize": 15,
"pluginVersion": "8.1.0",
"seriesFilterIndex": -1,
"statusmap": {
"ConfigVersion": "v1"
},
"targets": [
{
"exemplar": true,
"expr": "status_cake_test_info * on(test_id) group_right(test_name) status_cake_test_uptime_percent",
"format": "time_series",
"interval": "$__interval",
"legendFormat": "{{test_name}}",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Statuscake Statuspage",
"tooltip": {
"extraInfo": "",
"freezeOnClick": true,
"items": [],
"show": true,
"showExtraInfo": false,
"showItems": false
},
"type": "flant-statusmap-panel",
"useMax": true,
"usingPagination": false,
"xAxis": {
"show": true
},
"yAxis": {
"maxWidth": -1,
"minWidth": -1,
"show": true
},
"yAxisSort": "metrics",
"yLabel": {
"delimiter": "",
"labelTemplate": "",
"usingSplitLabel": false
}
}
],
"refresh": "",
"schemaVersion": 32,
"style": "dark",
"tags": [
"statuscake",
"monitoring",
"external"
],
"templating": {
"list": []
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"30m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Statuscake",
"uid": "0aDkW227z",
"version": 6
}

0 comments on commit f96798b

Please sign in to comment.