Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Created February 19, 2015 18:15
Show Gist options
  • Save fabianvf/941b11d1b881676a2be7 to your computer and use it in GitHub Desktop.
Save fabianvf/941b11d1b881676a2be7 to your computer and use it in GitHub Desktop.
{
"title": "Scrapi",
"services":
{
"query":
{
"list":
{
"0":
{
"query": "status:started",
"alias": "Task Started",
"color": "#70DBED",
"id": 0,
"pin": false,
"type": "lucene",
"enable": true
},
"1":
{
"id": 1,
"color": "#2F575E",
"alias": "Task Created",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:created"
},
"2":
{
"id": 2,
"color": "#BF1B00",
"alias": "Task Failed",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:failed"
},
"3":
{
"id": 3,
"color": "#7EB26D",
"alias": "Task Completed",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:completed"
},
"4":
{
"id": 4,
"color": "#3F6833",
"alias": "Consumer Started",
"pin": false,
"type": "lucene",
"enable": true,
"query": "event:runConsumer AND status:started"
},
"5":
{
"id": 5,
"color": "#7EB26D",
"alias": "Processing Finished",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:completed AND @tag:scrapi.processing*"
},
"6":
{
"id": 6,
"color": "#1F78C1",
"alias": "Processing Queued",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:created AND @tag:scrapi.processing*"
},
"7":
{
"id": 7,
"color": "#BF1B00",
"alias": "Processing Failed",
"pin": false,
"type": "lucene",
"enable": true,
"query": "status:failed AND @tag:scrapi.processing*"
}
},
"ids":
[
0,
1,
2,
3,
4,
5,
6,
7
]
},
"filter":
{
"list":
{
"0":
{
"type": "time",
"field": "@timestamp",
"from": "now-1h",
"to": "now",
"mandate": "must",
"active": true,
"alias": "",
"id": 0
}
},
"ids":
[
0
]
}
},
"rows":
[
{
"title": "Options",
"height": "150px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels":
[
{
"span": 12,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid":
{
"max": null,
"min": null
},
"queries":
{
"mode": "selected",
"ids":
[
4
]
},
"annotate":
{
"enable": false,
"query": "*",
"size": 20,
"field": "consumer_name",
"sort":
[
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 100,
"interval": "30s",
"intervals":
[
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 0,
"linewidth": 3,
"points": false,
"pointradius": 3,
"bars": false,
"stack": false,
"spyable": true,
"zoomlinks": true,
"options": true,
"legend": true,
"show_query": true,
"interactive": true,
"legend_counts": true,
"timezone": "browser",
"percentage": false,
"zerofill": true,
"derivative": false,
"tooltip":
{
"value_type": "individual",
"query_as_alias": true
},
"title": "Consumers Started"
},
{
"span": 12,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid":
{
"max": null,
"min": null
},
"queries":
{
"mode": "selected",
"ids":
[
2,
3
]
},
"annotate":
{
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort":
[
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 100,
"interval": "30s",
"intervals":
[
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 0,
"linewidth": 3,
"points": false,
"pointradius": 5,
"bars": false,
"stack": false,
"spyable": true,
"zoomlinks": true,
"options": true,
"legend": true,
"show_query": true,
"interactive": false,
"legend_counts": true,
"timezone": "browser",
"percentage": false,
"zerofill": true,
"derivative": false,
"tooltip":
{
"value_type": "individual",
"query_as_alias": true
},
"title": "Failures vs Completions"
},
{
"span": 12,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid":
{
"max": null,
"min": null
},
"queries":
{
"mode": "selected",
"ids":
[
5,
6,
7
]
},
"annotate":
{
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort":
[
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 100,
"interval": "30s",
"intervals":
[
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 0,
"linewidth": 3,
"points": false,
"pointradius": 5,
"bars": false,
"stack": false,
"spyable": true,
"zoomlinks": true,
"options": false,
"legend": true,
"show_query": true,
"interactive": false,
"legend_counts": true,
"timezone": "browser",
"percentage": false,
"zerofill": false,
"derivative": false,
"tooltip":
{
"value_type": "individual",
"query_as_alias": true
},
"title": "Document Processing"
}
],
"notice": false
},
{
"title": "Graph",
"height": "250px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels":
[
{
"error": false,
"span": 3,
"editable": true,
"group":
[
"default"
],
"type": "terms",
"queries":
{
"mode": "selected",
"ids":
[
3
]
},
"field": "consumer",
"exclude": [ ],
"missing": false,
"other": true,
"size": 100,
"order": "count",
"style":
{
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "pie",
"counter_pos": "none",
"title": "Documents by Provider",
"spyable": true,
"tmode": "terms",
"tstat": "total",
"valuefield": ""
},
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "consumer",
"exclude": [ ],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style":
{
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "pie",
"counter_pos": "none",
"spyable": true,
"queries":
{
"mode": "selected",
"ids":
[
2
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Failures by Consumer"
},
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "@tag",
"exclude": [ ],
"missing": true,
"other": true,
"size": 10,
"order": "count",
"style":
{
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "pie",
"counter_pos": "none",
"spyable": true,
"queries":
{
"mode": "selected",
"ids":
[
2
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Failures"
},
{
"error": false,
"span": 3,
"editable": true,
"group":
[
"default"
],
"type": "terms",
"queries":
{
"mode": "all",
"ids":
[
0,
1,
2,
3,
4,
5,
6,
7
]
},
"field": "status",
"exclude": [ ],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style":
{
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"title": "Document Types",
"tmode": "terms",
"tstat": "total",
"valuefield": ""
}
],
"notice": false
},
{
"title": "Events",
"height": "650px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels":
[
{
"error": false,
"span": 12,
"editable": true,
"group":
[
"default"
],
"type": "table",
"size": 100,
"pages": 5,
"offset": 0,
"sort":
[
"@timestamp",
"desc"
],
"style":
{
"font-size": "9pt"
},
"overflow": "min-height",
"fields":
[
"event",
"exception",
"@timestamp",
"@tag"
],
"highlight": [ ],
"sortable": true,
"header": true,
"paging": true,
"spyable": true,
"queries":
{
"mode": "selected",
"ids":
[
2
]
},
"field_list": true,
"status": "Stable",
"trimFactor": 300,
"normTimes": true,
"title": "Failures",
"all_fields": false,
"localTime": false,
"timeField": "@timestamp"
}
],
"notice": false
}
],
"editable": true,
"index":
{
"interval": "none",
"pattern": "[logstash-]YYYY.MM.DD",
"default": "_all",
"warm_fields": false
},
"style": "dark",
"failover": false,
"panel_hints": true,
"loader":
{
"save_gist": false,
"save_elasticsearch": true,
"save_local": true,
"save_default": true,
"save_temp": true,
"save_temp_ttl_enable": true,
"save_temp_ttl": "30d",
"load_gist": true,
"load_elasticsearch": true,
"load_elasticsearch_size": 20,
"load_local": true,
"hide": false
},
"pulldowns":
[
{
"type": "query",
"collapse": true,
"notice": false,
"query": "*",
"pinned": true,
"history":
[
"status:failed AND @tag:scrapi.processing*",
"status:created AND @tag:scrapi.processing*",
"status:completed AND @tag:scrapi.processing*",
"event:runConsumer AND status:started",
"status:completed",
"status:failed",
"status:created",
"status:started",
"status:failed AND @tag:scrapi.processing",
"status:created AND @tag:scrapi.processing"
],
"remember": 10,
"enable": true
},
{
"type": "filtering",
"collapse": true,
"notice": true,
"enable": true
}
],
"nav":
[
{
"type": "timepicker",
"collapse": false,
"notice": false,
"status": "Stable",
"time_options":
[
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"refresh_intervals":
[
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"timefield": "@timestamp",
"enable": true,
"now": true,
"filter_id": 0
}
],
"refresh": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment