Skip to content

Commit

Permalink
Update fleet grafana dashboards (#4091)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-se committed Jun 21, 2024
1 parent 7fec518 commit f82ffa9
Show file tree
Hide file tree
Showing 12 changed files with 2,150 additions and 830 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"unit": "percentunit"
}
},
"gridPos": {
"h": 8,
"w": 24
"h": 5,
"w": 7,
"x": 0,
"y": 0
},
"id": 1,
"pluginVersion": "v11.0.0",
Expand All @@ -19,20 +27,28 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_desired_ready"
"expr": "sum(fleet_bundle_ready{exported_namespace=\"$namespace\",name=~\"$name\"}) / sum(fleet_bundle_desired_ready{exported_namespace=\"$namespace\",name=~\"$name\"})"
}
],
"title": "Bundle Desired Ready",
"type": "timeseries"
"title": "Ready Bundles",
"type": "stat"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"unit": null
}
},
"gridPos": {
"h": 8,
"w": 24
"h": 5,
"w": 17,
"x": 7,
"y": 0
},
"id": 2,
"pluginVersion": "v11.0.0",
Expand All @@ -42,20 +58,85 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_err_applied"
"expr": "sum(fleet_bundle_desired_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Desired Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_not_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Not Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_out_of_sync{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Out of Sync"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_err_applied{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Err Applied"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_modified{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Modified"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_pending{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Pending"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_wait_applied{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Wait Applied"
}
],
"title": "Bundle Err Applied",
"type": "timeseries"
"title": "Bundles",
"type": "stat"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"unit": null
}
},
"gridPos": {
"h": 8,
"w": 24
"w": 24,
"x": 0,
"y": 8
},
"id": 3,
"pluginVersion": "v11.0.0",
Expand All @@ -65,154 +146,98 @@
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_modified"
}
],
"title": "Bundle Modified",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 4,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_desired_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Desired Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_not_ready"
}
],
"title": "Bundle Not Ready",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 5,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_out_of_sync"
}
],
"title": "Bundle Out of Sync",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 6,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_not_ready{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Not Ready"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_pending"
}
],
"title": "Bundle Pending",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 7,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_out_of_sync{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Out of Sync"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_ready"
}
],
"title": "Bundle Ready",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 8,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_err_applied{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Err Applied"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_state"
}
],
"title": "Bundle State",
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 8,
"w": 24
},
"id": 9,
"pluginVersion": "v11.0.0",
"targets": [
"expr": "sum(fleet_bundle_modified{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Modified"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "sum(fleet_bundle_pending{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Pending"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "fleet_bundle_wait_applied"
"expr": "sum(fleet_bundle_wait_applied{exported_namespace=\"$namespace\",name=~\"$name\"})",
"legendFormat": "Wait Applied"
}
],
"title": "Bundle Wait Applied",
"title": "Bundles",
"type": "timeseries"
}
],
"schemaVersion": 39,
"templating": {
"list": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"name": "namespace",
"query": "label_values(fleet_bundle_desired_ready, exported_namespace)",
"refresh": 2,
"type": "query"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"includeAll": true,
"name": "name",
"query": "label_values(fleet_bundle_desired_ready{exported_namespace=~\"$namespace\"}, name)",
"refresh": 2,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
"from": "now-1h",
"to": "now"
},
"timezone": "utc",
Expand Down
Loading

0 comments on commit f82ffa9

Please sign in to comment.