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 e9f84fd
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 3 deletions.
12 changes: 12 additions & 0 deletions config/observability/grafana/grafana_deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
configMap:
defaultMode: 420
name: grafana-controller-runtime-metrics
- op: add
path: /spec/template/spec/volumes/-
value:
name: grafana-dns-operator
configMap:
defaultMode: 420
name: grafana-dns-operator
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
Expand All @@ -58,3 +65,8 @@
value:
name: grafana-controller-resources-metrics
mountPath: /grafana-dashboard-definitions/0/grafana-controller-resources-metrics
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: grafana-dns-operator
mountPath: /grafana-dashboard-definitions/0/grafana-dns-operator
12 changes: 12 additions & 0 deletions config/observability/openshift/grafana/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,15 @@ spec:
configMapRef:
name: grafana-app-developer
key: app_developer.json
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: grafana-dns-operator
spec:
instanceSelector:
matchLabels:
dashboards: "grafana"
configMapRef:
name: grafana-dns-operator
key: dns-operator.json
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,30 @@
{
"__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 +44,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 36,
"id": null,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -559,7 +585,9 @@
"refresh": "30s",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"tags": [
"kuadrant"
],
"templating": {
"list": [
{
Expand Down Expand Up @@ -589,6 +617,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 e9f84fd

Please sign in to comment.