Skip to content

Commit

Permalink
Add p95 & p99 Metrics of fetchEverything
Browse files Browse the repository at this point in the history
  • Loading branch information
trobanga committed Sep 10, 2024
1 parent e58be22 commit f06456e
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 22 deletions.
243 changes: 222 additions & 21 deletions monitoring/grafana/dashboards/http-request-duration.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 3,
"id": 4,
"links": [],
"liveNow": true,
"panels": [
Expand Down Expand Up @@ -380,7 +380,7 @@
},
"gridPos": {
"h": 8,
"w": 12,
"w": 6,
"x": 0,
"y": 17
},
Expand Down Expand Up @@ -473,11 +473,11 @@
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"w": 8,
"x": 6,
"y": 17
},
"id": 8,
"id": 34,
"options": {
"displayMode": "gradient",
"maxVizHeight": 300,
Expand Down Expand Up @@ -518,6 +518,214 @@
"title": "fetchEverything",
"type": "bargauge"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 0.5,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 14,
"y": 17
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "histogram_quantile(0.95, rate(http_client_requests_seconds_bucket{job=\"cda\", uri=\"/fhir/Patient/{id}/$everything\"}[1m]))",
"format": "heatmap",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "fetchEverything p95",
"type": "timeseries"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 0.5,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 19,
"y": 17
},
"id": 35,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "histogram_quantile(0.99, rate(http_client_requests_seconds_bucket{job=\"cda\", uri=\"/fhir/Patient/{id}/$everything\"}[1m]))",
"format": "heatmap",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "fetchEverything p99",
"type": "timeseries"
},
{
"datasource": {
"default": true,
Expand Down Expand Up @@ -942,8 +1150,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1103,8 +1310,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1277,8 +1483,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1437,8 +1642,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1610,8 +1814,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1770,8 +1973,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1930,8 +2132,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1997,13 +2198,13 @@
"list": []
},
"time": {
"from": "now-30m",
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "HTTP Request Duration",
"uid": "b09b2bde-f43d-484e-92c8-e09296372056",
"version": 1,
"version": 2,
"weekStart": ""
}
1 change: 0 additions & 1 deletion monitoring/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ scrape_configs:
static_configs:
- targets: [ "rd-agent:8080" ]


- job_name: "prometheus"
scrape_interval: 5s
static_configs:
Expand Down

0 comments on commit f06456e

Please sign in to comment.