This metric counts the vulnerabilities by severity. Each performed scan will store the ammount of scanned lines on the gauge dataPoint.
- Type: Gauge
- Name: vulnerabilitiesSeverity
Entity | Action |
---|---|
Scan | Scan_Completed |
source
: from grpc ast-core-scan/getScanDetailslanguage
: from grpc ast-data-abalytics-api/getVulnerabilityscanner
:multi values
from grpc ast-core-scan/getScanDetailsprojectId
: from eventtenantId
: from eventseverity:
from grpc ast-data-abalytics-api/getVulnerability
Example:
{
"language":"java",
"severity":"HIGH",
"scanner":"sast",
"projectId":"c2cdf5e7-b450-4f28-ac28-74567372e4a7",
"tenantId":"389c6d78-e97b-4a30-b2f7-da39daf721a4",
}
- vulnerabilitiesSeverity{tenantId="abe9f0e1-7882-4a81-9b09-fd01be27282a",projectId="f495a9ae-fae4-44b5-906c-d7ebc588b352",scanner="sast",severity="HIGH",language="VB6",} 2.0
- scanner
- projectId
- language
- severity
- tenantId (in case multitenant)
- scanner
- projectId
- language
- severity
- tenantId (in case multitenant)
{
"step": "30d",
"definedRange": "1y",
"queryFunction": 2,
"format": "pie",
"splitTag":["severity"],
"showHistorical": "default"
}
PromQuery
: sum by (values,severity)(last_over_time(vulnerabilitiesSeverity[$__range]))Type
: instantQuery
{
"step": "30d",
"definedRange": "1y",
"queryFunction": 5,
"format": "series",
"splitTag":["severity"],
"showHistorical": "default",
"fullFillGaps": true,
}
PromQuery
: sum by (values,severity)(vulnerabilitiesSeverity)Type
: rangeQuery