Skip to content

Commit 0d7aee2

Browse files
authored
Merge pull request #190 from michaelbaisch/update-performance-requests-panel
Update 'Requests per...' panel in Performance Dashboard
2 parents 764cf3c + a46109c commit 0d7aee2

File tree

1 file changed

+68
-13
lines changed

1 file changed

+68
-13
lines changed

sample-dashboard/Ruby On Rails Performance.json

Lines changed: 68 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@
634634
{
635635
"aliasColors": {
636636
"Error": "dark-red",
637-
"Success": "semi-dark-green"
637+
"Success": "semi-dark-green",
638+
"No Status": "#bebebe"
638639
},
639640
"bars": true,
640641
"dashLength": 10,
@@ -677,7 +678,7 @@
677678
"renderer": "flot",
678679
"seriesOverrides": [],
679680
"spaceLength": 10,
680-
"stack": false,
681+
"stack": true,
681682
"steppedLine": false,
682683
"targets": [
683684
{
@@ -688,12 +689,6 @@
688689
"$per"
689690
],
690691
"type": "time"
691-
},
692-
{
693-
"params": [
694-
"previous"
695-
],
696-
"type": "fill"
697692
}
698693
],
699694
"measurement": "rails",
@@ -726,6 +721,12 @@
726721
"key": "status",
727722
"operator": "=",
728723
"value": "200"
724+
},
725+
{
726+
"condition": "OR",
727+
"key": "status",
728+
"operator": "=",
729+
"value": "302"
729730
}
730731
]
731732
},
@@ -737,18 +738,72 @@
737738
"$per"
738739
],
739740
"type": "time"
741+
}
742+
],
743+
"measurement": "rails",
744+
"orderByTime": "ASC",
745+
"policy": "default",
746+
"query": "SELECT count(\"controller\") FROM \"rails\" WHERE (\"hook\" = 'process_action' AND \"status\" != '200' AND \"status\" != '302' AND \"status\" != '') AND $timeFilter GROUP BY time($per)",
747+
"rawQuery": true,
748+
"refId": "B",
749+
"resultFormat": "time_series",
750+
"select": [
751+
[
752+
{
753+
"params": [
754+
"controller"
755+
],
756+
"type": "field"
757+
},
758+
{
759+
"params": [],
760+
"type": "count"
761+
}
762+
]
763+
],
764+
"tags": [
765+
{
766+
"key": "hook",
767+
"operator": "=",
768+
"value": "process_action"
740769
},
770+
{
771+
"condition": "AND",
772+
"key": "status",
773+
"operator": "!=",
774+
"value": "200"
775+
},
776+
{
777+
"condition": "AND",
778+
"key": "status",
779+
"operator": "!=",
780+
"value": "302"
781+
},
782+
{
783+
"condition": "AND",
784+
"key": "status",
785+
"operator": "!=",
786+
"value": ""
787+
}
788+
]
789+
},
790+
{
791+
"alias": "No Status",
792+
"groupBy": [
741793
{
742794
"params": [
743-
"previous"
795+
"$per"
744796
],
745-
"type": "fill"
797+
"type": "time"
746798
}
747799
],
800+
"hide": false,
748801
"measurement": "rails",
749802
"orderByTime": "ASC",
750803
"policy": "default",
751-
"refId": "B",
804+
"query": "SELECT count(\"controller\") FROM \"rails\" WHERE (\"hook\" = 'process_action' AND \"status\" = '') AND $timeFilter GROUP BY time($per)",
805+
"rawQuery": true,
806+
"refId": "C",
752807
"resultFormat": "time_series",
753808
"select": [
754809
[
@@ -773,8 +828,8 @@
773828
{
774829
"condition": "AND",
775830
"key": "status",
776-
"operator": "!=",
777-
"value": "200"
831+
"operator": "=",
832+
"value": ""
778833
}
779834
]
780835
}

0 commit comments

Comments
 (0)