Skip to content

Instantly share code, notes, and snippets.

@kunickiaj
Last active January 12, 2016 22:38
Show Gist options
  • Save kunickiaj/53ebebf16ebba9876b92 to your computer and use it in GitHub Desktop.
Save kunickiaj/53ebebf16ebba9876b92 to your computer and use it in GitHub Desktop.
Example Grafana Dashboard for StreamSetse Data Collector
{
"id": 1,
"title": "StreamSets Data Collector",
"originalTitle": "StreamSets Data Collector",
"tags": [],
"style": "dark",
"timezone": "utc",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "InfluxDB",
"decimals": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": 0,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)",
"thresholdLine": true
},
"id": 5,
"interval": ">10s",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count.",
"color": "#E24D42"
},
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchInputRecords_meter.Count.derivative",
"color": "#EAB839"
},
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count.",
"color": "#7EB26D"
}
],
"span": 12,
"stack": false,
"steppedLine": false,
"targets": [
{
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value) FROM \"metrics.sdc_pipeline_test_0_pipeline_batchInputRecords_meter.Count\"",
"rawQuery": true,
"tags": []
},
{
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value)*-1 FROM \"metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count\"",
"rawQuery": true,
"tags": []
},
{
"alias": "",
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value)*-1 FROM \"metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count\"",
"rawQuery": true,
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Records per Second (In / Out / Error)",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "InfluxDB",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 1,
"interval": ">10s",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchInputRecords_meter.Count.derivative",
"color": "#EAB839"
}
],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value) FROM \"metrics.sdc_pipeline_test_0_pipeline_batchInputRecords_meter.Count\"",
"rawQuery": true,
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Input Records / Second",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"aliasColors": {},
"bars": false,
"datasource": "InfluxDB",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 2,
"interval": ">10s",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value) FROM \"metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count\"",
"rawQuery": true,
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Output Records / Second",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
}
],
"title": "Row"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "InfluxDB",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 3,
"interval": ">10s",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count.derivative",
"color": "#E24D42"
}
],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"fields": [
{
"func": "derivative",
"name": "max(value)"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchOutputRecords_meter.Count",
"query": "SELECT derivative(value) FROM \"metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count\"",
"rawQuery": true,
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Error Records / Second",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"aliasColors": {},
"bars": true,
"datasource": "InfluxDB",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 4,
"interval": ">5m",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count.max",
"color": "#E24D42"
}
],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"fields": [
{
"func": "max",
"name": "value"
}
],
"fill": "",
"groupByTags": [],
"measurement": "metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count",
"query": "SELECT max(value) FROM \"metrics.sdc_pipeline_test_0_pipeline_batchErrorRecords_meter.Count\" WHERE $timeFilter GROUP BY time($interval)",
"rawQuery": false,
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Total Error Records",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
}
],
"title": "New row"
}
],
"nav": [
{
"collapse": false,
"enable": true,
"notice": false,
"now": false,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"status": "Stable",
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"type": "timepicker"
}
],
"time": {
"from": "2015-10-05T01:43:35.911Z",
"now": true,
"to": "2015-10-05T03:03:42.686Z"
},
"templating": {
"list": []
},
"annotations": {
"list": []
},
"schemaVersion": 6,
"version": 3,
"links": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment