{ "__inputs": [ { "name": "DS_INFLUXDB-RAILS", "label": "InfluxDB-Rails", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "7.1.1" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" }, { "type": "panel", "id": "table-old", "name": "Table (old)", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "A list of the slowest controller actions", "editable": true, "gnetId": null, "graphTooltip": 0, "id": null, "links": [ { "$$hashKey": "object:349", "icon": "external link", "keepTime": true, "tags": [ "influxdb-rails" ], "type": "dashboards" } ], "panels": [ { "columns": [], "datasource": "InfluxDB", "description": "The list of slowest controller actions", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fontSize": "100%", "gridPos": { "h": 23, "w": 24, "x": 0, "y": 0 }, "id": 2, "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": 3, "desc": true }, "styles": [ { "$$hashKey": "object:5125", "alias": "Finished", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "$$hashKey": "object:5127", "alias": "Execution Time", "align": "auto", "colorMode": "value", "colors": [ "rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", "rgba(245, 54, 54, 0.9)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "max", "thresholds": [ "3000", "50000" ], "type": "number", "unit": "ms" }, { "$$hashKey": "object:5129", "alias": "Controller Action", "align": "auto", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": true, "linkTargetBlank": true, "linkTooltip": "View data per this Controller Action", "linkUrl": "/d/influxdb-rails-action/ruby-on-rails-performance-per-action?var-Action=${__cell_1}&from=${__cell_2}&to=${__cell_0}", "mappingType": 1, "pattern": "method", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:505", "alias": "Started", "align": "", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "started", "thresholds": [], "type": "hidden", "unit": "short" }, { "$$hashKey": "object:826", "alias": "Ended", "align": "auto", "colorMode": null, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "ended", "thresholds": [], "type": "hidden", "unit": "short" } ], "targets": [ { "groupBy": [ { "params": [ "method" ], "type": "tag" } ], "limit": "", "measurement": "rails", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "table", "select": [ [ { "params": [ "started" ], "type": "field" } ], [ { "params": [ "controller" ], "type": "field" }, { "params": [], "type": "max" } ] ], "tags": [ { "key": "hook", "operator": "=", "value": "process_action" } ] } ], "title": "Slowest Actions", "transform": "table", "transformations": [ { "id": "calculateField", "options": { "alias": "ended", "binary": { "left": "started", "operator": "+", "reducer": "sum", "right": "max" }, "mode": "binary", "reduce": { "reducer": "sum" } } } ], "type": "table-old" } ], "schemaVersion": 26, "style": "dark", "tags": [ "Performance", "Ruby on Rails", "influxdb-rails" ], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Slowlog by Controller Action", "uid": "influxdb-rails-slowlog-action", "version": 12 }