Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save christineywang/40f7717d6db67624676919379527112b to your computer and use it in GitHub Desktop.
Save christineywang/40f7717d6db67624676919379527112b to your computer and use it in GitHub Desktop.
signalfx
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "A remake of the stock \"Sample Charts (Sample Data)\" dashboard on signalfx.com",
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 396,
"links": [],
"panels": [
{
"datasource": "Splunk Infrastructure Monitoring",
"description": "Total number of hosts seen by load balancers",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-blue",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.4",
"targets": [
{
"query": "data('demo.lb.hosts').sum().publish(label='A')",
"refId": "A"
}
],
"title": "Total no. hosts",
"type": "stat"
},
{
"datasource": "Splunk Infrastructure Monitoring",
"description": "Moving average of total transactions over previous 10 minutes.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-blue",
"value": null
},
{
"color": "purple",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 0
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.4",
"targets": [
{
"query": "data('demo.trans.count', rollup='rate').mean(over='10m').sum().publish(label='A')",
"refId": "A"
}
],
"title": "Total no. transactions",
"type": "stat"
},
{
"datasource": "Splunk Infrastructure Monitoring",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": null,
"displayMode": "lcd-gauge",
"filterable": false
},
"mappings": [
{
"from": "",
"id": 1,
"text": "server6",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server6\", label=\"A\"}"
},
{
"from": "",
"id": 2,
"text": "server5",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server5\", label=\"A\"}"
},
{
"from": "",
"id": 3,
"text": "server4",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server4\", label=\"A\"}"
},
{
"from": "",
"id": 4,
"text": "server3",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server3\", label=\"A\"}"
},
{
"from": "",
"id": 5,
"text": "server2",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server2\", label=\"A\"}"
},
{
"from": "",
"id": 6,
"text": "server1",
"to": "",
"type": 1,
"value": "demo.trans.count {demo_host=\"server1\", label=\"A\"}"
}
],
"max": 600,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "semi-dark-blue",
"value": null
},
{
"color": "purple",
"value": 500
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Host"
},
"properties": [
{
"id": "custom.displayMode",
"value": "color-text"
},
{
"id": "custom.width",
"value": 102
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"id": 4,
"interval": null,
"maxDataPoints": null,
"options": {
"showHeader": true,
"sortBy": []
},
"pluginVersion": "7.5.4",
"targets": [
{
"query": "data('demo.trans.count', rollup='rate').sum(by=['demo_host']).publish(label='A')",
"refId": "A"
}
],
"timeFrom": null,
"title": "Top hosts by transactions per second",
"transformations": [
{
"id": "seriesToColumns",
"options": {
"byField": "__time"
}
},
{
"id": "reduce",
"options": {
"reducers": [
"lastNotNull"
]
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"__time": false
},
"indexByName": {},
"renameByName": {
"Field": "Host",
"Last (not null)": "Transactions per second"
}
}
},
{
"id": "sortBy",
"options": {
"fields": {},
"sort": [
{
"desc": true,
"field": "Transactions per second"
}
]
}
}
],
"type": "table"
},
{
"datasource": "Splunk Infrastructure Monitoring",
"description": "Comparison in max, min and P50 latencies.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Latency (ms)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "demo.trans.latency A"
},
"properties": [
{
"id": "displayName",
"value": "Max"
}
]
},
{
"matcher": {
"id": "byName",
"options": "demo.trans.latency B"
},
"properties": [
{
"id": "displayName",
"value": "P50"
}
]
},
{
"matcher": {
"id": "byName",
"options": "demo.trans.latency C"
},
"properties": [
{
"id": "displayName",
"value": "Min"
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 4
},
"id": 5,
"options": {
"graph": {},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.4.3",
"targets": [
{
"query": "data('demo.trans.latency').max().publish(label='A')",
"refId": "A"
},
{
"hide": false,
"query": "data('demo.trans.latency').percentile(pct=50).publish(label='B')",
"refId": "B"
},
{
"hide": false,
"query": "data('demo.trans.latency').min().publish(label='C')",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Max, P50 and min latency",
"transformations": [],
"type": "timeseries"
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateRdYlGn",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "timeseries",
"datasource": "Splunk Infrastructure Monitoring",
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 12,
"x": 0,
"y": 9
},
"heatmap": {},
"hideZeroBuckets": false,
"highlightCards": true,
"id": 7,
"legend": {
"show": true
},
"pluginVersion": "7.4.3",
"reverseYBuckets": false,
"targets": [
{
"query": "data('demo.trans.latency').publish(label='A')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Latency heatmap",
"tooltip": {
"show": true,
"showHistogram": false
},
"transformations": [],
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": 10,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": 10,
"yBucketSize": 30
},
{
"datasource": "Splunk Infrastructure Monitoring",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-BlYlRd"
},
"displayName": "-",
"mappings": [],
"max": 200,
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 9
},
"id": 6,
"options": {
"displayMode": "gradient",
"orientation": "vertical",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": false,
"text": {}
},
"pluginVersion": "7.5.4",
"targets": [
{
"query": "data('demo.trans.count', rollup='rate').publish(label='A')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Total no. transactions",
"transformations": [],
"type": "bargauge"
},
{
"datasource": "Splunk Infrastructure Monitoring",
"description": "Latency vs. transaction count on separate axes.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "right",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "demo.trans.latency A"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "left"
},
{
"id": "displayName",
"value": "Latency"
},
{
"id": "unit",
"value": "short"
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "custom.fillOpacity",
"value": 49
},
{
"id": "custom.axisLabel",
"value": "Latency"
}
]
},
{
"matcher": {
"id": "byName",
"options": "demo.trans.count B"
},
"properties": [
{
"id": "displayName",
"value": "Transactions"
},
{
"id": "custom.drawStyle",
"value": "bars"
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "custom.fillOpacity",
"value": 100
},
{
"id": "custom.axisLabel",
"value": "Transactions"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 15
},
"id": 9,
"interval": "1m",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.4.3",
"targets": [
{
"query": "A = data('demo.trans.latency').mean().publish(label='A')\nB = data('demo.trans.count', rollup='rate').sum().publish(label='B')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Latency vs. transaction count",
"transformations": [],
"type": "timeseries"
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateReds",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "timeseries",
"datasource": "Splunk Infrastructure Monitoring",
"description": "Spread of latency values across time.",
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 15
},
"heatmap": {},
"hideZeroBuckets": false,
"highlightCards": true,
"id": 8,
"legend": {
"show": true
},
"pluginVersion": "7.4.3",
"reverseYBuckets": false,
"targets": [
{
"query": "data('demo.trans.latency').publish(label='A')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Latency histogram",
"tooltip": {
"show": true,
"showHistogram": false
},
"transformations": [],
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": "10s",
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketBound": "auto",
"yBucketNumber": null,
"yBucketSize": 5
},
{
"datasource": "Splunk Infrastructure Monitoring",
"description": "Total transactions by customer.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "demo.trans.count {demo_customer=\"zibobodesign.net\", label=\"A\"}"
},
"properties": [
{
"id": "displayName",
"value": "zibobodesign.net"
}
]
},
{
"matcher": {
"id": "byName",
"options": "demo.trans.count {demo_customer=\"thefountain.org\", label=\"A\"}"
},
"properties": [
{
"id": "displayName",
"value": "thefountain.org"
}
]
},
{
"matcher": {
"id": "byName",
"options": "demo.trans.count {demo_customer=\"samslack.com\", label=\"A\"}"
},
"properties": [
{
"id": "displayName",
"value": "samslack.com"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 23
},
"id": 11,
"interval": "1m",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.4.3",
"targets": [
{
"query": "A = data('demo.trans.count', rollup='rate').sum(by=['demo_customer']).mean(over='1m').publish(label='A')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "No. transactions per customer",
"transformations": [],
"type": "timeseries"
},
{
"datasource": "Splunk Infrastructure Monitoring",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Latency (ms)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "opacity",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "C zibobodesign.net"
},
"properties": [
{
"id": "displayName",
"value": "zibobodesign.net"
}
]
},
{
"matcher": {
"id": "byName",
"options": "C thefountain.org"
},
"properties": [
{
"id": "displayName",
"value": "thefountain.org"
}
]
},
{
"matcher": {
"id": "byName",
"options": "C samslack.com"
},
"properties": [
{
"id": "displayName",
"value": "samslack.com"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 23
},
"id": 10,
"interval": "1m",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.4.3",
"targets": [
{
"query": "A = data('demo.trans.latency').sum(by=['demo_customer']).publish(label='A', enable=False)\nB = data('demo.trans.count', rollup='rate').sum(by=['demo_customer']).publish(label='B', enable=False)\nC = (A/B).publish(label='C')",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Latency per transaction by customer",
"transformations": [],
"type": "timeseries"
}
],
"refresh": "10s",
"schemaVersion": 27,
"style": "dark",
"tags": [
"signalfx"
],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "SignalFX Sample Data",
"uid": "a99sQWwMzabc",
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment