Comments (4)
Hi @fragolinux - I do not know of a great way to do this without leveraging an external monitoring tool like Prometheus/Grafana. For my own usage of this repository I have a Grafana notification to alert me if there has not been a snapshotter pod executed within a certain time threshold.
from k8s-scheduled-volume-snapshotter.
You may need to modify the frequency of the checks based on how often you expect the scheduled volume snapshot pods to run, but I've found this to be adequate for my use case:
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- 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": [
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "lt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"30m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
}
],
"executionErrorState": "keep_state",
"for": "1m",
"frequency": "30m",
"handler": 1,
"message": "There have not been any successful scheduled volume snapshot pods in the past 30 minutes",
"name": "Successful Scheduled Volume Snapshot Pods alert",
"noDataState": "no_data",
"notifications": [
{
"uid": "<redacted>"
}
]
},
"datasource": {
"type": "prometheus",
"uid": "<redacted>"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "<redacted>"
},
"expr": "sum(kube_pod_status_phase{phase=\"Succeeded\", namespace=\"scheduled-volume-snapshotter\"})",
"refId": "A"
}
],
"thresholds": [
{
"colorMode": "critical",
"op": "lt",
"value": 1,
"visible": true
}
],
"title": "Successful Scheduled Volume Snapshot Pods",
"type": "timeseries"
}
],
"schemaVersion": 36,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Scheduled Volume Snapshotter Health",
"version": 0,
"weekStart": ""
}
from k8s-scheduled-volume-snapshotter.
Good, can you please share the dashboard json? Thanks!
from k8s-scheduled-volume-snapshotter.
thank you!
from k8s-scheduled-volume-snapshotter.
Related Issues (12)
- Feature - cronjob max complete/failed pods history limits HOT 2
- Snapshotter container image has critical/high vulnerabilities HOT 1
- Allow stable API snapshot.storage.k8s.io/v1 HOT 1
- difference between pvc size and snapshot size HOT 2
- add options to avoid queue and just wait for next schedule time HOT 1
- Truncation for schedule volume snapshot label in child VolumeSnapshot object HOT 1
- daily schedule not respected HOT 10
- support for arm64 HOT 4
- Volumesnapshot does not work when default class is not defined HOT 1
- Deprecated K8s API versions in K8s 1.21+ HOT 1
- Conflict on multiple scheduled snapshots of same PVC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-scheduled-volume-snapshotter.