1+ {
2+ "annotations" : {
3+ "list" : [
4+ {
5+ "builtIn" : 1 ,
6+ "datasource" : {
7+ "type" : " grafana" ,
8+ "uid" : " -- Grafana --"
9+ },
10+ "enable" : true ,
11+ "hide" : true ,
12+ "iconColor" : " rgba(0, 211, 255, 1)" ,
13+ "name" : " Annotations & Alerts" ,
14+ "type" : " dashboard"
15+ }
16+ ]
17+ },
18+ "editable" : true ,
19+ "fiscalYearStartMonth" : 0 ,
20+ "graphTooltip" : 0 ,
21+ "id" : 3 ,
22+ "links" : [],
23+ "liveNow" : false ,
24+ "panels" : [
25+ {
26+ "datasource" : {
27+ "type" : " prometheus" ,
28+ "uid" : " PBFA97CFB590B2093"
29+ },
30+ "fieldConfig" : {
31+ "defaults" : {
32+ "color" : {
33+ "mode" : " palette-classic"
34+ },
35+ "custom" : {
36+ "axisCenteredZero" : false ,
37+ "axisColorMode" : " text" ,
38+ "axisLabel" : " " ,
39+ "axisPlacement" : " auto" ,
40+ "barAlignment" : 0 ,
41+ "drawStyle" : " line" ,
42+ "fillOpacity" : 0 ,
43+ "gradientMode" : " none" ,
44+ "hideFrom" : {
45+ "legend" : false ,
46+ "tooltip" : false ,
47+ "viz" : false
48+ },
49+ "lineInterpolation" : " linear" ,
50+ "lineWidth" : 1 ,
51+ "pointSize" : 5 ,
52+ "scaleDistribution" : {
53+ "type" : " linear"
54+ },
55+ "showPoints" : " auto" ,
56+ "spanNulls" : false ,
57+ "stacking" : {
58+ "group" : " A" ,
59+ "mode" : " none"
60+ },
61+ "thresholdsStyle" : {
62+ "mode" : " off"
63+ }
64+ },
65+ "mappings" : [],
66+ "thresholds" : {
67+ "mode" : " absolute" ,
68+ "steps" : [
69+ {
70+ "color" : " green" ,
71+ "value" : null
72+ },
73+ {
74+ "color" : " red" ,
75+ "value" : 80
76+ }
77+ ]
78+ }
79+ },
80+ "overrides" : []
81+ },
82+ "gridPos" : {
83+ "h" : 9 ,
84+ "w" : 24 ,
85+ "x" : 0 ,
86+ "y" : 0
87+ },
88+ "id" : 1 ,
89+ "options" : {
90+ "legend" : {
91+ "calcs" : [],
92+ "displayMode" : " list" ,
93+ "placement" : " bottom" ,
94+ "showLegend" : true
95+ },
96+ "tooltip" : {
97+ "mode" : " single" ,
98+ "sort" : " none"
99+ }
100+ },
101+ "targets" : [
102+ {
103+ "datasource" : {
104+ "type" : " prometheus" ,
105+ "uid" : " PBFA97CFB590B2093"
106+ },
107+ "editorMode" : " code" ,
108+ "expr" : " count by (severity) (vuln_operator_cves{image_id=\" $image\" })" ,
109+ "instant" : false ,
110+ "legendFormat" : " __auto" ,
111+ "range" : true ,
112+ "refId" : " A"
113+ }
114+ ],
115+ "title" : " CVEs by severity" ,
116+ "type" : " timeseries"
117+ },
118+ {
119+ "datasource" : {
120+ "type" : " prometheus" ,
121+ "uid" : " PBFA97CFB590B2093"
122+ },
123+ "fieldConfig" : {
124+ "defaults" : {
125+ "color" : {
126+ "mode" : " palette-classic"
127+ },
128+ "custom" : {
129+ "axisCenteredZero" : false ,
130+ "axisColorMode" : " text" ,
131+ "axisLabel" : " " ,
132+ "axisPlacement" : " auto" ,
133+ "barAlignment" : 0 ,
134+ "drawStyle" : " line" ,
135+ "fillOpacity" : 0 ,
136+ "gradientMode" : " none" ,
137+ "hideFrom" : {
138+ "legend" : false ,
139+ "tooltip" : false ,
140+ "viz" : false
141+ },
142+ "lineInterpolation" : " linear" ,
143+ "lineWidth" : 1 ,
144+ "pointSize" : 5 ,
145+ "scaleDistribution" : {
146+ "type" : " linear"
147+ },
148+ "showPoints" : " auto" ,
149+ "spanNulls" : false ,
150+ "stacking" : {
151+ "group" : " A" ,
152+ "mode" : " none"
153+ },
154+ "thresholdsStyle" : {
155+ "mode" : " off"
156+ }
157+ },
158+ "mappings" : [],
159+ "thresholds" : {
160+ "mode" : " absolute" ,
161+ "steps" : [
162+ {
163+ "color" : " green" ,
164+ "value" : null
165+ },
166+ {
167+ "color" : " red" ,
168+ "value" : 80
169+ }
170+ ]
171+ }
172+ },
173+ "overrides" : []
174+ },
175+ "gridPos" : {
176+ "h" : 9 ,
177+ "w" : 24 ,
178+ "x" : 0 ,
179+ "y" : 9
180+ },
181+ "id" : 2 ,
182+ "options" : {
183+ "legend" : {
184+ "calcs" : [],
185+ "displayMode" : " list" ,
186+ "placement" : " bottom" ,
187+ "showLegend" : true
188+ },
189+ "tooltip" : {
190+ "mode" : " single" ,
191+ "sort" : " none"
192+ }
193+ },
194+ "targets" : [
195+ {
196+ "datasource" : {
197+ "type" : " prometheus" ,
198+ "uid" : " PBFA97CFB590B2093"
199+ },
200+ "editorMode" : " code" ,
201+ "expr" : " count by (package, version) (vuln_operator_cves{image_id=\" $image\" })" ,
202+ "instant" : false ,
203+ "legendFormat" : " {{package}}@{{version}}" ,
204+ "range" : true ,
205+ "refId" : " A"
206+ }
207+ ],
208+ "title" : " CVEs by package" ,
209+ "type" : " timeseries"
210+ }
211+ ],
212+ "refresh" : " 10s" ,
213+ "schemaVersion" : 38 ,
214+ "style" : " dark" ,
215+ "tags" : [],
216+ "templating" : {
217+ "list" : [
218+ {
219+ "current" : {
220+ "selected" : false ,
221+ "text" : " docker.io/grafana/grafana@sha256:c2a9d25b77b9a7439e56efffa916e43eda09db4f7b78526082443f9c2ee18dc0" ,
222+ "value" : " docker.io/grafana/grafana@sha256:c2a9d25b77b9a7439e56efffa916e43eda09db4f7b78526082443f9c2ee18dc0"
223+ },
224+ "datasource" : {
225+ "type" : " prometheus" ,
226+ "uid" : " PBFA97CFB590B2093"
227+ },
228+ "definition" : " label_values(image_id)" ,
229+ "hide" : 0 ,
230+ "includeAll" : false ,
231+ "label" : " Image" ,
232+ "multi" : false ,
233+ "name" : " image" ,
234+ "options" : [],
235+ "query" : {
236+ "query" : " label_values(image_id)" ,
237+ "refId" : " PrometheusVariableQueryEditor-VariableQuery"
238+ },
239+ "refresh" : 1 ,
240+ "regex" : " " ,
241+ "skipUrlSync" : false ,
242+ "sort" : 0 ,
243+ "type" : " query"
244+ }
245+ ]
246+ },
247+ "time" : {
248+ "from" : " now-6h" ,
249+ "to" : " now"
250+ },
251+ "timepicker" : {},
252+ "timezone" : " " ,
253+ "title" : " CVEs by Image" ,
254+ "uid" : " d4e451d2-0482-4477-9376-8e6ad31ec6fc" ,
255+ "version" : 2 ,
256+ "weekStart" : " "
257+ }
0 commit comments