Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 139 additions & 2 deletions resources/grafana/generated/dashboards/rhacs-cluster-overview.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions resources/grafana/sources/.claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add this file to .gitignore?

"permissions": {
"allow": [
"Read(//home/ebenshet/workspaces/rox-34665-grafana-display-scans-per-day/github.com/stackrox/rhacs-observability-resources/**)",
"Bash(jj status *)",
"Bash(jj rebase *)",
"Bash(rm -f resources/grafana/generated/dashboards/new-panel.yaml resources/grafana/sources/.claude/settings.local.json)",
"Bash(rmdir resources/grafana/sources/.claude)",
"Bash(jj commit -m 'ROX-34665: Add Scans per Day by Namespace panel to cluster overview dashboard *)"
]
}
}
141 changes: 139 additions & 2 deletions resources/grafana/sources/rhacs-cluster-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -2119,13 +2119,150 @@
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "namespace\\namespace"
},
"properties": [
{
"id": "custom.width",
"value": 236
}
]
},
{
"matcher": {
"id": "byName",
"options": "namespace\\Time"
},
"properties": [
{
"id": "custom.width",
"value": 232
}
]
},
{
"matcher": {
"id": "byName",
"options": "2026-05-08"
},
"properties": [
{
"id": "custom.width",
"value": 122
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 85
},
"id": 150,
"interval": "1d",
"maxDataPoints": 30,
"options": {
"showHeader": true,
"cellHeight": "sm",
"footer": {
"show": false,
"reducer": ["sum"],
"countRows": false,
"fields": ""
},
"sortBy": [
{
"displayName": "namespace\\Time",
"desc": true
}
]
},
"pluginVersion": "11.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (namespace) (increase(rox_central_scan_duration_count[1d]))",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"timeFrom": "$_relativeTime/d",
"timeShift": "$_timeShift/d",
"title": "Scans per Day by Namespace",
"transformations": [
{
"id": "formatTime",
"options": {
"outputFormat": "YYYY-MM-DD",
"timeField": "Time",
"useTimezone": true
}
},
{
"id": "groupingToMatrix",
"options": {
"columnField": "Time",
"rowField": "namespace",
"valueField": "Value"
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 85
"y": 93
},
"id": 149,
"panels": [],
Expand Down Expand Up @@ -2172,7 +2309,7 @@
"h": 13,
"w": 24,
"x": 0,
"y": 86
"y": 94
},
"id": 148,
"options": {
Expand Down
Loading