Skip to content

Instantly share code, notes, and snippets.

@mepunit
Forked from GuillaumeDievart/elk-magento-kibana
Created March 20, 2018 09:57
Show Gist options
  • Save mepunit/3f99877bc7aaed8c1264efe7d941c700 to your computer and use it in GitHub Desktop.
Save mepunit/3f99877bc7aaed8c1264efe7d941c700 to your computer and use it in GitHub Desktop.
{
"title": "Magento performance",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
"pin": false,
"type": "lucene",
"enable": true
},
"1": {
"id": 1,
"color": "#BF1B00",
"alias": "backoffice",
"pin": false,
"type": "lucene",
"enable": true,
"query": "area: adminhtml"
},
"2": {
"id": 2,
"color": "#0A50A1",
"alias": "frontoffice",
"pin": false,
"type": "lucene",
"enable": true,
"query": "area: frontend"
}
},
"ids": [
0,
1,
2
]
},
"filter": {
"list": {
"0": {
"type": "querystring",
"query": "_type: magento-perf",
"mandate": "must",
"active": true,
"alias": "",
"id": 0
},
"1": {
"type": "time",
"field": "@timestamp",
"from": "now-6h",
"to": "now",
"mandate": "must",
"active": true,
"alias": "",
"id": 1
}
},
"ids": [
0,
1
]
}
},
"rows": [
{
"title": "action",
"height": "200px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"span": 6,
"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": 0
},
"queries": {
"mode": "selected",
"ids": [
1,
2
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": false,
"resolution": 100,
"interval": "10s",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 2,
"linewidth": 1,
"points": false,
"pointradius": 5,
"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": "cumulative",
"query_as_alias": true
},
"title": "requests"
},
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "action",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": false,
"arrangement": "horizontal",
"chart": "pie",
"counter_pos": "none",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "actions"
},
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "area",
"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": [
1,
2
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "area"
}
],
"notice": false
},
{
"title": "request_time",
"height": "150px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"span": 6,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "mean",
"time_field": "@timestamp",
"value_field": "request_time",
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "selected",
"ids": [
1,
2
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": false,
"resolution": 100,
"interval": "10s",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 3,
"linewidth": 2,
"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": "cumulative",
"query_as_alias": true
},
"title": "request_time",
"scaleSeconds": false
},
{
"error": false,
"span": 6,
"editable": true,
"type": "stats",
"loadingEditor": false,
"queries": {
"mode": "selected",
"ids": [
1,
2
]
},
"style": {
"font-size": "24pt"
},
"format": "float",
"mode": "mean",
"display_breakdown": "yes",
"sort_field": "",
"sort_reverse": false,
"label_name": "Query",
"value_name": "Value",
"spyable": true,
"show": {
"count": true,
"min": true,
"max": true,
"mean": true,
"std_deviation": false,
"sum_of_squares": false,
"total": true,
"variance": false
},
"field": "request_time",
"unit": "seconds"
}
],
"notice": false
},
{
"title": "memory",
"height": "150px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"span": 6,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "mean",
"time_field": "@timestamp",
"value_field": "memory",
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "selected",
"ids": [
1,
2
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": false,
"resolution": 100,
"interval": "10s",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 2,
"linewidth": 1,
"points": false,
"pointradius": 5,
"bars": false,
"stack": true,
"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": "cumulative",
"query_as_alias": true
},
"title": "memory"
},
{
"error": false,
"span": 6,
"editable": true,
"type": "stats",
"loadingEditor": false,
"queries": {
"mode": "selected",
"ids": [
1,
2
]
},
"style": {
"font-size": "24pt"
},
"format": "bytes",
"mode": "mean",
"display_breakdown": "yes",
"sort_field": "",
"sort_reverse": false,
"label_name": "Query",
"value_name": "Value",
"spyable": true,
"show": {
"count": true,
"min": true,
"max": true,
"mean": true,
"std_deviation": false,
"sum_of_squares": false,
"total": true,
"variance": false
},
"field": "memory",
"unit": "bytes"
}
],
"notice": false
},
{
"title": "logs",
"height": "300px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"error": false,
"span": 12,
"editable": true,
"type": "table",
"loadingEditor": false,
"size": 20,
"pages": 5,
"offset": 0,
"sort": [
"_score",
"desc"
],
"overflow": "min-height",
"fields": [
"date",
"action",
"memory",
"request_time"
],
"highlight": [],
"sortable": true,
"header": true,
"paging": true,
"field_list": true,
"all_fields": false,
"trimFactor": 300,
"localTime": false,
"timeField": "@timestamp",
"spyable": true,
"queries": {
"mode": "all",
"ids": [
0,
1,
2
]
},
"style": {
"font-size": "9pt"
},
"normTimes": true,
"title": "LOGS"
}
],
"notice": false
}
],
"editable": true,
"failover": false,
"index": {
"interval": "none",
"pattern": "[logstash-]YYYY.MM.DD",
"default": "_all",
"warm_fields": true
},
"style": "dark",
"panel_hints": true,
"pulldowns": [
{
"type": "query",
"collapse": true,
"notice": false,
"enable": true,
"query": "*",
"pinned": true,
"history": [
"area: frontend",
"area: adminhtml",
"*",
"area: backend"
],
"remember": 10
},
{
"type": "filtering",
"collapse": true,
"notice": true,
"enable": true
}
],
"nav": [
{
"type": "timepicker",
"collapse": false,
"notice": false,
"enable": true,
"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",
"now": true,
"filter_id": 1
}
],
"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": false,
"load_elasticsearch": true,
"load_elasticsearch_size": 20,
"load_local": false,
"hide": false
},
"refresh": "30s"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment