blob: 6d806606bf9c5bf67017a1f55f2d148329ede265 [file] [log] [blame]
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001{
2 "annotations": {
3 "enable": false,
4 "list": [
5 {
6 "datasource": "lma",
7 "enable": true,
8 "iconColor": "#C0C6BE",
9 "iconSize": 13,
10 "lineColor": "rgba(255, 96, 96, 0.592157)",
11 "name": "Status",
12 "query": "select title,tags,text from annotations where $timeFilter and cluster = 'haproxy'",
13 "showLine": true,
14 "tagsColumn": "tags",
15 "textColumn": "text",
16 "titleColumn": "title"
17 }
18 ]
19 },
20 "editable": true,
21 "hideControls": false,
22 "id": null,
23 "links": [],
24 "originalTitle": "HAProxy",
25 "refresh": "1m",
26 "rows": [
27 {
28 "collapse": false,
29 "editable": true,
30 "height": "250px",
31 "panels": [
32 {
33 "cacheTimeout": null,
34 "colorBackground": true,
35 "colorValue": false,
36 "colors": [
37 "rgba(71, 212, 59, 0.4)",
38 "rgba(241, 181, 37, 0.73)",
39 "rgba(225, 40, 40, 0.59)"
40 ],
41 "datasource": null,
42 "editable": true,
43 "error": false,
44 "format": "none",
45 "gauge": {
46 "maxValue": 100,
47 "minValue": 0,
48 "show": false,
49 "thresholdLabels": false,
50 "thresholdMarkers": true
51 },
52 "id": 23,
53 "interval": "> 60s",
54 "links": [],
55 "maxDataPoints": 100,
56 "nullPointMode": "connected",
57 "nullText": null,
58 "postfix": "",
59 "postfixFontSize": "50%",
60 "prefix": "",
61 "prefixFontSize": "50%",
62 "span": 2,
63 "sparkline": {
64 "fillColor": "rgba(31, 118, 189, 0.18)",
65 "full": false,
66 "lineColor": "rgb(31, 120, 193)",
67 "show": false
68 },
69 "targets": [
70 {
71 "column": "value",
72 "condition": "",
73 "dsType": "influxdb",
74 "fill": "",
75 "function": "last",
76 "groupBy": [
77 {
78 "params": [
79 "auto"
80 ],
81 "type": "time"
82 }
83 ],
84 "groupby_field": "",
85 "interval": "",
86 "measurement": "cluster_status",
87 "policy": "default",
88 "query": "SELECT last(\"value\") FROM \"cluster_status\" WHERE \"cluster_name\" = 'haproxy-openstack' AND $timeFilter GROUP BY time($interval)",
89 "rawQuery": false,
90 "refId": "A",
91 "resultFormat": "time_series",
92 "select": [
93 [
94 {
95 "params": [
96 "value"
97 ],
98 "type": "field"
99 },
100 {
101 "params": [],
102 "type": "last"
103 }
104 ]
105 ],
106 "tags": [
107 {
108 "key": "environment_label",
109 "operator": "=",
110 "value": "$environment"
111 },
112 {
113 "condition": "AND",
114 "key": "cluster_name",
115 "operator": "=",
116 "value": "haproxy-openstack"
117 }
118 ]
119 }
120 ],
121 "thresholds": "1,3",
122 "title": "",
123 "type": "singlestat",
124 "valueFontSize": "80%",
125 "valueMaps": [
126 {
127 "op": "=",
128 "text": "no data",
129 "value": "null"
130 },
131 {
132 "op": "=",
133 "text": "OKAY",
134 "value": "0"
135 },
136 {
137 "op": "=",
138 "text": "WARN",
139 "value": "1"
140 },
141 {
142 "op": "=",
143 "text": "UNKN",
144 "value": "2"
145 },
146 {
147 "op": "=",
148 "text": "CRIT",
149 "value": "3"
150 },
151 {
152 "op": "=",
153 "text": "DOWN",
154 "value": "4"
155 }
156 ],
157 "valueName": "current"
158 },
159 {
160 "cacheTimeout": null,
161 "colorBackground": true,
162 "colorValue": false,
163 "colors": [
164 "rgba(211, 12, 12, 0.75)",
165 "rgba(9, 40, 239, 0.73)",
166 "rgba(71, 212, 59, 0.44)"
167 ],
168 "datasource": null,
169 "editable": true,
170 "error": false,
171 "format": "none",
172 "gauge": {
173 "maxValue": 100,
174 "minValue": 0,
175 "show": false,
176 "thresholdLabels": false,
177 "thresholdMarkers": true
178 },
179 "id": 1,
180 "interval": ">60s",
181 "links": [],
182 "maxDataPoints": 100,
183 "nullPointMode": "null as zero",
184 "nullText": null,
185 "postfix": "",
186 "postfixFontSize": "50%",
187 "prefix": "",
188 "prefixFontSize": "50%",
189 "span": 2,
190 "sparkline": {
191 "fillColor": "rgba(31, 118, 189, 0.18)",
192 "full": false,
193 "lineColor": "rgb(31, 120, 193)",
194 "show": false
195 },
196 "targets": [
197 {
198 "column": "value",
199 "dsType": "influxdb",
200 "fill": "",
201 "function": "last",
202 "groupBy": [
203 {
204 "params": [
205 "auto"
206 ],
207 "type": "time"
208 }
209 ],
210 "measurement": "pacemaker_local_resource_active",
211 "policy": "default",
212 "query": "SELECT last(\"value\") FROM \"pacemaker_local_resource_active\" WHERE \"hostname\" =~ /$server/ AND \"resource\" = 'vip__public' AND $timeFilter GROUP BY time($interval)",
213 "rawQuery": false,
214 "refId": "A",
215 "resultFormat": "time_series",
216 "select": [
217 [
218 {
219 "params": [
220 "value"
221 ],
222 "type": "field"
223 },
224 {
225 "params": [],
226 "type": "last"
227 }
228 ]
229 ],
230 "tags": [
231 {
232 "key": "hostname",
233 "value": "/$server/"
234 },
235 {
236 "condition": "AND",
237 "key": "resource",
238 "value": "vip__public"
239 }
240 ]
241 }
242 ],
243 "thresholds": "0,1",
244 "title": "Public VIP",
245 "type": "singlestat",
246 "valueFontSize": "50%",
247 "valueMaps": [
248 {
249 "op": "=",
250 "text": "N/A",
251 "value": "null"
252 },
253 {
254 "op": "=",
255 "text": "ACTIVE",
256 "value": "1"
257 },
258 {
259 "op": "=",
260 "text": "INACTIVE",
261 "value": "0"
262 }
263 ],
264 "valueName": "current"
265 },
266 {
267 "cacheTimeout": null,
268 "colorBackground": true,
269 "colorValue": false,
270 "colors": [
271 "rgba(211, 12, 12, 0.75)",
272 "rgba(9, 40, 239, 0.73)",
273 "rgba(71, 212, 59, 0.44)"
274 ],
275 "datasource": null,
276 "editable": true,
277 "error": false,
278 "format": "none",
279 "gauge": {
280 "maxValue": 100,
281 "minValue": 0,
282 "show": false,
283 "thresholdLabels": false,
284 "thresholdMarkers": true
285 },
286 "id": 19,
287 "interval": ">60s",
288 "links": [],
289 "maxDataPoints": 100,
290 "nullPointMode": "null as zero",
291 "nullText": null,
292 "postfix": "",
293 "postfixFontSize": "50%",
294 "prefix": "",
295 "prefixFontSize": "50%",
296 "span": 2,
297 "sparkline": {
298 "fillColor": "rgba(31, 118, 189, 0.18)",
299 "full": false,
300 "lineColor": "rgb(31, 120, 193)",
301 "show": false
302 },
303 "targets": [
304 {
305 "column": "value",
306 "dsType": "influxdb",
307 "fill": "",
308 "function": "last",
309 "groupBy": [
310 {
311 "params": [
312 "auto"
313 ],
314 "type": "time"
315 }
316 ],
317 "measurement": "pacemaker_local_resource_active",
318 "policy": "default",
319 "query": "SELECT last(\"value\") FROM \"pacemaker_local_resource_active\" WHERE \"hostname\" =~ /$server/ AND \"resource\" = 'vip__management' AND $timeFilter GROUP BY time($interval)",
320 "rawQuery": false,
321 "refId": "A",
322 "resultFormat": "time_series",
323 "select": [
324 [
325 {
326 "params": [
327 "value"
328 ],
329 "type": "field"
330 },
331 {
332 "params": [],
333 "type": "last"
334 }
335 ]
336 ],
337 "tags": [
338 {
339 "key": "hostname",
340 "value": "/$server/"
341 },
342 {
343 "condition": "AND",
344 "key": "resource",
345 "value": "vip__management"
346 }
347 ]
348 }
349 ],
350 "thresholds": "0,1",
351 "title": "Management VIP",
352 "type": "singlestat",
353 "valueFontSize": "50%",
354 "valueMaps": [
355 {
356 "op": "=",
357 "text": "N/A",
358 "value": "null"
359 },
360 {
361 "op": "=",
362 "text": "ACTIVE",
363 "value": "1"
364 },
365 {
366 "op": "=",
367 "text": "INACTIVE",
368 "value": "0"
369 }
370 ],
371 "valueName": "current"
372 },
373 {
374 "cacheTimeout": null,
375 "colorBackground": true,
376 "colorValue": false,
377 "colors": [
378 "rgba(211, 12, 12, 0.75)",
379 "rgba(246, 23, 23, 0.73)",
380 "rgba(71, 212, 59, 0.44)"
381 ],
382 "datasource": null,
383 "editable": true,
384 "error": false,
385 "format": "none",
386 "gauge": {
387 "maxValue": 100,
388 "minValue": 0,
389 "show": false,
390 "thresholdLabels": false,
391 "thresholdMarkers": true
392 },
393 "id": 16,
394 "interval": ">60s",
395 "links": [],
396 "maxDataPoints": 100,
397 "nullPointMode": "null as zero",
398 "nullText": null,
399 "postfix": "",
400 "postfixFontSize": "50%",
401 "prefix": "",
402 "prefixFontSize": "50%",
403 "span": 2,
404 "sparkline": {
405 "fillColor": "rgba(31, 118, 189, 0.18)",
406 "full": false,
407 "lineColor": "rgb(31, 120, 193)",
408 "show": false
409 },
410 "targets": [
411 {
412 "column": "value",
413 "dsType": "influxdb",
414 "fill": "",
415 "function": "last",
416 "groupBy": [
417 {
418 "params": [
419 "auto"
420 ],
421 "type": "time"
422 }
423 ],
424 "measurement": "haproxy_backend_status",
425 "policy": "default",
426 "query": "SELECT last(\"value\") FROM \"haproxy_backend_status\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval)",
427 "rawQuery": false,
428 "refId": "A",
429 "resultFormat": "time_series",
430 "select": [
431 [
432 {
433 "params": [
434 "value"
435 ],
436 "type": "field"
437 },
438 {
439 "params": [],
440 "type": "last"
441 }
442 ]
443 ],
444 "tags": [
445 {
446 "key": "hostname",
447 "value": "/$server/"
448 }
449 ]
450 }
451 ],
452 "thresholds": "0,1",
453 "title": "Backend status ($service)",
454 "type": "singlestat",
455 "valueFontSize": "50%",
456 "valueMaps": [
457 {
458 "op": "=",
459 "text": "N/A",
460 "value": "null"
461 },
462 {
463 "op": "=",
464 "text": "OKAY",
465 "value": "1"
466 },
467 {
468 "op": "=",
469 "text": "FAIL",
470 "value": "0"
471 }
472 ],
473 "valueName": "current"
474 },
475 {
476 "columns": [],
477 "editable": true,
478 "error": false,
479 "fontSize": "100%",
480 "id": 25,
481 "interval": ">60s",
482 "isNew": true,
483 "links": [],
484 "pageSize": null,
485 "scroll": true,
486 "showHeader": true,
487 "sort": {
488 "col": 0,
489 "desc": true
490 },
491 "span": 4,
492 "styles": [
493 {
494 "dateFormat": "YYYY-MM-DD HH:mm:ss",
495 "pattern": "Time",
496 "type": "date"
497 },
498 {
499 "colorMode": "value",
500 "colors": [
501 "rgba(245, 54, 54, 0.9)",
502 "rgb(227, 3, 3)",
503 "rgba(50, 172, 45, 0.97)"
504 ],
505 "decimals": 1,
506 "pattern": "last",
507 "thresholds": [
508 "0",
509 "1"
510 ],
511 "type": "number",
512 "unit": "short"
513 }
514 ],
515 "targets": [
516 {
517 "dsType": "influxdb",
518 "groupBy": [
519 {
520 "params": [
521 "$interval"
522 ],
523 "type": "time"
524 },
525 {
526 "params": [
527 "null"
528 ],
529 "type": "fill"
530 }
531 ],
532 "policy": "default",
533 "query": "SELECT state, last(\"value\") FROM \"haproxy_backend_server\" WHERE \"backend\" =~ /^$service$/ AND $timeFilter GROUP BY time($interval),hostname fill(none)",
534 "rawQuery": true,
535 "refId": "A",
536 "resultFormat": "table",
537 "select": [
538 [
539 {
540 "params": [
541 "value"
542 ],
543 "type": "field"
544 },
545 {
546 "params": [],
547 "type": "mean"
548 }
549 ]
550 ],
551 "tags": []
552 }
553 ],
554 "title": "History for $service servers",
555 "transform": "table",
556 "type": "table"
557 },
558 {
559 "cacheTimeout": null,
560 "colorBackground": false,
561 "colorValue": false,
562 "colors": [
563 "rgba(50, 172, 45, 0.97)",
564 "rgba(237, 129, 40, 0.89)",
565 "rgba(245, 54, 54, 0.9)"
566 ],
567 "datasource": null,
568 "editable": true,
569 "error": false,
570 "format": "s",
571 "gauge": {
572 "maxValue": 100,
573 "minValue": 0,
574 "show": false,
575 "thresholdLabels": false,
576 "thresholdMarkers": true
577 },
578 "id": 11,
579 "interval": ">60s",
580 "links": [],
581 "maxDataPoints": 100,
582 "nullPointMode": "connected",
583 "nullText": null,
584 "postfix": "",
585 "postfixFontSize": "50%",
586 "prefix": "",
587 "prefixFontSize": "50%",
588 "span": 2,
589 "sparkline": {
590 "fillColor": "rgba(31, 118, 189, 0.18)",
591 "full": false,
592 "lineColor": "rgb(31, 120, 193)",
593 "show": false
594 },
595 "targets": [
596 {
597 "column": "value",
598 "dsType": "influxdb",
599 "function": "mean",
600 "groupBy": [
601 {
602 "params": [
603 "auto"
604 ],
605 "type": "time"
606 }
607 ],
608 "interval": "",
609 "measurement": "haproxy_uptime",
610 "policy": "default",
611 "query": "SELECT mean(\"value\") FROM \"haproxy_uptime\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval)",
612 "rawQuery": false,
613 "refId": "A",
614 "resultFormat": "time_series",
615 "select": [
616 [
617 {
618 "params": [
619 "value"
620 ],
621 "type": "field"
622 },
623 {
624 "params": [],
625 "type": "mean"
626 }
627 ]
628 ],
629 "tags": [
630 {
631 "key": "hostname",
632 "value": "/$server/"
633 }
634 ]
635 }
636 ],
637 "thresholds": "",
638 "title": "Uptime",
639 "type": "singlestat",
640 "valueFontSize": "50%",
641 "valueMaps": [
642 {
643 "op": "=",
644 "text": "N/A",
645 "value": "null"
646 }
647 ],
648 "valueName": "current"
649 },
650 {
651 "aliasColors": {},
652 "bars": false,
653 "datasource": null,
654 "editable": true,
655 "error": false,
656 "fill": 0,
657 "grid": {
658 "threshold1": null,
659 "threshold1Color": "rgba(216, 200, 27, 0.27)",
660 "threshold2": null,
661 "threshold2Color": "rgba(234, 112, 112, 0.22)"
662 },
663 "id": 5,
664 "interval": ">60s",
665 "legend": {
666 "avg": false,
667 "current": false,
668 "max": false,
669 "min": false,
670 "show": true,
671 "total": false,
672 "values": false
673 },
674 "lines": true,
675 "linewidth": 1,
676 "links": [],
677 "nullPointMode": "connected",
678 "percentage": false,
679 "pointradius": 5,
680 "points": false,
681 "renderer": "flot",
682 "seriesOverrides": [],
683 "span": 6,
684 "stack": false,
685 "steppedLine": false,
686 "targets": [
687 {
688 "alias": "connections",
689 "column": "value",
690 "dsType": "influxdb",
691 "function": "mean",
692 "groupBy": [
693 {
694 "params": [
695 "auto"
696 ],
697 "type": "time"
698 },
699 {
700 "params": [
701 "null"
702 ],
703 "type": "fill"
704 }
705 ],
706 "measurement": "haproxy_connections",
707 "policy": "default",
708 "query": "SELECT mean(\"value\") FROM \"haproxy_connections\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(null)",
709 "rawQuery": false,
710 "refId": "A",
711 "resultFormat": "time_series",
712 "select": [
713 [
714 {
715 "params": [
716 "value"
717 ],
718 "type": "field"
719 },
720 {
721 "params": [],
722 "type": "mean"
723 }
724 ]
725 ],
726 "tags": [
727 {
728 "key": "hostname",
729 "value": "/$server/"
730 }
731 ]
732 },
733 {
734 "alias": "pipes free",
735 "column": "value",
736 "dsType": "influxdb",
737 "function": "mean",
738 "groupBy": [
739 {
740 "params": [
741 "auto"
742 ],
743 "type": "time"
744 },
745 {
746 "params": [
747 "null"
748 ],
749 "type": "fill"
750 }
751 ],
752 "hide": false,
753 "measurement": "haproxy_pipes_free",
754 "policy": "default",
755 "query": "SELECT mean(\"value\") FROM \"haproxy_pipes_free\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(null)",
756 "rawQuery": false,
757 "refId": "B",
758 "resultFormat": "time_series",
759 "select": [
760 [
761 {
762 "params": [
763 "value"
764 ],
765 "type": "field"
766 },
767 {
768 "params": [],
769 "type": "mean"
770 }
771 ]
772 ],
773 "tags": [
774 {
775 "key": "hostname",
776 "value": "/$server/"
777 }
778 ],
779 "target": ""
780 },
781 {
782 "alias": "pipes used",
783 "column": "value",
784 "dsType": "influxdb",
785 "function": "mean",
786 "groupBy": [
787 {
788 "params": [
789 "auto"
790 ],
791 "type": "time"
792 },
793 {
794 "params": [
795 "null"
796 ],
797 "type": "fill"
798 }
799 ],
800 "hide": false,
801 "interval": "",
802 "measurement": "haproxy_pipes_used",
803 "policy": "default",
804 "query": "SELECT mean(\"value\") FROM \"haproxy_pipes_used\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(null)",
805 "rawQuery": false,
806 "refId": "C",
807 "resultFormat": "time_series",
808 "select": [
809 [
810 {
811 "params": [
812 "value"
813 ],
814 "type": "field"
815 },
816 {
817 "params": [],
818 "type": "mean"
819 }
820 ]
821 ],
822 "tags": [
823 {
824 "key": "hostname",
825 "value": "/$server/"
826 }
827 ],
828 "target": ""
829 },
830 {
831 "alias": "tasks",
832 "column": "value",
833 "dsType": "influxdb",
834 "function": "mean",
835 "groupBy": [
836 {
837 "params": [
838 "auto"
839 ],
840 "type": "time"
841 },
842 {
843 "params": [
844 "null"
845 ],
846 "type": "fill"
847 }
848 ],
849 "interval": "",
850 "measurement": "haproxy_tasks",
851 "policy": "default",
852 "query": "SELECT mean(\"value\") FROM \"haproxy_tasks\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(null)",
853 "rawQuery": false,
854 "refId": "D",
855 "resultFormat": "time_series",
856 "select": [
857 [
858 {
859 "params": [
860 "value"
861 ],
862 "type": "field"
863 },
864 {
865 "params": [],
866 "type": "mean"
867 }
868 ]
869 ],
870 "tags": [
871 {
872 "key": "hostname",
873 "value": "/$server/"
874 }
875 ],
876 "target": ""
877 }
878 ],
879 "timeFrom": null,
880 "timeShift": null,
881 "title": "Server statistics",
882 "tooltip": {
883 "msResolution": false,
884 "shared": true,
885 "value_type": "cumulative"
886 },
887 "type": "graph",
888 "xaxis": {
889 "show": true
890 },
891 "yaxes": [
892 {
893 "format": "short",
894 "logBase": 1,
895 "max": null,
896 "min": null,
897 "show": true
898 },
899 {
900 "format": "short",
901 "logBase": 1,
902 "max": null,
903 "min": null,
904 "show": true
905 }
906 ]
907 },
908 {
909 "content": "",
910 "editable": true,
911 "error": false,
912 "id": 24,
913 "links": [],
914 "mode": "markdown",
915 "span": 4,
916 "style": {},
917 "title": "",
918 "type": "text"
919 }
920 ],
921 "showTitle": true,
922 "title": "Service"
923 },
924 {
925 "collapse": false,
926 "editable": true,
927 "height": "250px",
928 "panels": [
929 {
930 "aliasColors": {
931 "bytes_out.max": "#6ED0E0"
932 },
933 "bars": false,
934 "datasource": null,
935 "editable": true,
936 "error": false,
937 "fill": 0,
938 "grid": {
939 "threshold1": null,
940 "threshold1Color": "rgba(216, 200, 27, 0.27)",
941 "threshold2": null,
942 "threshold2Color": "rgba(234, 112, 112, 0.22)"
943 },
944 "id": 22,
945 "interval": ">60s",
946 "legend": {
947 "avg": false,
948 "current": false,
949 "max": false,
950 "min": false,
951 "show": true,
952 "total": false,
953 "values": false
954 },
955 "lines": true,
956 "linewidth": 1,
957 "links": [],
958 "nullPointMode": "connected",
959 "percentage": false,
960 "pointradius": 5,
961 "points": false,
962 "renderer": "flot",
963 "seriesOverrides": [],
964 "span": 3,
965 "stack": false,
966 "steppedLine": false,
967 "targets": [
968 {
969 "alias": "in",
970 "column": "value",
971 "dsType": "influxdb",
972 "function": "derivative",
973 "groupBy": [
974 {
975 "interval": "auto",
976 "params": [
977 "auto"
978 ],
979 "type": "time"
980 }
981 ],
982 "interval": "",
983 "measurement": "haproxy_frontend_bytes_in",
984 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +0100985 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_bytes_in\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +0200986 "rawQuery": true,
987 "refId": "A",
988 "resultFormat": "time_series",
989 "select": [
990 [
991 {
992 "params": [
993 "value"
994 ],
995 "type": "field"
996 },
997 {
998 "params": [],
999 "type": "mean"
1000 }
1001 ]
1002 ],
1003 "tags": [
1004 {
1005 "key": "hostname",
1006 "operator": "=~",
1007 "value": "/$server/"
1008 },
1009 {
1010 "condition": "AND",
1011 "key": "frontend",
1012 "operator": "=~",
1013 "value": "/$service/"
1014 }
1015 ]
1016 },
1017 {
1018 "alias": "out",
1019 "column": "value",
1020 "dsType": "influxdb",
1021 "function": "derivative",
1022 "groupBy": [
1023 {
1024 "interval": "auto",
1025 "params": [
1026 "auto"
1027 ],
1028 "type": "time"
1029 }
1030 ],
1031 "hide": false,
1032 "interval": "",
1033 "measurement": "haproxy_frontend_bytes_out",
1034 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001035 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_bytes_out\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001036 "rawQuery": true,
1037 "refId": "B",
1038 "resultFormat": "time_series",
1039 "select": [
1040 [
1041 {
1042 "params": [
1043 "value"
1044 ],
1045 "type": "field"
1046 },
1047 {
1048 "params": [],
1049 "type": "mean"
1050 }
1051 ]
1052 ],
1053 "tags": [
1054 {
1055 "key": "hostname",
1056 "operator": "=~",
1057 "value": "/$server/"
1058 },
1059 {
1060 "condition": "AND",
1061 "key": "frontend",
1062 "operator": "=~",
1063 "value": "/$service/"
1064 }
1065 ]
1066 }
1067 ],
1068 "timeFrom": null,
1069 "timeShift": null,
1070 "title": "Network I/O",
1071 "tooltip": {
1072 "msResolution": false,
1073 "shared": true,
1074 "value_type": "cumulative"
1075 },
1076 "type": "graph",
1077 "xaxis": {
1078 "show": true
1079 },
1080 "yaxes": [
1081 {
1082 "format": "Bps",
1083 "logBase": 1,
1084 "max": null,
1085 "min": 0,
1086 "show": true
1087 },
1088 {
1089 "format": "bytes",
1090 "logBase": 1,
1091 "max": null,
1092 "min": null,
1093 "show": true
1094 }
1095 ]
1096 },
1097 {
1098 "aliasColors": {},
1099 "bars": false,
1100 "datasource": null,
1101 "editable": true,
1102 "error": false,
1103 "fill": 0,
1104 "grid": {
1105 "threshold1": null,
1106 "threshold1Color": "rgba(216, 200, 27, 0.27)",
1107 "threshold2": null,
1108 "threshold2Color": "rgba(234, 112, 112, 0.22)"
1109 },
1110 "id": 17,
1111 "interval": ">60s",
1112 "legend": {
1113 "alignAsTable": false,
1114 "avg": false,
1115 "current": false,
1116 "max": false,
1117 "min": false,
1118 "show": true,
1119 "total": false,
1120 "values": false
1121 },
1122 "lines": true,
1123 "linewidth": 1,
1124 "links": [],
1125 "nullPointMode": "connected",
1126 "percentage": false,
1127 "pointradius": 5,
1128 "points": false,
1129 "renderer": "flot",
1130 "seriesOverrides": [],
1131 "span": 3,
1132 "stack": false,
1133 "steppedLine": false,
1134 "targets": [
1135 {
1136 "alias": "1xx",
1137 "column": "value",
1138 "dsType": "influxdb",
1139 "function": "derivative",
1140 "groupBy": [
1141 {
1142 "interval": "auto",
1143 "params": [
1144 "auto"
1145 ],
1146 "type": "time"
1147 }
1148 ],
1149 "interval": "",
1150 "measurement": "haproxy_frontend_response_1xx",
1151 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001152 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_1xx\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001153 "rawQuery": true,
1154 "refId": "A",
1155 "resultFormat": "time_series",
1156 "select": [
1157 [
1158 {
1159 "params": [
1160 "value"
1161 ],
1162 "type": "field"
1163 },
1164 {
1165 "params": [],
1166 "type": "mean"
1167 }
1168 ]
1169 ],
1170 "tags": [
1171 {
1172 "key": "hostname",
1173 "operator": "=~",
1174 "value": "/$server/"
1175 },
1176 {
1177 "condition": "AND",
1178 "key": "frontend",
1179 "operator": "=~",
1180 "value": "/$service/"
1181 }
1182 ]
1183 },
1184 {
1185 "alias": "2xx",
1186 "column": "value",
1187 "dsType": "influxdb",
1188 "function": "derivative",
1189 "groupBy": [
1190 {
1191 "interval": "auto",
1192 "params": [
1193 "auto"
1194 ],
1195 "type": "time"
1196 }
1197 ],
1198 "measurement": "haproxy_frontend_response_2xx",
1199 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001200 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_2xx\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001201 "rawQuery": true,
1202 "refId": "B",
1203 "resultFormat": "time_series",
1204 "select": [
1205 [
1206 {
1207 "params": [
1208 "value"
1209 ],
1210 "type": "field"
1211 },
1212 {
1213 "params": [],
1214 "type": "mean"
1215 }
1216 ]
1217 ],
1218 "tags": [
1219 {
1220 "key": "hostname",
1221 "operator": "=~",
1222 "value": "/$server/"
1223 },
1224 {
1225 "condition": "AND",
1226 "key": "frontend",
1227 "operator": "=~",
1228 "value": "/$service/"
1229 }
1230 ]
1231 },
1232 {
1233 "alias": "3xx",
1234 "column": "value",
1235 "dsType": "influxdb",
1236 "function": "derivative",
1237 "groupBy": [
1238 {
1239 "interval": "auto",
1240 "params": [
1241 "auto"
1242 ],
1243 "type": "time"
1244 }
1245 ],
1246 "measurement": "haproxy_frontend_response_3xx",
1247 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001248 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_3xx\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001249 "rawQuery": true,
1250 "refId": "C",
1251 "resultFormat": "time_series",
1252 "select": [
1253 [
1254 {
1255 "params": [
1256 "value"
1257 ],
1258 "type": "field"
1259 },
1260 {
1261 "params": [],
1262 "type": "mean"
1263 }
1264 ]
1265 ],
1266 "tags": [
1267 {
1268 "key": "hostname",
1269 "operator": "=~",
1270 "value": "/$server/"
1271 },
1272 {
1273 "condition": "AND",
1274 "key": "frontend",
1275 "operator": "=~",
1276 "value": "/$service/"
1277 }
1278 ]
1279 },
1280 {
1281 "alias": "4xx",
1282 "column": "value",
1283 "dsType": "influxdb",
1284 "function": "derivative",
1285 "groupBy": [
1286 {
1287 "interval": "auto",
1288 "params": [
1289 "auto"
1290 ],
1291 "type": "time"
1292 }
1293 ],
1294 "measurement": "haproxy_frontend_response_4xx",
1295 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001296 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_4xx\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001297 "rawQuery": true,
1298 "refId": "D",
1299 "resultFormat": "time_series",
1300 "select": [
1301 [
1302 {
1303 "params": [
1304 "value"
1305 ],
1306 "type": "field"
1307 },
1308 {
1309 "params": [],
1310 "type": "mean"
1311 }
1312 ]
1313 ],
1314 "tags": [
1315 {
1316 "key": "hostname",
1317 "operator": "=~",
1318 "value": "/$server/"
1319 },
1320 {
1321 "condition": "AND",
1322 "key": "frontend",
1323 "operator": "=~",
1324 "value": "/$service/"
1325 }
1326 ]
1327 },
1328 {
1329 "alias": "5xx",
1330 "column": "value",
1331 "dsType": "influxdb",
1332 "function": "derivative",
1333 "groupBy": [
1334 {
1335 "interval": "auto",
1336 "params": [
1337 "auto"
1338 ],
1339 "type": "time"
1340 }
1341 ],
1342 "measurement": "haproxy_frontend_response_5xx",
1343 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001344 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_5xx\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001345 "rawQuery": true,
1346 "refId": "E",
1347 "resultFormat": "time_series",
1348 "select": [
1349 [
1350 {
1351 "params": [
1352 "value"
1353 ],
1354 "type": "field"
1355 },
1356 {
1357 "params": [],
1358 "type": "mean"
1359 }
1360 ]
1361 ],
1362 "tags": [
1363 {
1364 "key": "hostname",
1365 "operator": "=~",
1366 "value": "/$server/"
1367 },
1368 {
1369 "condition": "AND",
1370 "key": "frontend",
1371 "operator": "=~",
1372 "value": "/$service/"
1373 }
1374 ]
1375 },
1376 {
1377 "alias": "other",
1378 "column": "value",
1379 "dsType": "influxdb",
1380 "function": "derivative",
1381 "groupBy": [
1382 {
1383 "interval": "auto",
1384 "params": [
1385 "auto"
1386 ],
1387 "type": "time"
1388 }
1389 ],
1390 "measurement": "haproxy_frontend_response_other",
1391 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001392 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_response_other\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001393 "rawQuery": true,
1394 "refId": "F",
1395 "resultFormat": "time_series",
1396 "select": [
1397 [
1398 {
1399 "params": [
1400 "value"
1401 ],
1402 "type": "field"
1403 },
1404 {
1405 "params": [],
1406 "type": "mean"
1407 }
1408 ]
1409 ],
1410 "tags": [
1411 {
1412 "key": "hostname",
1413 "operator": "=~",
1414 "value": "/$server/"
1415 },
1416 {
1417 "condition": "AND",
1418 "key": "frontend",
1419 "operator": "=~",
1420 "value": "/$service/"
1421 }
1422 ]
1423 }
1424 ],
1425 "timeFrom": null,
1426 "timeShift": null,
1427 "title": "HTTP responses",
1428 "tooltip": {
1429 "msResolution": false,
1430 "shared": true,
1431 "value_type": "cumulative"
1432 },
1433 "type": "graph",
1434 "xaxis": {
1435 "show": true
1436 },
1437 "yaxes": [
1438 {
1439 "format": "short",
1440 "label": "per second",
1441 "logBase": 1,
1442 "max": null,
1443 "min": 0,
1444 "show": true
1445 },
1446 {
1447 "format": "none",
1448 "logBase": 1,
1449 "max": null,
1450 "min": null,
1451 "show": true
1452 }
1453 ]
1454 },
1455 {
1456 "aliasColors": {},
1457 "bars": false,
1458 "datasource": null,
1459 "editable": true,
1460 "error": false,
1461 "fill": 0,
1462 "grid": {
1463 "threshold1": null,
1464 "threshold1Color": "rgba(216, 200, 27, 0.27)",
1465 "threshold2": null,
1466 "threshold2Color": "rgba(234, 112, 112, 0.22)"
1467 },
1468 "id": 4,
1469 "interval": ">60s",
1470 "legend": {
1471 "avg": false,
1472 "current": false,
1473 "max": false,
1474 "min": false,
1475 "show": true,
1476 "total": false,
1477 "values": false
1478 },
1479 "lines": true,
1480 "linewidth": 1,
1481 "links": [],
1482 "nullPointMode": "connected",
1483 "percentage": false,
1484 "pointradius": 5,
1485 "points": false,
1486 "renderer": "flot",
1487 "seriesOverrides": [],
1488 "span": 3,
1489 "stack": false,
1490 "steppedLine": false,
1491 "targets": [
1492 {
1493 "alias": "mean",
1494 "column": "value",
1495 "dsType": "influxdb",
1496 "function": "mean",
1497 "groupBy": [
1498 {
1499 "params": [
1500 "auto"
1501 ],
1502 "type": "time"
1503 },
1504 {
1505 "params": [
1506 "0"
1507 ],
1508 "type": "fill"
1509 }
1510 ],
1511 "hide": false,
1512 "measurement": "haproxy_frontend_session_current",
1513 "policy": "default",
1514 "query": "SELECT mean(\"value\") FROM \"haproxy_frontend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
1515 "rawQuery": false,
1516 "refId": "A",
1517 "resultFormat": "time_series",
1518 "select": [
1519 [
1520 {
1521 "params": [
1522 "value"
1523 ],
1524 "type": "field"
1525 },
1526 {
1527 "params": [],
1528 "type": "mean"
1529 }
1530 ]
1531 ],
1532 "tags": [
1533 {
1534 "key": "hostname",
1535 "value": "/$server/"
1536 },
1537 {
1538 "condition": "AND",
1539 "key": "frontend",
1540 "value": "/$service/"
1541 }
1542 ]
1543 },
1544 {
1545 "alias": "max",
1546 "column": "value",
1547 "dsType": "influxdb",
1548 "function": "max",
1549 "groupBy": [
1550 {
1551 "params": [
1552 "auto"
1553 ],
1554 "type": "time"
1555 },
1556 {
1557 "params": [
1558 "0"
1559 ],
1560 "type": "fill"
1561 }
1562 ],
1563 "hide": false,
1564 "interval": "",
1565 "measurement": "haproxy_frontend_session_current",
1566 "policy": "default",
1567 "query": "SELECT max(\"value\") FROM \"haproxy_frontend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
1568 "rawQuery": false,
1569 "refId": "B",
1570 "resultFormat": "time_series",
1571 "select": [
1572 [
1573 {
1574 "params": [
1575 "value"
1576 ],
1577 "type": "field"
1578 },
1579 {
1580 "params": [],
1581 "type": "max"
1582 }
1583 ]
1584 ],
1585 "tags": [
1586 {
1587 "key": "hostname",
1588 "value": "/$server/"
1589 },
1590 {
1591 "condition": "AND",
1592 "key": "frontend",
1593 "value": "/$service/"
1594 }
1595 ]
1596 },
1597 {
1598 "alias": "min",
1599 "column": "value",
1600 "dsType": "influxdb",
1601 "function": "min",
1602 "groupBy": [
1603 {
1604 "params": [
1605 "auto"
1606 ],
1607 "type": "time"
1608 },
1609 {
1610 "params": [
1611 "0"
1612 ],
1613 "type": "fill"
1614 }
1615 ],
1616 "interval": "",
1617 "measurement": "haproxy_frontend_session_current",
1618 "policy": "default",
1619 "query": "SELECT min(\"value\") FROM \"haproxy_frontend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
1620 "rawQuery": false,
1621 "refId": "C",
1622 "resultFormat": "time_series",
1623 "select": [
1624 [
1625 {
1626 "params": [
1627 "value"
1628 ],
1629 "type": "field"
1630 },
1631 {
1632 "params": [],
1633 "type": "min"
1634 }
1635 ]
1636 ],
1637 "tags": [
1638 {
1639 "key": "hostname",
1640 "value": "/$server/"
1641 },
1642 {
1643 "condition": "AND",
1644 "key": "frontend",
1645 "value": "/$service/"
1646 }
1647 ]
1648 }
1649 ],
1650 "timeFrom": null,
1651 "timeShift": null,
1652 "title": "Sessions",
1653 "tooltip": {
1654 "msResolution": false,
1655 "shared": true,
1656 "value_type": "individual"
1657 },
1658 "type": "graph",
1659 "xaxis": {
1660 "show": true
1661 },
1662 "yaxes": [
1663 {
1664 "format": "short",
1665 "label": "sessions",
1666 "logBase": 1,
1667 "max": null,
1668 "min": 0,
1669 "show": true
1670 },
1671 {
1672 "format": "short",
1673 "logBase": 1,
1674 "max": null,
1675 "min": null,
1676 "show": true
1677 }
1678 ]
1679 },
1680 {
1681 "aliasColors": {},
1682 "bars": false,
1683 "datasource": null,
1684 "editable": true,
1685 "error": false,
1686 "fill": 0,
1687 "grid": {
1688 "threshold1": null,
1689 "threshold1Color": "rgba(216, 200, 27, 0.27)",
1690 "threshold2": null,
1691 "threshold2Color": "rgba(234, 112, 112, 0.22)"
1692 },
1693 "id": 18,
1694 "interval": ">60s",
1695 "legend": {
1696 "avg": false,
1697 "current": false,
1698 "max": false,
1699 "min": false,
1700 "show": true,
1701 "total": false,
1702 "values": false
1703 },
1704 "lines": true,
1705 "linewidth": 1,
1706 "links": [],
1707 "nullPointMode": "connected",
1708 "percentage": false,
1709 "pointradius": 5,
1710 "points": false,
1711 "renderer": "flot",
1712 "seriesOverrides": [],
1713 "span": 3,
1714 "stack": false,
1715 "steppedLine": false,
1716 "targets": [
1717 {
1718 "alias": "error requests",
1719 "column": "value",
1720 "dsType": "influxdb",
1721 "function": "derivative",
1722 "groupBy": [
1723 {
1724 "interval": "auto",
1725 "params": [
1726 "auto"
1727 ],
1728 "type": "time"
1729 }
1730 ],
1731 "measurement": "haproxy_frontend_error_requests",
1732 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001733 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_error_requests\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001734 "rawQuery": true,
1735 "refId": "A",
1736 "resultFormat": "time_series",
1737 "select": [
1738 [
1739 {
1740 "params": [
1741 "value"
1742 ],
1743 "type": "field"
1744 },
1745 {
1746 "params": [],
1747 "type": "mean"
1748 }
1749 ]
1750 ],
1751 "tags": [
1752 {
1753 "key": "hostname",
1754 "operator": "=~",
1755 "value": "/$server/"
1756 },
1757 {
1758 "condition": "AND",
1759 "key": "frontend",
1760 "operator": "=~",
1761 "value": "/$service/"
1762 }
1763 ]
1764 },
1765 {
1766 "alias": "denied requests",
1767 "column": "value",
1768 "dsType": "influxdb",
1769 "function": "derivative",
1770 "groupBy": [
1771 {
1772 "interval": "auto",
1773 "params": [
1774 "auto"
1775 ],
1776 "type": "time"
1777 }
1778 ],
1779 "measurement": "haproxy_frontend_denied_requests",
1780 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001781 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_denied_requests\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001782 "rawQuery": true,
1783 "refId": "B",
1784 "resultFormat": "time_series",
1785 "select": [
1786 [
1787 {
1788 "params": [
1789 "value"
1790 ],
1791 "type": "field"
1792 },
1793 {
1794 "params": [],
1795 "type": "mean"
1796 }
1797 ]
1798 ],
1799 "tags": [
1800 {
1801 "key": "hostname",
1802 "operator": "=~",
1803 "value": "/$server/"
1804 },
1805 {
1806 "condition": "AND",
1807 "key": "frontend",
1808 "operator": "=~",
1809 "value": "/$service/"
1810 }
1811 ],
1812 "target": ""
1813 },
1814 {
1815 "alias": "denied responses",
1816 "column": "value",
1817 "dsType": "influxdb",
1818 "function": "derivative",
1819 "groupBy": [
1820 {
1821 "interval": "auto",
1822 "params": [
1823 "auto"
1824 ],
1825 "type": "time"
1826 }
1827 ],
1828 "measurement": "haproxy_frontend_denied_responses",
1829 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001830 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_frontend_denied_responses\" WHERE \"hostname\" =~ /$server/ AND \"frontend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001831 "rawQuery": true,
1832 "refId": "C",
1833 "resultFormat": "time_series",
1834 "select": [
1835 [
1836 {
1837 "params": [
1838 "value"
1839 ],
1840 "type": "field"
1841 },
1842 {
1843 "params": [],
1844 "type": "mean"
1845 }
1846 ]
1847 ],
1848 "tags": [
1849 {
1850 "key": "hostname",
1851 "operator": "=~",
1852 "value": "/$server/"
1853 },
1854 {
1855 "condition": "AND",
1856 "key": "frontend",
1857 "operator": "=~",
1858 "value": "/$service/"
1859 }
1860 ],
1861 "target": ""
1862 }
1863 ],
1864 "timeFrom": null,
1865 "timeShift": null,
1866 "title": "Errors",
1867 "tooltip": {
1868 "msResolution": false,
1869 "shared": true,
1870 "value_type": "cumulative"
1871 },
1872 "type": "graph",
1873 "xaxis": {
1874 "show": true
1875 },
1876 "yaxes": [
1877 {
1878 "format": "short",
1879 "label": "per second",
1880 "logBase": 1,
1881 "max": null,
1882 "min": 0,
1883 "show": true
1884 },
1885 {
1886 "format": "short",
1887 "logBase": 1,
1888 "max": null,
1889 "min": null,
1890 "show": true
1891 }
1892 ]
1893 }
1894 ],
1895 "showTitle": true,
1896 "title": "Frontend"
1897 },
1898 {
1899 "collapse": false,
1900 "editable": true,
1901 "height": "250px",
1902 "panels": [
1903 {
1904 "aliasColors": {
1905 "bytes_out.max": "#6ED0E0"
1906 },
1907 "bars": false,
1908 "datasource": null,
1909 "editable": true,
1910 "error": false,
1911 "fill": 0,
1912 "grid": {
1913 "threshold1": null,
1914 "threshold1Color": "rgba(216, 200, 27, 0.27)",
1915 "threshold2": null,
1916 "threshold2Color": "rgba(234, 112, 112, 0.22)"
1917 },
1918 "id": 10,
1919 "interval": ">60s",
1920 "legend": {
1921 "avg": false,
1922 "current": false,
1923 "max": false,
1924 "min": false,
1925 "show": true,
1926 "total": false,
1927 "values": false
1928 },
1929 "lines": true,
1930 "linewidth": 1,
1931 "links": [],
1932 "nullPointMode": "connected",
1933 "percentage": false,
1934 "pointradius": 5,
1935 "points": false,
1936 "renderer": "flot",
1937 "seriesOverrides": [],
1938 "span": 3,
1939 "stack": false,
1940 "steppedLine": false,
1941 "targets": [
1942 {
1943 "alias": "in",
1944 "column": "value",
1945 "dsType": "influxdb",
1946 "function": "derivative",
1947 "groupBy": [
1948 {
1949 "interval": "auto",
1950 "params": [
1951 "auto"
1952 ],
1953 "type": "time"
1954 }
1955 ],
1956 "interval": "",
1957 "measurement": "haproxy_backend_bytes_in",
1958 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01001959 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_bytes_in\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02001960 "rawQuery": true,
1961 "refId": "A",
1962 "resultFormat": "time_series",
1963 "select": [
1964 [
1965 {
1966 "params": [
1967 "value"
1968 ],
1969 "type": "field"
1970 },
1971 {
1972 "params": [],
1973 "type": "mean"
1974 }
1975 ]
1976 ],
1977 "tags": [
1978 {
1979 "key": "hostname",
1980 "operator": "=~",
1981 "value": "/$server/"
1982 },
1983 {
1984 "condition": "AND",
1985 "key": "backend",
1986 "operator": "=~",
1987 "value": "/$service/"
1988 }
1989 ]
1990 },
1991 {
1992 "alias": "out",
1993 "column": "value",
1994 "dsType": "influxdb",
1995 "function": "derivative",
1996 "groupBy": [
1997 {
1998 "interval": "auto",
1999 "params": [
2000 "auto"
2001 ],
2002 "type": "time"
2003 }
2004 ],
2005 "hide": false,
2006 "interval": "",
2007 "measurement": "haproxy_backend_bytes_out",
2008 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002009 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_bytes_out\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002010 "rawQuery": true,
2011 "refId": "B",
2012 "resultFormat": "time_series",
2013 "select": [
2014 [
2015 {
2016 "params": [
2017 "value"
2018 ],
2019 "type": "field"
2020 },
2021 {
2022 "params": [],
2023 "type": "mean"
2024 }
2025 ]
2026 ],
2027 "tags": [
2028 {
2029 "key": "hostname",
2030 "operator": "=~",
2031 "value": "/$server/"
2032 },
2033 {
2034 "condition": "AND",
2035 "key": "backend",
2036 "operator": "=~",
2037 "value": "/$service/"
2038 }
2039 ]
2040 }
2041 ],
2042 "timeFrom": null,
2043 "timeShift": null,
2044 "title": "Network I/O",
2045 "tooltip": {
2046 "msResolution": false,
2047 "shared": true,
2048 "value_type": "cumulative"
2049 },
2050 "type": "graph",
2051 "xaxis": {
2052 "show": true
2053 },
2054 "yaxes": [
2055 {
2056 "format": "Bps",
2057 "logBase": 1,
2058 "max": null,
2059 "min": 0,
2060 "show": true
2061 },
2062 {
2063 "format": "bytes",
2064 "logBase": 1,
2065 "max": null,
2066 "min": null,
2067 "show": true
2068 }
2069 ]
2070 },
2071 {
2072 "aliasColors": {},
2073 "bars": false,
2074 "datasource": null,
2075 "editable": true,
2076 "error": false,
2077 "fill": 0,
2078 "grid": {
2079 "threshold1": null,
2080 "threshold1Color": "rgba(216, 200, 27, 0.27)",
2081 "threshold2": null,
2082 "threshold2Color": "rgba(234, 112, 112, 0.22)"
2083 },
2084 "id": 20,
2085 "interval": ">60s",
2086 "legend": {
2087 "alignAsTable": false,
2088 "avg": false,
2089 "current": false,
2090 "max": false,
2091 "min": false,
2092 "show": true,
2093 "total": false,
2094 "values": false
2095 },
2096 "lines": true,
2097 "linewidth": 1,
2098 "links": [],
2099 "nullPointMode": "connected",
2100 "percentage": false,
2101 "pointradius": 5,
2102 "points": false,
2103 "renderer": "flot",
2104 "seriesOverrides": [],
2105 "span": 3,
2106 "stack": false,
2107 "steppedLine": false,
2108 "targets": [
2109 {
2110 "alias": "1xx",
2111 "column": "value",
2112 "dsType": "influxdb",
2113 "function": "derivative",
2114 "groupBy": [
2115 {
2116 "interval": "auto",
2117 "params": [
2118 "auto"
2119 ],
2120 "type": "time"
2121 }
2122 ],
2123 "interval": "",
2124 "measurement": "haproxy_backend_response_1xx",
2125 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002126 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_1xx\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002127 "rawQuery": true,
2128 "refId": "A",
2129 "resultFormat": "time_series",
2130 "select": [
2131 [
2132 {
2133 "params": [
2134 "value"
2135 ],
2136 "type": "field"
2137 },
2138 {
2139 "params": [],
2140 "type": "mean"
2141 }
2142 ]
2143 ],
2144 "tags": [
2145 {
2146 "key": "hostname",
2147 "operator": "=~",
2148 "value": "/$server/"
2149 },
2150 {
2151 "condition": "AND",
2152 "key": "backend",
2153 "operator": "=~",
2154 "value": "/$service/"
2155 }
2156 ]
2157 },
2158 {
2159 "alias": "2xx",
2160 "column": "value",
2161 "dsType": "influxdb",
2162 "function": "derivative",
2163 "groupBy": [
2164 {
2165 "interval": "auto",
2166 "params": [
2167 "auto"
2168 ],
2169 "type": "time"
2170 }
2171 ],
2172 "measurement": "haproxy_backend_response_2xx",
2173 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002174 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_2xx\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002175 "rawQuery": true,
2176 "refId": "B",
2177 "resultFormat": "time_series",
2178 "select": [
2179 [
2180 {
2181 "params": [
2182 "value"
2183 ],
2184 "type": "field"
2185 },
2186 {
2187 "params": [],
2188 "type": "mean"
2189 }
2190 ]
2191 ],
2192 "tags": [
2193 {
2194 "key": "hostname",
2195 "operator": "=~",
2196 "value": "/$server/"
2197 },
2198 {
2199 "condition": "AND",
2200 "key": "backend",
2201 "operator": "=~",
2202 "value": "/$service/"
2203 }
2204 ]
2205 },
2206 {
2207 "alias": "3xx",
2208 "column": "value",
2209 "dsType": "influxdb",
2210 "function": "derivative",
2211 "groupBy": [
2212 {
2213 "interval": "auto",
2214 "params": [
2215 "auto"
2216 ],
2217 "type": "time"
2218 }
2219 ],
2220 "measurement": "haproxy_backend_response_3xx",
2221 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002222 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_3xx\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002223 "rawQuery": true,
2224 "refId": "C",
2225 "resultFormat": "time_series",
2226 "select": [
2227 [
2228 {
2229 "params": [
2230 "value"
2231 ],
2232 "type": "field"
2233 },
2234 {
2235 "params": [],
2236 "type": "mean"
2237 }
2238 ]
2239 ],
2240 "tags": [
2241 {
2242 "key": "hostname",
2243 "operator": "=~",
2244 "value": "/$server/"
2245 },
2246 {
2247 "condition": "AND",
2248 "key": "backend",
2249 "operator": "=~",
2250 "value": "/$service/"
2251 }
2252 ]
2253 },
2254 {
2255 "alias": "4xx",
2256 "column": "value",
2257 "dsType": "influxdb",
2258 "function": "derivative",
2259 "groupBy": [
2260 {
2261 "interval": "auto",
2262 "params": [
2263 "auto"
2264 ],
2265 "type": "time"
2266 }
2267 ],
2268 "measurement": "haproxy_backend_response_4xx",
2269 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002270 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_4xx\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002271 "rawQuery": true,
2272 "refId": "D",
2273 "resultFormat": "time_series",
2274 "select": [
2275 [
2276 {
2277 "params": [
2278 "value"
2279 ],
2280 "type": "field"
2281 },
2282 {
2283 "params": [],
2284 "type": "mean"
2285 }
2286 ]
2287 ],
2288 "tags": [
2289 {
2290 "key": "hostname",
2291 "operator": "=~",
2292 "value": "/$server/"
2293 },
2294 {
2295 "condition": "AND",
2296 "key": "backend",
2297 "operator": "=~",
2298 "value": "/$service/"
2299 }
2300 ]
2301 },
2302 {
2303 "alias": "5xx",
2304 "column": "value",
2305 "dsType": "influxdb",
2306 "function": "derivative",
2307 "groupBy": [
2308 {
2309 "interval": "auto",
2310 "params": [
2311 "auto"
2312 ],
2313 "type": "time"
2314 }
2315 ],
2316 "measurement": "haproxy_backend_response_5xx",
2317 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002318 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_5xx\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002319 "rawQuery": true,
2320 "refId": "E",
2321 "resultFormat": "time_series",
2322 "select": [
2323 [
2324 {
2325 "params": [
2326 "value"
2327 ],
2328 "type": "field"
2329 },
2330 {
2331 "params": [],
2332 "type": "mean"
2333 }
2334 ]
2335 ],
2336 "tags": [
2337 {
2338 "key": "hostname",
2339 "operator": "=~",
2340 "value": "/$server/"
2341 },
2342 {
2343 "condition": "AND",
2344 "key": "backend",
2345 "operator": "=~",
2346 "value": "/$service/"
2347 }
2348 ]
2349 },
2350 {
2351 "alias": "other",
2352 "column": "value",
2353 "dsType": "influxdb",
2354 "function": "derivative",
2355 "groupBy": [
2356 {
2357 "interval": "auto",
2358 "params": [
2359 "auto"
2360 ],
2361 "type": "time"
2362 }
2363 ],
2364 "measurement": "haproxy_backend_response_other",
2365 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002366 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_response_other\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002367 "rawQuery": true,
2368 "refId": "F",
2369 "resultFormat": "time_series",
2370 "select": [
2371 [
2372 {
2373 "params": [
2374 "value"
2375 ],
2376 "type": "field"
2377 },
2378 {
2379 "params": [],
2380 "type": "mean"
2381 }
2382 ]
2383 ],
2384 "tags": [
2385 {
2386 "key": "hostname",
2387 "operator": "=~",
2388 "value": "/$server/"
2389 },
2390 {
2391 "condition": "AND",
2392 "key": "backend",
2393 "operator": "=~",
2394 "value": "/$service/"
2395 }
2396 ]
2397 }
2398 ],
2399 "timeFrom": null,
2400 "timeShift": null,
2401 "title": "HTTP responses",
2402 "tooltip": {
2403 "msResolution": false,
2404 "shared": true,
2405 "value_type": "cumulative"
2406 },
2407 "type": "graph",
2408 "xaxis": {
2409 "show": true
2410 },
2411 "yaxes": [
2412 {
2413 "format": "short",
2414 "label": "per second",
2415 "logBase": 1,
2416 "max": null,
2417 "min": 0,
2418 "show": true
2419 },
2420 {
2421 "format": "none",
2422 "logBase": 1,
2423 "max": null,
2424 "min": null,
2425 "show": true
2426 }
2427 ]
2428 },
2429 {
2430 "aliasColors": {},
2431 "bars": false,
2432 "datasource": null,
2433 "editable": true,
2434 "error": false,
2435 "fill": 0,
2436 "grid": {
2437 "threshold1": null,
2438 "threshold1Color": "rgba(216, 200, 27, 0.27)",
2439 "threshold2": null,
2440 "threshold2Color": "rgba(234, 112, 112, 0.22)"
2441 },
2442 "id": 21,
2443 "interval": ">60s",
2444 "legend": {
2445 "avg": false,
2446 "current": false,
2447 "max": false,
2448 "min": false,
2449 "show": true,
2450 "total": false,
2451 "values": false
2452 },
2453 "lines": true,
2454 "linewidth": 1,
2455 "links": [],
2456 "nullPointMode": "connected",
2457 "percentage": false,
2458 "pointradius": 5,
2459 "points": false,
2460 "renderer": "flot",
2461 "seriesOverrides": [],
2462 "span": 3,
2463 "stack": false,
2464 "steppedLine": false,
2465 "targets": [
2466 {
2467 "alias": "mean",
2468 "column": "value",
2469 "dsType": "influxdb",
2470 "function": "mean",
2471 "groupBy": [
2472 {
2473 "params": [
2474 "auto"
2475 ],
2476 "type": "time"
2477 },
2478 {
2479 "params": [
2480 "0"
2481 ],
2482 "type": "fill"
2483 }
2484 ],
2485 "hide": false,
2486 "measurement": "haproxy_backend_session_current",
2487 "policy": "default",
2488 "query": "SELECT mean(\"value\") FROM \"haproxy_backend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
2489 "rawQuery": false,
2490 "refId": "A",
2491 "resultFormat": "time_series",
2492 "select": [
2493 [
2494 {
2495 "params": [
2496 "value"
2497 ],
2498 "type": "field"
2499 },
2500 {
2501 "params": [],
2502 "type": "mean"
2503 }
2504 ]
2505 ],
2506 "tags": [
2507 {
2508 "key": "hostname",
2509 "value": "/$server/"
2510 },
2511 {
2512 "condition": "AND",
2513 "key": "backend",
2514 "value": "/$service/"
2515 }
2516 ]
2517 },
2518 {
2519 "alias": "max",
2520 "column": "value",
2521 "dsType": "influxdb",
2522 "function": "max",
2523 "groupBy": [
2524 {
2525 "params": [
2526 "auto"
2527 ],
2528 "type": "time"
2529 },
2530 {
2531 "params": [
2532 "0"
2533 ],
2534 "type": "fill"
2535 }
2536 ],
2537 "hide": false,
2538 "interval": "",
2539 "measurement": "haproxy_backend_session_current",
2540 "policy": "default",
2541 "query": "SELECT max(\"value\") FROM \"haproxy_backend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
2542 "rawQuery": false,
2543 "refId": "B",
2544 "resultFormat": "time_series",
2545 "select": [
2546 [
2547 {
2548 "params": [
2549 "value"
2550 ],
2551 "type": "field"
2552 },
2553 {
2554 "params": [],
2555 "type": "max"
2556 }
2557 ]
2558 ],
2559 "tags": [
2560 {
2561 "key": "hostname",
2562 "value": "/$server/"
2563 },
2564 {
2565 "condition": "AND",
2566 "key": "backend",
2567 "value": "/$service/"
2568 }
2569 ]
2570 },
2571 {
2572 "alias": "min",
2573 "column": "value",
2574 "dsType": "influxdb",
2575 "function": "min",
2576 "groupBy": [
2577 {
2578 "params": [
2579 "auto"
2580 ],
2581 "type": "time"
2582 },
2583 {
2584 "params": [
2585 "0"
2586 ],
2587 "type": "fill"
2588 }
2589 ],
2590 "interval": "",
2591 "measurement": "haproxy_backend_session_current",
2592 "policy": "default",
2593 "query": "SELECT min(\"value\") FROM \"haproxy_backend_session_current\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter GROUP BY time($interval) fill(0)",
2594 "rawQuery": false,
2595 "refId": "C",
2596 "resultFormat": "time_series",
2597 "select": [
2598 [
2599 {
2600 "params": [
2601 "value"
2602 ],
2603 "type": "field"
2604 },
2605 {
2606 "params": [],
2607 "type": "min"
2608 }
2609 ]
2610 ],
2611 "tags": [
2612 {
2613 "key": "hostname",
2614 "value": "/$server/"
2615 },
2616 {
2617 "condition": "AND",
2618 "key": "backend",
2619 "value": "/$service/"
2620 }
2621 ]
2622 }
2623 ],
2624 "timeFrom": null,
2625 "timeShift": null,
2626 "title": "Sessions",
2627 "tooltip": {
2628 "msResolution": false,
2629 "shared": true,
2630 "value_type": "individual"
2631 },
2632 "type": "graph",
2633 "xaxis": {
2634 "show": true
2635 },
2636 "yaxes": [
2637 {
2638 "format": "short",
2639 "label": "sessions",
2640 "logBase": 1,
2641 "max": null,
2642 "min": 0,
2643 "show": true
2644 },
2645 {
2646 "format": "short",
2647 "logBase": 1,
2648 "max": null,
2649 "min": null,
2650 "show": true
2651 }
2652 ]
2653 },
2654 {
2655 "aliasColors": {},
2656 "bars": false,
2657 "datasource": null,
2658 "editable": true,
2659 "error": false,
2660 "fill": 0,
2661 "grid": {
2662 "threshold1": null,
2663 "threshold1Color": "rgba(216, 200, 27, 0.27)",
2664 "threshold2": null,
2665 "threshold2Color": "rgba(234, 112, 112, 0.22)"
2666 },
2667 "id": 14,
2668 "interval": ">60s",
2669 "legend": {
2670 "avg": false,
2671 "current": false,
2672 "max": false,
2673 "min": false,
2674 "show": true,
2675 "total": false,
2676 "values": false
2677 },
2678 "lines": true,
2679 "linewidth": 1,
2680 "links": [],
2681 "nullPointMode": "connected",
2682 "percentage": false,
2683 "pointradius": 5,
2684 "points": false,
2685 "renderer": "flot",
2686 "seriesOverrides": [],
2687 "span": 3,
2688 "stack": false,
2689 "steppedLine": true,
2690 "targets": [
2691 {
2692 "alias": "connection errors",
2693 "dsType": "influxdb",
2694 "groupBy": [
2695 {
2696 "interval": "auto",
2697 "params": [
2698 "auto"
2699 ],
2700 "type": "time"
2701 }
2702 ],
2703 "measurement": "haproxy_backend_error_connection",
2704 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002705 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_error_connection\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002706 "rawQuery": true,
2707 "refId": "A",
2708 "resultFormat": "time_series",
2709 "select": [
2710 [
2711 {
2712 "params": [
2713 "value"
2714 ],
2715 "type": "field"
2716 },
2717 {
2718 "params": [],
2719 "type": "mean"
2720 }
2721 ]
2722 ],
2723 "tags": [
2724 {
2725 "key": "hostname",
2726 "operator": "=~",
2727 "value": "/$server/"
2728 },
2729 {
2730 "condition": "AND",
2731 "key": "backend",
2732 "operator": "=~",
2733 "value": "/$service/"
2734 }
2735 ],
2736 "target": ""
2737 },
2738 {
2739 "alias": "response errors",
2740 "dsType": "influxdb",
2741 "groupBy": [
2742 {
2743 "interval": "auto",
2744 "params": [
2745 "auto"
2746 ],
2747 "type": "time"
2748 }
2749 ],
2750 "measurement": "haproxy_backend_error_responses",
2751 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002752 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_error_responses\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002753 "rawQuery": true,
2754 "refId": "B",
2755 "resultFormat": "time_series",
2756 "select": [
2757 [
2758 {
2759 "params": [
2760 "value"
2761 ],
2762 "type": "field"
2763 },
2764 {
2765 "params": [],
2766 "type": "mean"
2767 }
2768 ]
2769 ],
2770 "tags": [
2771 {
2772 "key": "hostname",
2773 "operator": "=~",
2774 "value": "/$server/"
2775 },
2776 {
2777 "condition": "AND",
2778 "key": "backend",
2779 "operator": "=~",
2780 "value": "/$service/"
2781 }
2782 ],
2783 "target": ""
2784 },
2785 {
2786 "alias": "denied requests",
2787 "column": "value",
2788 "dsType": "influxdb",
2789 "function": "difference",
2790 "groupBy": [
2791 {
2792 "interval": "auto",
2793 "params": [
2794 "auto"
2795 ],
2796 "type": "time"
2797 }
2798 ],
2799 "interval": "",
2800 "measurement": "haproxy_backend_denied_requests",
2801 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002802 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_denied_requests\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002803 "rawQuery": true,
2804 "refId": "C",
2805 "resultFormat": "time_series",
2806 "select": [
2807 [
2808 {
2809 "params": [
2810 "value"
2811 ],
2812 "type": "field"
2813 },
2814 {
2815 "params": [],
2816 "type": "mean"
2817 }
2818 ]
2819 ],
2820 "tags": [
2821 {
2822 "key": "hostname",
2823 "operator": "=~",
2824 "value": "/$server/"
2825 },
2826 {
2827 "condition": "AND",
2828 "key": "backend",
2829 "operator": "=~",
2830 "value": "/$service/"
2831 }
2832 ],
2833 "target": ""
2834 },
2835 {
2836 "alias": "denied responses",
2837 "column": "value",
2838 "dsType": "influxdb",
2839 "function": "difference",
2840 "groupBy": [
2841 {
2842 "interval": "auto",
2843 "params": [
2844 "auto"
2845 ],
2846 "type": "time"
2847 }
2848 ],
2849 "interval": "",
2850 "measurement": "haproxy_backend_denied_responses",
2851 "policy": "default",
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002852 "query": "SELECT derivative(first(value),1s) FROM \"haproxy_backend_denied_responses\" WHERE \"hostname\" =~ /$server/ AND \"backend\" =~ /$service/ AND $timeFilter AND \"environment_label\" =~ /^$environment$/GROUP BY time($interval) fill(0)",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002853 "rawQuery": true,
2854 "refId": "D",
2855 "resultFormat": "time_series",
2856 "select": [
2857 [
2858 {
2859 "params": [
2860 "value"
2861 ],
2862 "type": "field"
2863 },
2864 {
2865 "params": [],
2866 "type": "mean"
2867 }
2868 ]
2869 ],
2870 "tags": [
2871 {
2872 "key": "hostname",
2873 "operator": "=~",
2874 "value": "/$server/"
2875 },
2876 {
2877 "condition": "AND",
2878 "key": "backend",
2879 "operator": "=~",
2880 "value": "/$service/"
2881 }
2882 ],
2883 "target": ""
2884 }
2885 ],
2886 "timeFrom": null,
2887 "timeShift": null,
2888 "title": "Errors",
2889 "tooltip": {
2890 "msResolution": false,
2891 "shared": true,
2892 "value_type": "cumulative"
2893 },
2894 "type": "graph",
2895 "xaxis": {
2896 "show": true
2897 },
2898 "yaxes": [
2899 {
2900 "format": "short",
2901 "label": "per second",
2902 "logBase": 1,
2903 "max": null,
2904 "min": 0,
2905 "show": true
2906 },
2907 {
2908 "format": "short",
2909 "logBase": 1,
2910 "max": null,
2911 "min": null,
2912 "show": true
2913 }
2914 ]
2915 }
2916 ],
2917 "showTitle": true,
2918 "title": "Backend"
2919 }
2920 ],
2921 "schemaVersion": 12,
2922 "sharedCrosshair": true,
2923 "style": "dark",
2924 "tags": [],
2925 "templating": {
2926 "enable": true,
2927 "list": [
2928 {
2929 "allFormat": "regex values",
2930 "current": {},
2931 "datasource": null,
2932 "hide": 0,
2933 "includeAll": false,
2934 "name": "environment",
2935 "options": [],
2936 "query": "show tag values from cpu_idle with key = environment_label",
2937 "refresh": 1,
2938 "refresh_on_load": true,
2939 "regex": "",
2940 "type": "query"
2941 },
2942 {
2943 "allFormat": "regex values",
2944 "current": {},
2945 "datasource": null,
2946 "hide": 0,
2947 "includeAll": false,
2948 "name": "server",
2949 "options": [],
Guillaume Thouvenincf021402016-11-04 11:52:17 +01002950 "query": "show tag values from haproxy_backend_servers with key = hostname where environment_label =~ /^$environment$/ ",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002951 "refresh": 1,
2952 "refresh_on_load": true,
2953 "regex": "",
2954 "type": "query"
2955 },
2956 {
2957 "allFormat": "glob",
2958 "current": {},
2959 "datasource": null,
2960 "hide": 0,
2961 "includeAll": false,
2962 "name": "service",
2963 "options": [],
Éric Lemoine398d7ac2016-11-02 16:13:39 +01002964 "query": "show tag values from haproxy_backend_servers with key = backend where hostname =~ /^$server$/ and environment_label =~ /^$environment$/",
Guillaume Thouvenin70ca6672016-10-26 11:25:37 +02002965 "refresh": 1,
2966 "refresh_on_load": true,
2967 "regex": "",
2968 "type": "query"
2969 }
2970 ]
2971 },
2972 "time": {
2973 "from": "now-1h",
2974 "to": "now"
2975 },
2976 "timepicker": {
2977 "collapse": false,
2978 "enable": true,
2979 "notice": false,
2980 "now": true,
2981 "refresh_intervals": [
2982 "5s",
2983 "10s",
2984 "30s",
2985 "1m",
2986 "5m",
2987 "15m",
2988 "30m",
2989 "1h",
2990 "2h",
2991 "1d"
2992 ],
2993 "status": "Stable",
2994 "time_options": [
2995 "5m",
2996 "15m",
2997 "1h",
2998 "6h",
2999 "12h",
3000 "24h",
3001 "2d",
3002 "7d",
3003 "30d"
3004 ],
3005 "type": "timepicker"
3006 },
3007 "timezone": "browser",
3008 "title": "HAProxy",
3009 "version": 3
Éric Lemoine398d7ac2016-11-02 16:13:39 +01003010}