Created
November 27, 2023 17:37
-
-
Save jmreicha/b3d9047b4764dd35a3f5f83a6f94be94 to your computer and use it in GitHub Desktop.
trivy-opertor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", | |
"target": { | |
"limit": 100, | |
"matchAny": false, | |
"tags": [], | |
"type": "dashboard" | |
}, | |
"type": "dashboard" | |
} | |
] | |
}, | |
"description": "Dashboard to view trivy published metrics\r\nhttps://aquasecurity.github.io/trivy-operator/v0.1.5/integrations/metrics/", | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"gnetId": 16652, | |
"graphTooltip": 1, | |
"id": 32, | |
"links": [], | |
"liveNow": false, | |
"panels": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"custom": { | |
"align": "left", | |
"cellOptions": { | |
"type": "color-text" | |
}, | |
"filterable": true, | |
"inspect": false | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "super-light-yellow", | |
"value": 1 | |
}, | |
{ | |
"color": "red", | |
"value": 50 | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Image" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "json-view" | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 350 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "image_tag" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "json-view" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 14, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 71, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"enablePagination": true, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": true | |
}, | |
"frameIndex": 1, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "Critical" | |
} | |
] | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Critical\"}) by (image_repository,image_tag)", | |
"format": "table", | |
"instant": true, | |
"range": false, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"High\"}) by (image_repository,image_tag)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"range": false, | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Medium\"}) by (image_repository,image_tag)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"range": false, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Low\"}) by (image_repository,image_tag)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"range": false, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Unknown\"}) by (image_repository,image_tag)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"range": false, | |
"refId": "E" | |
} | |
], | |
"title": "Vulnerability by Image", | |
"transformations": [ | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"image_repository", | |
"image_tag", | |
"Value #A", | |
"Value #B", | |
"Value #C", | |
"Value #D", | |
"Value #E" | |
] | |
} | |
} | |
}, | |
{ | |
"id": "seriesToColumns", | |
"options": { | |
"byField": "image_repository" | |
} | |
}, | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"image_repository", | |
"Value #A", | |
"Value #B", | |
"Value #C", | |
"Value #D", | |
"Value #E", | |
"image_tag 1" | |
] | |
} | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": { | |
"image_tag": false | |
}, | |
"indexByName": {}, | |
"renameByName": { | |
"Value #A": "Critical", | |
"Value #B": "High", | |
"Value #C": "Medium", | |
"Value #D": "Low", | |
"Value #E": "Unknown", | |
"image_repository": "Image", | |
"image_tag": "Tag" | |
} | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"collapsed": false, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 14 | |
}, | |
"id": 43, | |
"panels": [], | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"refId": "A" | |
} | |
], | |
"title": "Summary of vulnerabilities", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 0, | |
"y": 15 | |
}, | |
"id": 60, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Low\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "LOW", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "yellow", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 4, | |
"y": 15 | |
}, | |
"id": 49, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Medium\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "MEDIUM", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "orange", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 8, | |
"y": 15 | |
}, | |
"id": 50, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"High\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "HIGH", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 12, | |
"y": 15 | |
}, | |
"id": 51, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Critical\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "CRITICAL", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "purple", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 16, | |
"y": 15 | |
}, | |
"id": 52, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities{severity=\"Unknown\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "UNKNOWN", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "text", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 20, | |
"y": 15 | |
}, | |
"id": 39, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities)", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "TOTAL", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 15, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 19 | |
}, | |
"id": 58, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "8.5.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities) by (namespace)", | |
"instant": false, | |
"interval": "$__interval", | |
"legendFormat": "{{image_namespace}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "All vulnerabilities by namespaces", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 15, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 19 | |
}, | |
"id": 61, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "8.5.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_image_vulnerabilities) by (severity)", | |
"instant": false, | |
"interval": "$__interval", | |
"legendFormat": "{{severity}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "All vulnerabilities by severity", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": false, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 27 | |
}, | |
"id": 63, | |
"panels": [], | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"refId": "A" | |
} | |
], | |
"title": "Summary Resource Config Audit", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 0, | |
"y": 28 | |
}, | |
"id": 64, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits{severity=\"Low\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "LOW", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "yellow", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 4, | |
"y": 28 | |
}, | |
"id": 65, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits{severity=\"Medium\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "MEDIUM", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "orange", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 8, | |
"y": 28 | |
}, | |
"id": 66, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits{severity=\"High\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "HIGH", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "red", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 12, | |
"y": 28 | |
}, | |
"id": 67, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits{severity=\"Critical\"})", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "CRITICAL", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "text", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 4, | |
"w": 4, | |
"x": 16, | |
"y": 28 | |
}, | |
"id": 68, | |
"options": { | |
"colorMode": "value", | |
"graphMode": "area", | |
"justifyMode": "auto", | |
"orientation": "auto", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"textMode": "auto" | |
}, | |
"pluginVersion": "10.1.5", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits)", | |
"instant": true, | |
"interval": "$__interval", | |
"legendFormat": "__auto", | |
"refId": "A" | |
} | |
], | |
"title": "TOTAL", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 15, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 0, | |
"y": 32 | |
}, | |
"id": 69, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "single", | |
"sort": "none" | |
} | |
}, | |
"pluginVersion": "8.5.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits) by (namespace)", | |
"instant": false, | |
"interval": "$__interval", | |
"legendFormat": "{{image_namespace}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "All config audits by namespaces", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"drawStyle": "line", | |
"fillOpacity": 15, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green", | |
"value": null | |
}, | |
{ | |
"color": "blue", | |
"value": 1 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 12, | |
"x": 12, | |
"y": 32 | |
}, | |
"id": 70, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "8.5.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(trivy_resource_configaudits) by (severity)", | |
"instant": false, | |
"interval": "$__interval", | |
"legendFormat": "{{severity}}", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "All config audits by severity", | |
"type": "timeseries" | |
} | |
], | |
"refresh": "30s", | |
"schemaVersion": 38, | |
"style": "dark", | |
"tags": [ | |
"Prometheus", | |
"Trivy" | |
], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"selected": false, | |
"text": "Prometheus", | |
"value": "prometheus" | |
}, | |
"hide": 0, | |
"includeAll": false, | |
"multi": false, | |
"name": "datasource", | |
"options": [], | |
"query": "prometheus", | |
"queryValue": "", | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"type": "datasource" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(up, cluster)", | |
"hide": 0, | |
"includeAll": true, | |
"label": "Cluster", | |
"multi": true, | |
"name": "cluster", | |
"options": [], | |
"query": { | |
"query": "label_values(up, cluster)", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 0, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"selected": false, | |
"text": "All", | |
"value": "$__all" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "prometheus" | |
}, | |
"definition": "label_values(kube_namespace_labels{cluster=~\"$cluster\"}, namespace)", | |
"hide": 0, | |
"includeAll": true, | |
"multi": true, | |
"name": "namespace", | |
"options": [], | |
"query": { | |
"query": "label_values(kube_namespace_labels{cluster=~\"$cluster\"}, namespace)", | |
"refId": "StandardVariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"skipUrlSync": false, | |
"sort": 1, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-24h", | |
"to": "now" | |
}, | |
"timepicker": {}, | |
"timezone": "", | |
"title": "Trivy Operator Reports", | |
"uid": "trivy_operator", | |
"version": 5, | |
"weekStart": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment