Skip to content

Commit

Permalink
Merge pull request #150 from ruromero/snyk-latency
Browse files Browse the repository at this point in the history
chore: latency histograms for Snyk
  • Loading branch information
ruromero authored Sep 13, 2023
2 parents 4837200 + bf50c97 commit 5a54477
Showing 1 changed file with 129 additions and 14 deletions.
143 changes: 129 additions & 14 deletions dashboards/grafana-dashboard-exhort.configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ data:
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
Expand Down Expand Up @@ -644,13 +644,132 @@ data:
"title": "HTTP Response Codes",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"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": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 45,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.90, sum by (le) (rate(camel_route_policy_seconds_bucket{routeId=\"snykRequest\"}[2m])))",
"legendFormat": "0.90",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum by (le) (rate(camel_route_policy_seconds_bucket{routeId=\"snykRequest\"}[2m])))",
"hide": false,
"legendFormat": "0.95",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum by (le) (rate(camel_route_policy_seconds_bucket{routeId=\"snykRequest\"}[2m])))",
"hide": false,
"legendFormat": "0.99",
"range": true,
"refId": "C"
}
],
"title": "Snyk",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
"y": 24
},
"id": 36,
"panels": [
Expand Down Expand Up @@ -702,8 +821,7 @@ data:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -719,7 +837,7 @@ data:
"h": 8,
"w": 12,
"x": 0,
"y": 21
"y": 37
},
"id": 38,
"options": {
Expand Down Expand Up @@ -812,8 +930,7 @@ data:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "dark-red",
Expand Down Expand Up @@ -842,7 +959,7 @@ data:
"h": 8,
"w": 12,
"x": 12,
"y": 21
"y": 37
},
"id": 39,
"options": {
Expand Down Expand Up @@ -938,8 +1055,7 @@ data:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand All @@ -951,7 +1067,7 @@ data:
"h": 8,
"w": 12,
"x": 0,
"y": 29
"y": 45
},
"id": 40,
"options": {
Expand Down Expand Up @@ -1031,8 +1147,7 @@ data:
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
},
Expand All @@ -1044,7 +1159,7 @@ data:
"h": 8,
"w": 12,
"x": 12,
"y": 29
"y": 45
},
"id": 41,
"options": {
Expand Down

0 comments on commit 5a54477

Please sign in to comment.