1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003 |
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "grafana",
- "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": "Spanmetrics way of demo application view.",
- "author": {
- "name": "devrimdemiroz"
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 0,
- "links": [],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 24,
- "panels": [],
- "title": "Service Level - Throughput and Latencies",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-BlYlRd"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "blue",
- "value": null
- },
- {
- "color": "green",
- "value": 2
- },
- {
- "color": "#EAB839",
- "value": 64
- },
- {
- "color": "orange",
- "value": 128
- },
- {
- "color": "red",
- "value": 256
- }
- ]
- },
- "unit": "ms"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 20,
- "w": 12,
- "x": 0,
- "y": 1
- },
- "id": 2,
- "interval": "5m",
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,histogram_quantile(0.50, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))",
- "format": "time_series",
- "hide": true,
- "instant": false,
- "interval": "",
- "legendFormat": "{{service_name}}-quantile_0.50",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,histogram_quantile(0.95, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,service_name)))",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "{{le}} - {{service_name}}",
- "range": false,
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "histogram_quantile(0.99, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))",
- "hide": true,
- "interval": "",
- "legendFormat": "quantile99",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "histogram_quantile(0.999, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))",
- "hide": true,
- "interval": "",
- "legendFormat": "quantile999",
- "range": true,
- "refId": "D"
- }
- ],
- "title": "Top 3x3 - Service Latency - quantile95",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-BlYlRd"
- },
- "decimals": 2,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "super-light-blue",
- "value": 1
- },
- {
- "color": "#EAB839",
- "value": 2
- },
- {
- "color": "red",
- "value": 10
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 13,
- "w": 12,
- "x": 12,
- "y": 1
- },
- "id": 4,
- "interval": "5m",
- "options": {
- "displayMode": "lcd",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true,
- "text": {}
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,sum by (service_name) (rate(calls_total{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])))",
- "format": "time_series",
- "instant": true,
- "interval": "",
- "legendFormat": "{{service_name}}",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Top 7 Services Mean Rate over Range",
- "transformations": [],
- "type": "bargauge"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-reds"
- },
- "decimals": 4,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#EAB839",
- "value": 1
- },
- {
- "color": "red",
- "value": 15
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 14
- },
- "id": 15,
- "interval": "5m",
- "options": {
- "displayMode": "lcd",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "vertical",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true,
- "text": {}
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,sum(rate(calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (service_name))",
- "instant": true,
- "interval": "",
- "legendFormat": "{{service_name}}",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Top 7 Services Mean ERROR Rate over Range",
- "transformations": [],
- "type": "bargauge"
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 21
- },
- "id": 14,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "refId": "A"
- }
- ],
- "title": "span_names Level - Throughput",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false
- },
- "decimals": 2,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "reqps"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "bRate"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "lcd-gauge"
- },
- {
- "id": "color",
- "value": {
- "mode": "continuous-BlYlRd"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "eRate"
- },
- "properties": [
- {
- "id": "custom.displayMode",
- "value": "lcd-gauge"
- },
- {
- "id": "color",
- "value": {
- "mode": "continuous-RdYlGr"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Error Rate"
- },
- "properties": [
- {
- "id": "custom.width",
- "value": 663
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Rate"
- },
- "properties": [
- {
- "id": "custom.width",
- "value": 667
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Service"
- },
- "properties": [
- {
- "id": "custom.width",
- "value": null
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 11,
- "w": 24,
- "x": 0,
- "y": 22
- },
- "id": 22,
- "interval": "5m",
- "options": {
- "footer": {
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true,
- "sortBy": []
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "exemplar": false,
- "expr": "topk(7, sum(rate(calls_total{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name)) ",
- "format": "table",
- "instant": true,
- "interval": "",
- "legendFormat": "",
- "refId": "Rate"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "exemplar": false,
- "expr": "topk(7, sum(rate(calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name))",
- "format": "table",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "",
- "refId": "Error Rate"
- }
- ],
- "title": "Top 7 span_names and Errors (APM Table)",
- "transformations": [
- {
- "id": "seriesToColumns",
- "options": {
- "byField": "span_name"
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time 1": true,
- "Time 2": true
- },
- "indexByName": {},
- "renameByName": {
- "Value #Error Rate": "Error Rate",
- "Value #Rate": "Rate",
- "service_name 1": "Rate in Service",
- "service_name 2": "Error Rate in Service"
- }
- }
- },
- {
- "id": "calculateField",
- "options": {
- "alias": "bRate",
- "mode": "reduceRow",
- "reduce": {
- "include": [
- "Rate"
- ],
- "reducer": "sum"
- }
- }
- },
- {
- "id": "calculateField",
- "options": {
- "alias": "eRate",
- "mode": "reduceRow",
- "reduce": {
- "include": [
- "Error Rate"
- ],
- "reducer": "sum"
- }
- }
- },
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Error Rate": true,
- "Rate": true,
- "bRate": false
- },
- "indexByName": {
- "Error Rate": 4,
- "Error Rate in Service": 6,
- "Rate": 1,
- "Rate in Service": 5,
- "bRate": 2,
- "eRate": 3,
- "span_name": 0
- },
- "renameByName": {
- "Rate in Service": "Service",
- "bRate": "Rate",
- "eRate": "Error Rate",
- "span_name": "span_name Name"
- }
- }
- },
- {
- "id": "sortBy",
- "options": {
- "fields": {},
- "sort": [
- {
- "desc": true,
- "field": "Rate"
- }
- ]
- }
- }
- ],
- "type": "table"
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 33
- },
- "id": 20,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "refId": "A"
- }
- ],
- "title": "span_name Level - Latencies",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-BlYlRd"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "blue",
- "value": null
- },
- {
- "color": "green",
- "value": 2
- },
- {
- "color": "#EAB839",
- "value": 64
- },
- {
- "color": "orange",
- "value": 128
- },
- {
- "color": "red",
- "value": 256
- }
- ]
- },
- "unit": "ms"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 13,
- "w": 12,
- "x": 0,
- "y": 34
- },
- "id": 25,
- "interval": "5m",
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,histogram_quantile(0.50, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))",
- "format": "time_series",
- "hide": true,
- "instant": false,
- "interval": "",
- "legendFormat": "{{service_name}}-quantile_0.50",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7,histogram_quantile(0.95, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,span_name)))",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "{{span_name}}",
- "range": false,
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "histogram_quantile(0.99, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))",
- "hide": true,
- "interval": "",
- "legendFormat": "quantile99",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "histogram_quantile(0.999, sum(rate(duration_milliseconds_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))",
- "hide": true,
- "interval": "",
- "legendFormat": "quantile999",
- "range": true,
- "refId": "D"
- }
- ],
- "title": "Top 3x3 - span_name Latency - quantile95",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "continuous-BlYlRd"
- },
- "decimals": 2,
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "ms"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 13,
- "w": 12,
- "x": 12,
- "y": 34
- },
- "id": 10,
- "interval": "5m",
- "options": {
- "displayMode": "lcd",
- "minVizHeight": 10,
- "minVizWidth": 0,
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "mean"
- ],
- "fields": "",
- "values": false
- },
- "showUnfilled": true
- },
- "pluginVersion": "9.1.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "topk(7, sum by (span_name,service_name)(increase(duration_milliseconds_sum{service_name=~\"${service}\", span_name=~\"$span_name\"}[5m]) / increase(duration_milliseconds_count{service_name=~\"${service}\",span_name=~\"$span_name\"}[5m\n])))",
- "instant": true,
- "interval": "",
- "legendFormat": "{{span_name}} [{{service_name}}]",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Top 7 Highest Endpoint Latencies Mean Over Range ",
- "transformations": [],
- "type": "bargauge"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 15,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "smooth",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "ms"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 24,
- "x": 0,
- "y": 47
- },
- "id": 16,
- "interval": "5m",
- "options": {
- "legend": {
- "calcs": [
- "mean",
- "logmin",
- "max",
- "delta"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "8.4.7",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "editorMode": "code",
- "exemplar": true,
- "expr": "topk(7,sum by (span_name,service_name)(increase(duration_milliseconds_sum{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval]) / increase(duration_milliseconds_count{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])))",
- "instant": false,
- "interval": "",
- "legendFormat": "[{{service_name}}] {{span_name}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "Top 7 Latencies Over Range ",
- "type": "timeseries"
- }
- ],
- "refresh": "5m",
- "schemaVersion": 37,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "definition": "query_result(count by (service_name)(count_over_time(calls_total[$__range])))",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "service",
- "options": [],
- "query": {
- "query": "query_result(count by (service_name)(count_over_time(calls_total[$__range])))",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "/.*service_name=\"(.*)\".*/",
- "skipUrlSync": false,
- "sort": 1,
- "type": "query"
- },
- {
- "allValue": ".*",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus",
- "uid": "webstore-metrics"
- },
- "definition": "query_result(sum ({__name__=~\".*calls_total\",service_name=~\"$service\"}) by (span_name))",
- "hide": 0,
- "includeAll": true,
- "multi": true,
- "name": "span_name",
- "options": [],
- "query": {
- "query": "query_result(sum ({__name__=~\".*calls_total\",service_name=~\"$service\"}) by (span_name))",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "/.*span_name=\"(.*)\".*/",
- "skipUrlSync": false,
- "sort": 0,
- "type": "query"
- }
- ]
- },
- "time": {
- "from": "now-1h",
- "to": "now"
- },
- "timepicker": {},
- "timezone": "",
- "title": "Spanmetrics Demo Dashboard",
- "uid": "W2gX2zHVk48",
- "version": 1,
- "weekStart": ""
- }
|