Skip to content

Commit

Permalink
Merge pull request influxdata#190 from michaelbaisch/update-performan…
Browse files Browse the repository at this point in the history
…ce-requests-panel

Update 'Requests per...' panel in Performance Dashboard
  • Loading branch information
ChrisBr authored Dec 3, 2021
2 parents 764cf3c + a46109c commit 0d7aee2
Showing 1 changed file with 68 additions and 13 deletions.
81 changes: 68 additions & 13 deletions sample-dashboard/Ruby On Rails Performance.json
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@
{
"aliasColors": {
"Error": "dark-red",
"Success": "semi-dark-green"
"Success": "semi-dark-green",
"No Status": "#bebebe"
},
"bars": true,
"dashLength": 10,
Expand Down Expand Up @@ -677,7 +678,7 @@
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"stack": true,
"steppedLine": false,
"targets": [
{
Expand All @@ -688,12 +689,6 @@
"$per"
],
"type": "time"
},
{
"params": [
"previous"
],
"type": "fill"
}
],
"measurement": "rails",
Expand Down Expand Up @@ -726,6 +721,12 @@
"key": "status",
"operator": "=",
"value": "200"
},
{
"condition": "OR",
"key": "status",
"operator": "=",
"value": "302"
}
]
},
Expand All @@ -737,18 +738,72 @@
"$per"
],
"type": "time"
}
],
"measurement": "rails",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"controller\") FROM \"rails\" WHERE (\"hook\" = 'process_action' AND \"status\" != '200' AND \"status\" != '302' AND \"status\" != '') AND $timeFilter GROUP BY time($per)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"controller"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "hook",
"operator": "=",
"value": "process_action"
},
{
"condition": "AND",
"key": "status",
"operator": "!=",
"value": "200"
},
{
"condition": "AND",
"key": "status",
"operator": "!=",
"value": "302"
},
{
"condition": "AND",
"key": "status",
"operator": "!=",
"value": ""
}
]
},
{
"alias": "No Status",
"groupBy": [
{
"params": [
"previous"
"$per"
],
"type": "fill"
"type": "time"
}
],
"hide": false,
"measurement": "rails",
"orderByTime": "ASC",
"policy": "default",
"refId": "B",
"query": "SELECT count(\"controller\") FROM \"rails\" WHERE (\"hook\" = 'process_action' AND \"status\" = '') AND $timeFilter GROUP BY time($per)",
"rawQuery": true,
"refId": "C",
"resultFormat": "time_series",
"select": [
[
Expand All @@ -773,8 +828,8 @@
{
"condition": "AND",
"key": "status",
"operator": "!=",
"value": "200"
"operator": "=",
"value": ""
}
]
}
Expand Down

0 comments on commit 0d7aee2

Please sign in to comment.