Skip to content

Commit

Permalink
add DNS Operator to grafana.com, example.md and kustomize.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Brookes <[email protected]>
  • Loading branch information
philbrookes committed Jan 15, 2025
1 parent b235891 commit 1826eb1
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 16 deletions.
1 change: 1 addition & 0 deletions doc/observability/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ There are some example dashboards uploaded to [Grafana.com](https://grafana.com/
| [App Developer Dashboard](https://grafana.com/grafana/dashboards/21538) | `21538` |
| [Business User Dashboard](https://grafana.com/grafana/dashboards/20981) | `20981` |
| [Platform Engineer Dashboard](https://grafana.com/grafana/dashboards/20982) | `20982` |
| [DNS Operator Dashboard](https://grafana.com/grafana/dashboards/22695) | `22695` |

## Dashboards

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
{
"__inputs": [
{
"name": "DS_KUADRANT-THANOS-HUB",
"label": "Kuadrant-Thanos-Hub",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.5.3"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -18,7 +55,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 36,
"id": null,
"links": [],
"liveNow": false,
"panels": [
Expand All @@ -36,7 +73,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -87,7 +124,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -102,7 +139,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -117,7 +154,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "count(kuadrant_dnshealthcheckprobe_healthy_status)",
Expand Down Expand Up @@ -151,7 +188,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -229,7 +266,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "sum by (client, code) (rate(http_client_requests_total{client=\"probe\"}[15m]))",
Expand All @@ -244,7 +281,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -322,7 +359,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum by(le) (rate(http_client_request_latency_seconds_bucket{client=\"probe\",code=\"200\"}[15m])))",
Expand All @@ -333,7 +370,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum by(le) (rate(http_client_request_latency_seconds_bucket{client=\"probe\",code=\"200\"}[15m])))",
Expand Down Expand Up @@ -362,7 +399,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -440,7 +477,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum by(le, client) (rate(http_client_request_latency_seconds_bucket{client=~\"aws|gcp|azure\",code=\"200\"}[15m])))",
Expand All @@ -451,7 +488,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum by(le, client) (rate(http_client_request_latency_seconds_bucket{client=~\"aws|gcp|azure\",code=\"200\"}[15m])))",
Expand All @@ -467,7 +504,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -542,7 +579,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
"uid": "${DS_KUADRANT-THANOS-HUB}"
},
"editorMode": "code",
"expr": "sum by (client, code) (rate(http_client_requests_total{client=~\"aws|gcp|azure\"}[15m]))",
Expand Down Expand Up @@ -589,6 +626,6 @@
"timezone": "browser",
"title": "DNS Operator overview",
"uid": "f4f80fb8-6da0-4260-b534-2549cd25210fd",
"version": 4,
"version": 1,
"weekStart": "monday"
}
3 changes: 3 additions & 0 deletions examples/dashboards/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ configMapGenerator:
- name: grafana-controller-resources-metrics
files:
- ./controller-resources-metrics.json
- name: dns-operator
files:
- ./dns-operator.json

generatorOptions:
disableNameSuffixHash: true

0 comments on commit 1826eb1

Please sign in to comment.