Skip to content

Instantly share code, notes, and snippets.

@macetw
Created August 18, 2023 17:54
Show Gist options
  • Save macetw/10de1ea923d781dcd6da5b9b64799d39 to your computer and use it in GitHub Desktop.
Save macetw/10de1ea923d781dcd6da5b9b64799d39 to your computer and use it in GitHub Desktop.
{
"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"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 16413,
"graphTooltip": 0,
"id": 12,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 33,
"panels": [],
"title": "Red Metrics",
"type": "row"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
},
{
"color": "yellow",
"value": 45
},
{
"color": "orange",
"value": 55
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "D-series"
},
"properties": [
{
"id": "displayName",
"value": "Web Replica 4"
}
]
},
{
"matcher": {
"id": "byName",
"options": "C-series"
},
"properties": [
{
"id": "displayName",
"value": "Web Replica 3"
}
]
},
{
"matcher": {
"id": "byName",
"options": "B-series"
},
"properties": [
{
"id": "displayName",
"value": "Web Replica 2"
}
]
},
{
"matcher": {
"id": "byName",
"options": "A-series"
},
"properties": [
{
"id": "displayName",
"value": "Web Replica 1"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 1
},
"id": 3,
"options": {
"displayMode": "lcd",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "10.2.0-59542pre",
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"queryType": "randomWalk",
"refId": "A"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"hide": false,
"queryType": "randomWalk",
"refId": "B"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"hide": false,
"refId": "C"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"hide": false,
"refId": "D"
}
],
"title": "Server Request Rates per second",
"type": "bargauge"
},
{
"datasource": {
"type": "testdata",
"uid": "P53465F745837BCFD"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"targetBlank": true,
"title": "sockshop service details",
"url": "/d/b2kdXLwnz/sockshop-performance?orgId=1"
}
],
"mappings": [
{
"options": {
"from": 0,
"result": {
"color": "blue",
"index": 0,
"text": "OK"
},
"to": 1
},
"type": "range"
},
{
"options": {
"from": 1,
"result": {
"color": "yellow",
"index": 1,
"text": "Service degraded"
},
"to": 2
},
"type": "range"
},
{
"options": {
"from": 2,
"result": {
"color": "orange",
"index": 2,
"text": "SLO violation"
},
"to": 100
},
"type": "range"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 8,
"x": 8,
"y": 1
},
"id": 2,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.2.0-59542pre",
"targets": [
{
"alias": "Ashburn",
"datasource": {
"type": "testdata",
"uid": "P53465F745837BCFD"
},
"drop": 0,
"hide": false,
"max": 1.7,
"min": 0,
"noise": 0,
"refId": "B",
"scenarioId": "random_walk",
"spread": 0.3
},
{
"alias": "N. California",
"datasource": {
"type": "testdata",
"uid": "P53465F745837BCFD"
},
"drop": 0,
"hide": false,
"max": 0.5,
"min": 0,
"noise": 0,
"refId": "A",
"scenarioId": "random_walk",
"spread": 0.1
},
{
"alias": "London",
"datasource": {
"type": "testdata",
"uid": "P53465F745837BCFD"
},
"drop": 0,
"hide": false,
"max": 1.5,
"min": 0,
"noise": 0,
"refId": "C",
"scenarioId": "random_walk",
"spread": 0.3
},
{
"alias": "Frankfurt",
"datasource": {
"type": "testdata",
"uid": "P53465F745837BCFD"
},
"drop": 0,
"hide": false,
"max": 1.5,
"min": 0,
"noise": 0,
"refId": "D",
"scenarioId": "random_walk",
"spread": 0.1
}
],
"title": "SLO status (errors) per dataceter",
"type": "stat"
},
{
"gridPos": {
"h": 7,
"w": 8,
"x": 16,
"y": 1
},
"id": 31,
"libraryPanel": {
"name": "Latency profile, Sockshop Application",
"uid": "4WKrEvQ7k"
},
"title": "Latency quantiles, Sockshop Application"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 8
},
"id": 34,
"panels": [],
"title": "KPI",
"type": "row"
},
{
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 9
},
"id": 27,
"libraryPanel": {
"name": "Service APDEX",
"uid": "4H8NV-s7k"
},
"title": "Service APDEX"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus-cloud"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"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
}
]
},
"unit": "ms"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "user"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"dash": [
10,
10
],
"fill": "dash"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "payment"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"dash": [
5,
10
],
"fill": "dash"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "catalogue"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"dash": [
30,
3,
3
],
"fill": "dash"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "carts"
},
"properties": [
{
"id": "custom.lineStyle",
"value": {
"dash": [
0,
10
],
"fill": "dot"
}
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 8,
"x": 8,
"y": 9
},
"id": 23,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.2.0-59542pre",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus-cloud"
},
"editorMode": "code",
"exemplar": true,
"expr": "histogram_quantile(0.95, sum(rate(request_duration_seconds_bucket{app=\"sockshop\"}[5m])) by (le,job)) * 1000",
"interval": "",
"legendFormat": "{{ job }}",
"range": true,
"refId": "A"
}
],
"title": "Latency for Sockshop App",
"transformations": [
{
"id": "renameByRegex",
"options": {
"regex": ".*/(.*)",
"renamePattern": "$1"
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"gridPos": {
"h": 7,
"w": 8,
"x": 16,
"y": 9
},
"id": 32,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "<center><img align=\"center\" src=\"https://lat.ai/images/brand/latitude-title-logo.svg\" ></center>\n",
"mode": "html"
},
"pluginVersion": "10.2.0-59542pre",
"type": "text"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus-cloud"
},
"description": "we will turn this into a polystat",
"fieldConfig": {
"defaults": {
"mappings": [
{
"options": {
"0": {
"index": 1,
"text": "Down"
},
"1": {
"index": 0,
"text": "Up"
}
},
"type": "value"
}
]
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 8,
"x": 0,
"y": 16
},
"id": 7,
"links": [],
"options": {
"autoSizeColumns": true,
"autoSizePolygons": true,
"autoSizeRows": true,
"compositeConfig": {
"animationSpeed": "1500",
"composites": [],
"enabled": true
},
"ellipseCharacters": 18,
"ellipseEnabled": false,
"globalAutoScaleFonts": true,
"globalClickthrough": "",
"globalClickthroughNewTabEnabled": true,
"globalClickthroughSanitizedEnabled": true,
"globalDecimals": 0,
"globalDisplayMode": "all",
"globalDisplayTextTriggeredEmpty": "OK",
"globalFillColor": "rgba(10, 85, 161, 1)",
"globalFontSize": 12,
"globalGradientsEnabled": true,
"globalOperator": "mean",
"globalPolygonBorderColor": "transparent",
"globalPolygonBorderSize": 2,
"globalPolygonSize": 25,
"globalRegexPattern": "",
"globalShape": "hexagon_pointed_top",
"globalShowTooltipColumnHeadersEnabled": true,
"globalShowValueEnabled": true,
"globalTextFontAutoColorEnabled": true,
"globalTextFontColor": "#000000",
"globalTextFontFamily": "Roboto",
"globalThresholdsConfig": [
{
"color": "#FF9830",
"state": 2,
"value": 0
},
{
"color": "#5794F2",
"state": 0,
"value": 1
}
],
"globalTooltipsEnabled": true,
"globalTooltipsFontFamily": "Roboto",
"globalTooltipsShowTimestampEnabled": true,
"globalUnitFormat": "short",
"layoutDisplayLimit": 100,
"layoutNumColumns": 8,
"layoutNumRows": 8,
"overrideConfig": {
"overrides": []
},
"sortByDirection": 1,
"sortByField": "name",
"tooltipDisplayMode": "all",
"tooltipDisplayTextTriggeredEmpty": "OK",
"tooltipPrimarySortByField": "thresholdLevel",
"tooltipPrimarySortDirection": 1,
"tooltipSecondarySortByField": "value",
"tooltipSecondarySortDirection": 1
},
"pluginVersion": "2.1.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus-cloud"
},
"editorMode": "code",
"exemplar": false,
"expr": "up{app=\"sockshop\"}",
"format": "time_series",
"instant": true,
"interval": "",
"legendFormat": "{{container}}",
"refId": "A"
}
],
"title": "K8s Service Status",
"transparent": true,
"type": "grafana-polystat-panel"
},
{
"datasource": {
"type": "loki",
"uid": "P42BF267576A477F0"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-purple",
"value": null
},
{
"color": "dark-orange",
"value": 10
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 21,
"w": 16,
"x": 8,
"y": 16
},
"id": 11,
"links": [],
"maxDataPoints": 1,
"options": {
"basemap": {
"config": {
"server": "ocean"
},
"name": "Layer 0",
"type": "esri-xyz"
},
"controls": {
"mouseWheelZoom": true,
"showAttribution": true,
"showDebug": false,
"showMeasure": false,
"showScale": false,
"showZoom": true
},
"layers": [
{
"config": {
"showLegend": true,
"style": {
"color": {
"field": "Value #Hits by Geolocation",
"fixed": "dark-green"
},
"opacity": 0.5,
"rotation": {
"fixed": 0,
"max": 360,
"min": -360,
"mode": "mod"
},
"size": {
"field": "Value #Hits by Geolocation",
"fixed": 5,
"max": 15,
"min": 2
},
"symbol": {
"fixed": "img/icons/marker/star.svg",
"mode": "fixed"
},
"textConfig": {
"fontSize": 12,
"offsetX": 0,
"offsetY": 0,
"textAlign": "center",
"textBaseline": "middle"
}
}
},
"location": {
"lookup": "geoip_country_code",
"mode": "lookup"
},
"name": "Layer 1",
"tooltip": true,
"type": "markers"
}
],
"tooltip": {
"mode": "details"
},
"view": {
"allLayers": true,
"id": "zero",
"lat": 0,
"lon": 0,
"zoom": 1
}
},
"pluginVersion": "10.2.0-59542pre",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P42BF267576A477F0"
},
"expr": "sum by (geoip_country_code) (count_over_time({filename=~`.*json_access.log.*`} | json | geoip_country_code != \"\" | __error__=\"\" [$__interval]))",
"legendFormat": "{{geoip_country_code}}",
"queryType": "instant",
"refId": "Hits by Geolocation"
}
],
"title": "Customer Activity",
"transformations": [],
"transparent": true,
"type": "geomap"
},
{
"gridPos": {
"h": 11,
"w": 8,
"x": 0,
"y": 26
},
"id": 29,
"libraryPanel": {
"name": "Infrastructure - Error Score",
"uid": "4MZ88vQnk"
},
"title": "Infrastructure - Error Score"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "dull dashboard",
"uid": "nAd67as7k",
"version": 8,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment