UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 3c516b63 authored by Darrien Lee's avatar Darrien Lee
Browse files

Resolve "Create bbctl logs dashboard"

parent 80007bd8
No related branches found
No related tags found
3 merge requests!479Draft: Fix docs bump script,!477Draft: Test changelog pipeline,!476Draft: Test bbctl master
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 52,
"links": [],
"panels": [
{
"datasource": {
"default": false,
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "bbctl versions -U -A",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"cellOptions": {
"type": "json-view"
},
"filterable": true,
"inspect": true,
"minWidth": 175
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": true,
"fields": "",
"reducer": [
"lastNotNull"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{app=\"bbctl-bigbang-updater\", container=\"bbctl\"}",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Versions Logs",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD HH:mm:ss",
"timeField": "Time",
"timezone": "browser",
"useTimezone": true
}
}
],
"type": "table"
},
{
"datasource": {
"default": false,
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "bbctl policy --kyverno",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"cellOptions": {
"type": "json-view"
},
"filterable": true,
"inspect": true,
"minWidth": 175
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"id": 4,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": true,
"fields": "",
"reducer": [
"lastNotNull"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{app=\"bbctl-bigbang-policy\", container=\"bbctl\"}",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Policy Logs",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD HH:mm:ss",
"timeField": "Time",
"timezone": "browser",
"useTimezone": true
}
}
],
"type": "table"
},
{
"datasource": {
"default": false,
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "bbctl preflight-check",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"cellOptions": {
"type": "json-view"
},
"filterable": true,
"inspect": true,
"minWidth": 175
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 3,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": true,
"fields": "",
"reducer": [
"lastNotNull"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{app=\"bbctl-bigbang-preflight\", container=\"bbctl\"}",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Preflight Check Logs",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD HH:mm:ss",
"timeField": "Time",
"timezone": "browser",
"useTimezone": true
}
}
],
"type": "table"
},
{
"datasource": {
"default": false,
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "bbctl status",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"cellOptions": {
"type": "json-view"
},
"filterable": true,
"inspect": true,
"minWidth": 175
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 6,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": true,
"fields": "",
"reducer": [
"lastNotNull"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{app=\"bbctl-bigbang-status\", container=\"bbctl\"}",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Status Logs",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD HH:mm:ss",
"timeField": "Time",
"timezone": "browser",
"useTimezone": true
}
}
],
"type": "table"
},
{
"datasource": {
"default": false,
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "bbctl violations",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"cellOptions": {
"type": "json-view"
},
"filterable": true,
"inspect": true,
"minWidth": 175
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 5,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": true,
"fields": "",
"reducer": [
"lastNotNull"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.2.2",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{app=\"bbctl-bigbang-violations\", container=\"bbctl\"}",
"legendFormat": "",
"queryType": "range",
"refId": "A"
}
],
"title": "Violations Logs",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD HH:mm:ss",
"timeField": "Time",
"timezone": "browser",
"useTimezone": true
}
}
],
"type": "table"
}
],
"refresh": "",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2024-11-18T01:46:48.219Z",
"to": "2024-11-19T01:46:48.221Z"
},
"timepicker": {},
"timezone": "browser",
"title": "all-logs-dashboard",
"uid": {},
"version": {},
"weekStart": ""
}
\ No newline at end of file
......@@ -242,7 +242,7 @@
"timepicker": {},
"timezone": "browser",
"title": "version-dashboard",
"uid": "ae1zizsh4ulfke",
"version": 2,
"uid": {},
"version": {},
"weekStart": ""
}
\ No newline at end of file
......@@ -99,8 +99,10 @@ Create the config file
Create the command
*/}}
{{- define "bigbang-violations.command" -}}
- "./bbctl"
- "violations"
- "/bin/bash"
- "-c"
- |
echo "$(./bbctl violations)"
{{- end }}
{{/*
......
......@@ -2,11 +2,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: bbctl-version-dashboard
namespace: monitoring
name: "bbctl-dashboards"
namespace: "monitoring"
labels:
grafana_dashboard: "1"
data:
updater.json: |-
{{ .Files.Get "dashboards/versions.json" | nindent 4 }}
versions-dashboard.json: |-
{{ .Files.Get "dashboards/versions-dashboard.json" | nindent 4 }}
all-logs-dashboard.json: |-
{{ .Files.Get "dashboards/all-logs-dashboard.json" | nindent 4 }}
{{- end -}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment