-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add generated kubebuilder Grafana dashboards
- Loading branch information
1 parent
1e4f5c7
commit 55ae96a
Showing
5 changed files
with
1,468 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,43 @@ | ||
# Code generated by tool. DO NOT EDIT. | ||
# This file is used to track the info used to scaffold your project | ||
# and allow the plugins properly work. | ||
# More info: https://book.kubebuilder.io/reference/project-config.html | ||
domain: easymile.com | ||
layout: | ||
- go.kubebuilder.io/v4 | ||
- go.kubebuilder.io/v4 | ||
multigroup: true | ||
plugins: | ||
grafana.kubebuilder.io/v1-alpha: {} | ||
manifests.sdk.operatorframework.io/v2: {} | ||
scorecard.sdk.operatorframework.io/v2: {} | ||
projectName: postgresql-operator | ||
repo: github.com/easymile/postgresql-operator | ||
resources: | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlEngineConfiguration | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlDatabase | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlUserRole | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlEngineConfiguration | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlDatabase | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: easymile.com | ||
group: postgresql | ||
kind: PostgresqlUserRole | ||
path: github.com/easymile/postgresql-operator/apis/postgresql/v1alpha1 | ||
version: v1alpha1 | ||
version: "3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,306 @@ | ||
{ | ||
"__inputs": [ | ||
{ | ||
"name": "DS_PROMETHEUS", | ||
"label": "Prometheus", | ||
"description": "", | ||
"type": "datasource", | ||
"pluginId": "prometheus", | ||
"pluginName": "Prometheus" | ||
} | ||
], | ||
"__requires": [ | ||
{ | ||
"type": "datasource", | ||
"id": "prometheus", | ||
"name": "Prometheus", | ||
"version": "1.0.0" | ||
} | ||
], | ||
"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": [], | ||
"type": "dashboard" | ||
}, | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"links": [], | ||
"liveNow": false, | ||
"panels": [ | ||
{ | ||
"datasource": "${DS_PROMETHEUS}", | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "continuous-GrYlRd" | ||
}, | ||
"custom": { | ||
"axisLabel": "", | ||
"axisPlacement": "auto", | ||
"barAlignment": 0, | ||
"drawStyle": "line", | ||
"fillOpacity": 20, | ||
"gradientMode": "scheme", | ||
"hideFrom": { | ||
"legend": false, | ||
"tooltip": false, | ||
"viz": false | ||
}, | ||
"lineInterpolation": "smooth", | ||
"lineWidth": 3, | ||
"pointSize": 5, | ||
"scaleDistribution": { | ||
"type": "linear" | ||
}, | ||
"showPoints": "auto", | ||
"spanNulls": false, | ||
"stacking": { | ||
"group": "A", | ||
"mode": "none" | ||
}, | ||
"thresholdsStyle": { | ||
"mode": "off" | ||
} | ||
}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
}, | ||
"unit": "percent" | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 12, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 2, | ||
"interval": "1m", | ||
"links": [], | ||
"options": { | ||
"legend": { | ||
"calcs": [], | ||
"displayMode": "list", | ||
"placement": "bottom" | ||
}, | ||
"tooltip": { | ||
"mode": "single", | ||
"sort": "none" | ||
} | ||
}, | ||
"pluginVersion": "8.4.3", | ||
"targets": [ | ||
{ | ||
"datasource": "${DS_PROMETHEUS}", | ||
"exemplar": true, | ||
"expr": "rate(process_cpu_seconds_total{job=\"$job\", namespace=\"$namespace\", pod=\"$pod\"}[5m]) * 100", | ||
"format": "time_series", | ||
"interval": "", | ||
"intervalFactor": 2, | ||
"legendFormat": "Pod: {{pod}} | Container: {{container}}", | ||
"refId": "A", | ||
"step": 10 | ||
} | ||
], | ||
"title": "Controller CPU Usage", | ||
"type": "timeseries" | ||
}, | ||
{ | ||
"datasource": "${DS_PROMETHEUS}", | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "continuous-GrYlRd" | ||
}, | ||
"custom": { | ||
"axisLabel": "", | ||
"axisPlacement": "auto", | ||
"barAlignment": 0, | ||
"drawStyle": "line", | ||
"fillOpacity": 20, | ||
"gradientMode": "scheme", | ||
"hideFrom": { | ||
"legend": false, | ||
"tooltip": false, | ||
"viz": false | ||
}, | ||
"lineInterpolation": "smooth", | ||
"lineWidth": 3, | ||
"pointSize": 5, | ||
"scaleDistribution": { | ||
"type": "linear" | ||
}, | ||
"showPoints": "auto", | ||
"spanNulls": false, | ||
"stacking": { | ||
"group": "A", | ||
"mode": "none" | ||
}, | ||
"thresholdsStyle": { | ||
"mode": "off" | ||
} | ||
}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
}, | ||
"unit": "bytes" | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 12, | ||
"x": 12, | ||
"y": 0 | ||
}, | ||
"id": 4, | ||
"interval": "1m", | ||
"links": [], | ||
"options": { | ||
"legend": { | ||
"calcs": [], | ||
"displayMode": "list", | ||
"placement": "bottom" | ||
}, | ||
"tooltip": { | ||
"mode": "single", | ||
"sort": "none" | ||
} | ||
}, | ||
"pluginVersion": "8.4.3", | ||
"targets": [ | ||
{ | ||
"datasource": "${DS_PROMETHEUS}", | ||
"exemplar": true, | ||
"expr": "process_resident_memory_bytes{job=\"$job\", namespace=\"$namespace\", pod=\"$pod\"}", | ||
"format": "time_series", | ||
"interval": "", | ||
"intervalFactor": 2, | ||
"legendFormat": "Pod: {{pod}} | Container: {{container}}", | ||
"refId": "A", | ||
"step": 10 | ||
} | ||
], | ||
"title": "Controller Memory Usage", | ||
"type": "timeseries" | ||
} | ||
], | ||
"refresh": "", | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"datasource": "${DS_PROMETHEUS}", | ||
"definition": "label_values(controller_runtime_reconcile_total{namespace=~\"$namespace\"}, job)", | ||
"hide": 0, | ||
"includeAll": false, | ||
"multi": false, | ||
"name": "job", | ||
"options": [], | ||
"query": { | ||
"query": "label_values(controller_runtime_reconcile_total{namespace=~\"$namespace\"}, job)", | ||
"refId": "StandardVariableQuery" | ||
}, | ||
"refresh": 2, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
}, | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "observability", | ||
"value": "observability" | ||
}, | ||
"datasource": "${DS_PROMETHEUS}", | ||
"definition": "label_values(controller_runtime_reconcile_total, namespace)", | ||
"hide": 0, | ||
"includeAll": false, | ||
"multi": false, | ||
"name": "namespace", | ||
"options": [], | ||
"query": { | ||
"query": "label_values(controller_runtime_reconcile_total, namespace)", | ||
"refId": "StandardVariableQuery" | ||
}, | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
}, | ||
{ | ||
"current": { | ||
"selected": false, | ||
"text": "All", | ||
"value": "$__all" | ||
}, | ||
"datasource": "${DS_PROMETHEUS}", | ||
"definition": "label_values(controller_runtime_reconcile_total{namespace=~\"$namespace\", job=~\"$job\"}, pod)", | ||
"hide": 2, | ||
"includeAll": true, | ||
"label": "pod", | ||
"multi": true, | ||
"name": "pod", | ||
"options": [], | ||
"query": { | ||
"query": "label_values(controller_runtime_reconcile_total{namespace=~\"$namespace\", job=~\"$job\"}, pod)", | ||
"refId": "StandardVariableQuery" | ||
}, | ||
"refresh": 2, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"type": "query" | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-15m", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "", | ||
"title": "Controller-Resources-Metrics", | ||
"weekStart": "" | ||
} |
Oops, something went wrong.