Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 1 provisionned dashboard by DaC #49

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

AntoineThebaud
Copy link
Contributor

@AntoineThebaud AntoineThebaud commented Dec 18, 2024

This is mostly to showcase the usage of the DaC workflow in a real situation, but we probably want to rely on DaC for all our showcase dashboards at some point I guess?

I'd later merge the new "showcase-dac" back into the existing "showcase" project, but for now because showcase is fully provisioned & with no roles/role bindings attached I created a side project for simplicity.

@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/dac-instead-of-provisioning branch 9 times, most recently from 07cb3ed to 3905a1c Compare December 19, 2024 11:45
Copy link

Dashboard previews

The following ephemeral dashboards have been deployed:

1 similar comment
Copy link

Dashboard previews

The following ephemeral dashboards have been deployed:

Copy link

Dashboard diffs

showcase-dac-gaugechartpanel:
{
-  "display": {
-    "name": "GaugeChartPanel"
+  "panels": {
+    "0_0": {
+      "kind": "Panel",
+      "spec": {
+        "display": {
+          "name": "Single Gauge"
+        },
+        "plugin": {
+          "kind": "GaugeChart",
+          "spec": {
+            "calculation": "mean",
+            "format": {
+              "unit": "percent"
+            },
+            "thresholds": {
+              "steps": [
+                {
+                  "value": 20
+                }
+              ]
+            }
+          }
+        },
+        "queries": [
+          {
+            "kind": "TimeSeriesQuery",
+            "spec": {
+              "plugin": {
+                "kind": "PrometheusTimeSeriesQuery",
+                "spec": {
+                  "query": "100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})"
+                }
+              }
+            }
+          }
+        ]
+      }
+    }
   },
-  "panels": {},
-  "layouts": [],
+  "layouts": [
+    {
+      "kind": "Grid",
+      "spec": {
+        "display": {
+          "title": "Row 1"
+        },
+        "items": [
+          {
+            "x": 0,
+            "y": 0,
+            "width": 8,
+            "height": 6,
+            "content": {
+              "$ref": "#/spec/panels/0_0"
+            }
+          }
+        ]
+      }
+    }
+  ],
   "duration": "1h"
 }

@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/dac-instead-of-provisioning branch from 3905a1c to 16d8b0b Compare December 19, 2024 11:59
Copy link

Dashboard previews

The following ephemeral dashboards have been deployed:

Copy link

Dashboard diffs

showcase-dac-gaugechartpanel:
{
-  "display": {
-    "name": "GaugeChartPanel"
+  "panels": {
+    "0_0": {
+      "kind": "Panel",
+      "spec": {
+        "display": {
+          "name": "Single Gauge"
+        },
+        "plugin": {
+          "kind": "GaugeChart",
+          "spec": {
+            "calculation": "mean",
+            "format": {
+              "unit": "percent"
+            },
+            "thresholds": {
+              "steps": [
+                {
+                  "value": 20
+                }
+              ]
+            }
+          }
+        },
+        "queries": [
+          {
+            "kind": "TimeSeriesQuery",
+            "spec": {
+              "plugin": {
+                "kind": "PrometheusTimeSeriesQuery",
+                "spec": {
+                  "query": "100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})"
+                }
+              }
+            }
+          }
+        ]
+      }
+    }
   },
-  "panels": {},
-  "layouts": [],
+  "layouts": [
+    {
+      "kind": "Grid",
+      "spec": {
+        "display": {
+          "title": "Row 1"
+        },
+        "items": [
+          {
+            "x": 0,
+            "y": 0,
+            "width": 8,
+            "height": 6,
+            "content": {
+              "$ref": "#/spec/panels/0_0"
+            }
+          }
+        ]
+      }
+    }
+  ],
   "duration": "1h"
 }

@AntoineThebaud AntoineThebaud changed the title WIP DaC Replace 1 provisionned dashboard by DaC Dec 19, 2024
@AntoineThebaud AntoineThebaud marked this pull request as ready for review December 19, 2024 12:56
@AntoineThebaud AntoineThebaud merged commit ecda3fe into main Dec 19, 2024
4 checks passed
@Nexucis Nexucis deleted the antoinethebaud/dac-instead-of-provisioning branch December 19, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant