Restructure repo, replace IPs with placeholders, update positioning

This commit is contained in:
2026-05-21 23:33:08 -05:00
parent c8079e3c3d
commit e9c38917e4
23 changed files with 45 additions and 90 deletions
File diff suppressed because it is too large Load Diff
+65
View File
@@ -0,0 +1,65 @@
{
"name": "Ced's NOC Black Ops",
"version": "1.0.0",
"grafanaVersion": "12.3.0",
"palette": {
"background": "#050812",
"panelBackground": "#0B1020",
"panelBorder": "#1C2745",
"primaryText": "#E5ECFF",
"secondaryText": "#8A9BC9",
"mutedText": "#5C6888",
"accent": "#00F5A0",
"accentSoft": "#00B38A",
"warning": "#FFC857",
"danger": "#FF3366",
"gridLine": "#151B30"
},
"fonts": {
"primary": "Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
"mono": "JetBrains Mono, Consolas, monospace",
"titleSize": "20px",
"statValueSize": "32px",
"labelSize": "12px"
},
"panels": {
"stat": {
"valueFont": "JetBrains Mono, monospace",
"textMode": "value",
"graphMode": "none",
"colorMode": "thresholds",
"thresholds": [
{ "value": 0, "color": "#00F5A0" },
{ "value": 80, "color": "#FFC857" },
{ "value": 90, "color": "#FF3366" }
]
},
"rowHeader": {
"background": "#050812",
"textColor": "#E5ECFF",
"borderBottom": "#1C2745"
}
},
"layout": {
"gridColumns": 24,
"clusterOverview": {
"topRowHeight": 8,
"bottomRowHeight": 6,
"panels": [
{ "id": "clusterCpu", "title": "Cluster CPU %", "x": 0, "y": 0, "w": 8, "h": 8 },
{ "id": "memoryUsage", "title": "Memory Usage (GiB)", "x": 8, "y": 0, "w": 8, "h": 8 },
{ "id": "nodes", "title": "Nodes", "x": 16, "y": 0, "w": 8, "h": 8 },
{ "id": "pods", "title": "Pods", "x": 0, "y": 8, "w": 12, "h": 6 },
{ "id": "failedPods", "title": "Failed Pods", "x": 12, "y": 8, "w": 12, "h": 6 }
]
}
},
"notes": {
"usage": [
"Set Grafana global theme to Dark",
"Use transparent panels with a dark dashboard background",
"Apply stat thresholds using the hex colors in this file",
"Use the same layout grid for all primary NOC dashboards"
]
}
}
+397
View File
@@ -0,0 +1,397 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Over view of whole K3's Cluster",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 0,
"links": [],
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "semi-dark-red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 5,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(kube_pod_status_phase{phase=~\"Failed\"})\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Failed Pods",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"editorMode": "code",
"expr": "count(kube_node_info)\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Node Count",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "semi-dark-orange",
"value": 80
},
{
"color": "semi-dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 1,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {
"percentSize": 1
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "count(kube_pod_info)\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Pod Count",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "semi-dark-orange",
"value": 80
},
{
"color": "semi-dark-red",
"value": 90
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 24
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {
"percentSize": 1
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "100 * sum(rate(container_cpu_usage_seconds_total{image!=\"\"}[5m]))\r\n/\r\nsum(machine_cpu_cores)\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Cluster CPU Usage %",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "semi-dark-orange",
"value": 80
},
{
"color": "semi-dark-red",
"value": 90
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 32
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {
"percentSize": 1
},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes)\r\n",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Memory Usage (GB)",
"type": "stat"
}
],
"preload": false,
"schemaVersion": 42,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Cluster Overview",
"uid": "adk8k6s",
"version": 2
}
+139
View File
@@ -0,0 +1,139 @@
{
"id": null,
"uid": "ced-cluster-overview",
"title": "Ced's K3s Cluster Overview",
"tags": [
"k3s",
"cluster",
"ced-noc"
],
"timezone": "browser",
"schemaVersion": 38,
"version": 1,
"refresh": "30s",
"panels": [
{
"type": "stat",
"title": "Total Nodes",
"id": 1,
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 0
},
"targets": [
{
"expr": "count(kube_node_info)",
"refId": "A"
}
]
},
{
"type": "stat",
"title": "Ready Nodes",
"id": 2,
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 0
},
"targets": [
{
"expr": "count(kube_node_status_condition{condition=\"Ready\",status=\"true\"})",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Node CPU Usage (%)",
"id": 3,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 4
},
"targets": [
{
"expr": "100 - (avg by (instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
"legendFormat": "{{instance}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Node Memory Usage (%)",
"id": 4,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 4
},
"targets": [
{
"expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100",
"legendFormat": "{{instance}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Pods per Namespace",
"id": 5,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 12
},
"targets": [
{
"expr": "count(kube_pod_info) by (namespace)",
"legendFormat": "{{namespace}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "API Server Request Rate",
"id": 6,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 12
},
"targets": [
{
"expr": "sum(rate(apiserver_request_total[5m])) by (verb)",
"legendFormat": "{{verb}}",
"refId": "A"
}
]
}
],
"templating": {
"list": [
{
"name": "namespace",
"type": "query",
"datasource": "Prometheus",
"query": "label_values(kube_pod_info, namespace)",
"current": {
"text": "All",
"value": ".*"
},
"includeAll": true,
"multi": true,
"regex": ""
}
]
}
}
+70
View File
@@ -0,0 +1,70 @@
{
"id": null,
"uid": "ced-ingress",
"title": "Ced's Ingress & MetalLB",
"tags": [
"ingress",
"metallb",
"ced-noc"
],
"timezone": "browser",
"schemaVersion": 38,
"version": 1,
"refresh": "30s",
"panels": [
{
"type": "graph",
"title": "NGINX Ingress HTTP Requests",
"id": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"targets": [
{
"expr": "sum(rate(nginx_ingress_controller_requests[5m])) by (ingress)",
"legendFormat": "{{ingress}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "NGINX Ingress 5xx Rate",
"id": 2,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"targets": [
{
"expr": "sum(rate(nginx_ingress_controller_requests{status=~\"5..\"}[5m])) by (ingress)",
"legendFormat": "{{ingress}}",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "MetalLB Announced IPs",
"id": 3,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"targets": [
{
"expr": "sum(metallb_speaker_announced)",
"legendFormat": "announced",
"refId": "A"
}
]
}
]
}
+98
View File
@@ -0,0 +1,98 @@
{
"id": null,
"uid": "ced-node-detail",
"title": "Ced's K3s Nodes Detail",
"tags": [
"k3s",
"nodes",
"ced-noc"
],
"timezone": "browser",
"schemaVersion": 38,
"version": 1,
"refresh": "30s",
"templating": {
"list": [
{
"name": "node",
"type": "query",
"datasource": "Prometheus",
"query": "label_values(kube_node_info, node)",
"multi": false,
"includeAll": false
}
]
},
"panels": [
{
"type": "stat",
"title": "Node CPU Usage (%)",
"id": 1,
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 0
},
"targets": [
{
"expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\",instance=~\"$node\"}[5m])) * 100)",
"refId": "A"
}
]
},
{
"type": "stat",
"title": "Node Memory Usage (%)",
"id": 2,
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 0
},
"targets": [
{
"expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / node_memory_MemTotal_bytes{instance=~\"$node\"})) * 100",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Disk Usage (root fs)",
"id": 3,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 4
},
"targets": [
{
"expr": "1 - (node_filesystem_avail_bytes{mountpoint=\"/\",instance=~\"$node\"} / node_filesystem_size_bytes{mountpoint=\"/\",instance=~\"$node\"})",
"legendFormat": "rootfs",
"refId": "A"
}
]
},
{
"type": "graph",
"title": "Kubelet Pod Count",
"id": 4,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 4
},
"targets": [
{
"expr": "kubelet_running_pod_count{instance=~\"$node\"}",
"legendFormat": "{{instance}}",
"refId": "A"
}
]
}
]
}