Welcome to mirror list, hosted at ThFree Co, Russian Federation.

template_app_wildfly_server_jmx.yaml « wildfly_server_jmx « app « templates - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d914f2db55e23980aa71d2330f20bd6395e9e78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
zabbix_export:
  version: '6.2'
  date: '2022-06-07T19:37:55Z'
  template_groups:
    -
      uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
  templates:
    -
      uuid: 2bf5827343f0420792ad953f290baa05
      template: 'WildFly Server by JMX'
      name: 'WildFly Server by JMX'
      description: |
        Official JMX Template for WildFly.
        The metrics are collected by JMX. This template works with standalone and domain instances.
        You can set {$WILDFLY.USER} and {$WILDFLY.PASSWORD} macros in the template for using on the host level.
        
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
        
        Template tooling version used: 0.41
      groups:
        -
          name: Templates/Applications
      items:
        -
          uuid: 9b9fce7f4b4945fea45feaa5b213c186
          name: 'WildFly: Uptime'
          type: JMX
          key: 'jmx["java.lang:type=Runtime","Uptime"]'
          history: 7d
          units: s
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'WildFly server uptime.'
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.001'
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
          triggers:
            -
              uuid: 8a4fab49eb1e4ebbb1459d9b0f848771
              expression: 'nodata(/WildFly Server by JMX/jmx["java.lang:type=Runtime","Uptime"],15m)=1'
              name: 'WildFly: Failed to fetch info data'
              event_name: 'WildFly: Failed to fetch info data (or no data for 15m)'
              priority: WARNING
              description: 'Zabbix has not received data for items for the last 15 minutes'
              tags:
                -
                  tag: scope
                  value: availability
            -
              uuid: 71db189440ec4355aa06262e3200d47e
              expression: 'last(/WildFly Server by JMX/jmx["java.lang:type=Runtime","Uptime"])<10m'
              name: 'WildFly: has been restarted'
              event_name: 'WildFly: has been restarted (uptime < 10m)'
              priority: INFO
              description: 'Uptime is less than 10 minutes.'
              manual_close: 'YES'
              tags:
                -
                  tag: scope
                  value: notice
        -
          uuid: daf104c5cafe4879b79fb30fca99c838
          name: 'WildFly: Launch type'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","launchType"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The manner in which the server process was launched. Either "DOMAIN" for a domain mode server launched by a Host Controller, "STANDALONE" for a standalone server launched from the command line, or "EMBEDDED" for a standalone server launched as an embedded part of an application running in the same virtual machine.'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
        -
          uuid: b3c30ba00ac54677a944cda7ec8536af
          name: 'WildFly: Name'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","name"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: |
            For standalone mode: The name of this server. If not set, defaults to the runtime value of InetAddress.getLocalHost().getHostName().
            For domain mode: The name given to this domain
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
        -
          uuid: 98dd8a8de5f240998bebaf28c8d1bbe2
          name: 'WildFly: Process type'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","processType"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The type of process represented by this root resource.'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
        -
          uuid: 0238c33ca0f045a7b1376cd5b3048bf0
          name: 'WildFly: Version'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","productVersion"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The version of the WildFly Core based product release'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
          triggers:
            -
              uuid: 2923ab6f81d64579b6ba778bc0467042
              expression: 'last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"],#1)<>last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"],#2) and length(last(/WildFly Server by JMX/jmx["jboss.as:management-root=server","productVersion"]))>0'
              name: 'WildFly: Version has changed'
              event_name: 'WildFly: Version has changed (new version: {ITEM.VALUE})'
              priority: INFO
              description: 'WildFly version has changed. Ack to close.'
              manual_close: 'YES'
              tags:
                -
                  tag: scope
                  value: notice
        -
          uuid: 855c96cf1b3d4ef691f7693ba5f8357f
          name: 'WildFly: Runtime configuration state'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","runtimeConfigurationState"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The current persistent configuration state, one of starting, ok, reload-required, restart-required, stopping or stopped.'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
          triggers:
            -
              uuid: c5702304641748e4bb04be89f3a38326
              expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","runtimeConfigurationState"],,"like","ok")=0'
              name: 'WildFly: Server needs to restart for configuration change.'
              priority: WARNING
              tags:
                -
                  tag: scope
                  value: notice
        -
          uuid: cd57068c6e18440a8e14c0b4fc5c6c78
          name: 'WildFly: Server controller state'
          type: JMX
          key: 'jmx["jboss.as:management-root=server","serverState"]'
          history: 7d
          trends: '0'
          value_type: CHAR
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The current state of the server controller; either STARTING, RUNNING, RESTART_REQUIRED, RELOAD_REQUIRED or STOPPING.'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: application
          triggers:
            -
              uuid: 81de7058e3b64f73a14e03728dcf1c9b
              expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","serverState"],,"like","running")=0'
              name: 'WildFly: Server controller is not in RUNNING state'
              priority: WARNING
              dependencies:
                -
                  name: 'WildFly: Server needs to restart for configuration change.'
                  expression: 'find(/WildFly Server by JMX/jmx["jboss.as:management-root=server","runtimeConfigurationState"],,"like","ok")=0'
              tags:
                -
                  tag: scope
                  value: availability
        -
          uuid: 2986d57975334b0bbf6bd687df457c26
          name: 'WildFly: Transactions: Aborted, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfAbortedTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of aborted (i.e. rolledback) transactions per second.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 035752468405481a9e0c4c60e662eadc
          name: 'WildFly: Transactions: Application rollbacks, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfApplicationRollbacks"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions that have been rolled back by application request. This includes those that timeout, since the timeout behavior is considered an attribute of the application configuration.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 2c157932072e416baed45a2350a3bd66
          name: 'WildFly: Transactions: Committed, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfCommittedTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of committed transactions'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 82958fc3169c42d2bb0c9dc29e341b8f
          name: 'WildFly: Transactions: Heuristics, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfHeuristics"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions which have terminated with heuristic outcomes.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 50ba79375dbf48c8b86c3d8654576186
          name: 'WildFly: Transactions: Current'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfInflightTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions that have begun but not yet terminated.'
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 6ca1501ec2904b7b875d2f9bfa127e10
          name: 'WildFly: Transactions: Nested, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfNestedTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The total number of nested (sub) transactions created.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: b1f782b6d71b4cc698a3f0d3b9d03a8d
          name: 'WildFly: Transactions: ResourceRollbacks, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfResourceRollbacks"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions that rolled back due to resource (participant) failure.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 6ca6b59da5da4d7cb6fbacd2bdd37996
          name: 'WildFly: Transactions: System rollbacks, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfSystemRollbacks"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions that have been rolled back due to internal system errors.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: 90f1a21c335b42928455d31635bfd11d
          name: 'WildFly: Transactions: Timed out, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfTimedOutTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The number of transactions that have rolled back due to timeout.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
        -
          uuid: a0c40292c62e4d51a96db3e07967b17c
          name: 'WildFly: Transactions: Total, rate'
          type: JMX
          key: 'jmx["jboss.as:subsystem=transactions","numberOfTransactions"]'
          history: 7d
          value_type: FLOAT
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          description: 'The total number of transactions (top-level and nested) created per second.'
          preprocessing:
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          tags:
            -
              tag: component
              value: transactions
      discovery_rules:
        -
          uuid: 9dbbe152925245f8a1f3bf5c32ae49c0
          name: 'Deployments discovery'
          type: JMX
          key: 'jmx.get[beans,"jboss.as.expr:deployment=*"]'
          delay: 1h
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#DEPLOYMENT}'
                value: '{$WILDFLY.DEPLOYMENT.MATCHES}'
                formulaid: A
              -
                macro: '{#DEPLOYMENT}'
                value: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          description: 'Discovery deployments metrics.'
          item_prototypes:
            -
              uuid: 52d99e3f76b4464fbf47271243682d05
              name: 'WildFly deployment [{#DEPLOYMENT}]: Enabled time'
              type: JMX
              key: 'jmx["{#JMXOBJ}",enabledTime]'
              history: 7d
              units: unixtime
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Indicates if the deployment is managed (aka uses the ContentRepository).'
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '0.001'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: deployments
                -
                  tag: deployment
                  value: '{#DEPLOYMENT}'
            -
              uuid: 8942cf5bc803401cac2f4d9ea943f1fe
              name: 'WildFly deployment [{#DEPLOYMENT}]: Enabled'
              type: JMX
              key: 'jmx["{#JMXOBJ}",enabled]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts.)'
              valuemap:
                name: 'WildFly flag'
              preprocessing:
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: deployments
                -
                  tag: deployment
                  value: '{#DEPLOYMENT}'
            -
              uuid: f633e596ddcc4620a193243c80a6633b
              name: 'WildFly deployment [{#DEPLOYMENT}]: Managed'
              type: JMX
              key: 'jmx["{#JMXOBJ}",managed]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Indicates if the deployment is managed (aka uses the ContentRepository).'
              valuemap:
                name: 'WildFly flag'
              preprocessing:
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: deployments
                -
                  tag: deployment
                  value: '{#DEPLOYMENT}'
            -
              uuid: 498f0d31a5044b91b4aa8af621011919
              name: 'WildFly deployment [{#DEPLOYMENT}]: Persistent'
              type: JMX
              key: 'jmx["{#JMXOBJ}",persistent]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Indicates if the deployment is managed (aka uses the ContentRepository).'
              valuemap:
                name: 'WildFly flag'
              preprocessing:
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: deployments
                -
                  tag: deployment
                  value: '{#DEPLOYMENT}'
            -
              uuid: d5dd67dc20c54ef1921da9c9a068ad29
              name: 'WildFly deployment [{#DEPLOYMENT}]: Status'
              type: JMX
              key: 'jmx["{#JMXOBJ}",status]'
              history: 7d
              trends: '0'
              value_type: CHAR
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: |
                The current runtime status of a deployment.
                Possible status modes are OK, FAILED, and STOPPED.
                FAILED indicates a dependency is missing or a service could not start.
                STOPPED indicates that the deployment was not enabled or was manually stopped.
              preprocessing:
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: deployments
                -
                  tag: deployment
                  value: '{#DEPLOYMENT}'
              trigger_prototypes:
                -
                  uuid: 6b432b25debe4277a971bc8a906e07b1
                  expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status],#1)<>last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status],#2) and length(last(/WildFly Server by JMX/jmx["{#JMXOBJ}",status]))>0'
                  name: 'WildFly deployment [{#DEPLOYMENT}]: Deployment status has changed'
                  event_name: 'WildFly deployment [{#DEPLOYMENT}]: Deployment status has changed (new status: {ITEM.VALUE})'
                  priority: WARNING
                  description: 'Deployment status has changed. Ack to close.'
                  manual_close: 'YES'
                  tags:
                    -
                      tag: scope
                      value: notice
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          lld_macro_paths:
            -
              lld_macro: '{#DEPLOYMENT}'
              path: $.properties.deployment
            -
              lld_macro: '{#JMXOBJ}'
              path: $.object
        -
          uuid: 8e3d5fe1a5a348169c15217bd083abf5
          name: 'JDBC metrics discovery'
          type: JMX
          key: 'jmx.get[beans,"jboss.as:subsystem=datasources,data-source=*,statistics=jdbc"]'
          delay: 1h
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          item_prototypes:
            -
              uuid: 6c0c0f94300148eda82224da1bc73bd1
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache access, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAccessCount]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of times that the statement cache was accessed  per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 0857fb4d2d2447a0b0dede21bb4b4bd5
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache add, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAddCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of statements added to the statement cache per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: bf368224ed444311ae1af4098c4bdb1f
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache current size'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheCurrentSize]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of prepared and callable statements currently cached in the statement cache.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 9c08f05299774a538a52be2c11e62cda
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache delete, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheDeleteCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of statements discarded from the cache per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: dbe7bc3d9a8a46c6a84b956f0a9e33be
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache hit, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheHitCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of times that statements from the cache were used per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 0e81a30b802941c4bc0e34a10a8d0573
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache miss, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",PreparedStatementCacheMissCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of times that a statement request could not be satisfied with a statement from the cache per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: cache
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 81dbce02ad4d492ebebd1a205bea1b43
              name: 'WildFly {#JMX_DATA_SOURCE}: Statistics enabled'
              type: JMX
              key: 'jmx["{#JMXOBJ}",statisticsEnabled]'
              history: 7d
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Define whether runtime statistics are enabled or not.'
              valuemap:
                name: 'WildFly flag'
              preprocessing:
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
          graph_prototypes:
            -
              uuid: 322b26787ab444db90a1be3da2717dd2
              name: 'WildFly {#JMX_DATA_SOURCE}: Cache operations'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAddCount]'
                -
                  sortorder: '1'
                  color: 2774A4
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",PreparedStatementCacheAccessCount]'
                -
                  sortorder: '2'
                  color: F63100
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",PreparedStatementCacheDeleteCount]'
                -
                  sortorder: '3'
                  color: A54F10
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",PreparedStatementCacheHitCount]'
                -
                  sortorder: '4'
                  color: FC6EA3
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",PreparedStatementCacheMissCount]'
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          lld_macro_paths:
            -
              lld_macro: '{#JMXOBJ}'
              path: $.object
            -
              lld_macro: '{#JMX_DATA_SOURCE}'
              path: '$.properties.["data-source"]'
        -
          uuid: f8fd6899dafb4247853bd3ed3fbabd48
          name: 'Pools metrics discovery'
          type: JMX
          key: 'jmx.get[beans,"jboss.as:subsystem=datasources,data-source=*,statistics=pool"]'
          delay: 1h
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          item_prototypes:
            -
              uuid: 06d61e390b0e403e81b1eaa77815cde2
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Active'
              type: JMX
              key: 'jmx["{#JMXOBJ}",ActiveCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of open connections.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
              trigger_prototypes:
                -
                  uuid: ea551068ebd04d349eba3f45a72f2610
                  expression: 'max(/WildFly Server by JMX/jmx["{#JMXOBJ}",ActiveCount],5m)=0'
                  name: 'WildFly {#JMX_DATA_SOURCE}: There are no active connections for 5m'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: capacity
            -
              uuid: 64565b71c26b463d8ea83ee5ee18284f
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Available'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AvailableCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The available count.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: adf534b46aba4f28acea58ea46197edd
              name: 'WildFly {#JMX_DATA_SOURCE}: Blocking time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AverageBlockingTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Average Blocking Time for pool.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 788691ba487e422a913d408361f99e4d
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Creating time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AverageCreationTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time spent creating a physical connection.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 52320ebbe70244e3ad52b0766cd03d8d
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Get time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AverageGetTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time spent obtaining a physical connection.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: c3a313b3d1c34e6b99ae73d5195e7fac
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Pool time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AveragePoolTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a physical connection spent in the pool.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: a76602ba784a4d40a3672a80487c878a
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Usage time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",AverageUsageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time spent using a physical connection'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: ba111d0ad76848c39c54ffc37d04e561
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Blocking failure, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",BlockingFailureCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of failures trying to obtain a physical connection per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: c01eb89708224899a9ac8e90ee79bcca
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Created, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",CreatedCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The created per second'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 606ed51ce8e549c7af20d7c1c5f78e6e
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Destroyed, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",DestroyedCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The destroyed count.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: a02eb0060fbb4f598d654d93c286c543
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Idle'
              type: JMX
              key: 'jmx["{#JMXOBJ}",IdleCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of physical connections currently idle.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: a5eed78c02274f6180eb667091087ce0
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: In use'
              type: JMX
              key: 'jmx["{#JMXOBJ}",InUseCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of physical connections currently in use.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 2f3e82a1c2f2472f95e4a85e3b182739
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Used, max'
              type: JMX
              key: 'jmx["{#JMXOBJ}",MaxUsedCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The maximum number of connections used.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: fb9a55168c8a4082a19f846ca10adc85
              name: 'WildFly {#JMX_DATA_SOURCE}: Statistics enabled'
              type: JMX
              key: 'jmx["{#JMXOBJ}",statisticsEnabled]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'Define whether runtime statistics are enabled or not.'
              valuemap:
                name: 'WildFly flag'
              preprocessing:
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
              trigger_prototypes:
                -
                  uuid: 2996a48892a640d69154de332c673755
                  expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",statisticsEnabled])=0'
                  name: 'WildFly {#JMX_DATA_SOURCE}: JDBC monitoring statistic is not enabled'
                  priority: INFO
                  tags:
                    -
                      tag: scope
                      value: notice
                -
                  uuid: 4ea71ba3572647b29a60077bc511052a
                  expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",statisticsEnabled])=0'
                  name: 'WildFly {#JMX_DATA_SOURCE}: Pools monitoring statistic is not enabled'
                  priority: INFO
                  description: 'Zabbix has not received data for items for the last 15 minutes'
                  tags:
                    -
                      tag: scope
                      value: notice
            -
              uuid: 727ff33cec8e4223bc5054c53d0de88b
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Timed out, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",TimedOut]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The timed out connections per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
              trigger_prototypes:
                -
                  uuid: d70d1703fdc64926abe602324814ea4c
                  expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",TimedOut])>0'
                  name: 'WildFly {#JMX_DATA_SOURCE}: There are timeout connections'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: performance
            -
              uuid: 4832c8d39e0d4329af6876c594a3d741
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections: Wait'
              type: JMX
              key: 'jmx["{#JMXOBJ}",WaitCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of requests that had to wait to obtain a physical connection.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: connections
                -
                  tag: component
                  value: datasources
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
              trigger_prototypes:
                -
                  uuid: 2e38504216d84f3b9fe43b0bea86e388
                  expression: 'min(/WildFly Server by JMX/jmx["{#JMXOBJ}",WaitCount],5m)>{$WILDFLY.CONN.WAIT.MAX.WARN}'
                  name: 'WildFly {#JMX_DATA_SOURCE}: Too many waiting connections'
                  event_name: 'WildFly {#JMX_DATA_SOURCE}: Too many waiting connections (over {$WILDFLY.CONN.WAIT.MAX.WARN} for 5m)'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: performance
            -
              uuid: c22389aa983a4cdca504e3cc41126f03
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Commit time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XACommitAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource commit invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 2510b507e62c4574af32bb0a283995e8
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Commit, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XACommitCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource commit invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 6f15c885d49e4c1a89bd52b0b4ff0035
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: End time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAEndAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource end invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: c51dd8821ace4724ae965d7ca6f3ebdd
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: End, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAEndCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource end invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: b5028a44fa2b4347abe11177d61567e2
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Forget time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAForgetAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource forget invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 685173455b424a5aa5463670c1718314
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Forget, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAForgetCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource forget invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 4513aff93c8a404389aaf58b28aab5b1
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Prepare time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAPrepareAverageTime]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource prepare invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 96c723883cfa416b9e030e5d42836de3
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Prepare, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAPrepareCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource prepare invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 30f0474a666547c39e0d793decd0be57
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Recover time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XARecoverAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource recover invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: d7a3de25f6a74c75b65bc9c83decc1ac
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Recover, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XARecoverCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource recover invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: bd64f91e953249e993c3c388f3382ff4
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Rollback time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XARollbackAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource rollback invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: 0c0749b041124e1ebb11396344517c01
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Rollback, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XARollbackCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource rollback invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: ab9c32db31d84a46967c1f601f11f610
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Start time, avg'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAStartAverageTime]'
              history: 7d
              value_type: FLOAT
              units: s
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The average time for a XAResource start invocation.'
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
            -
              uuid: ef5b00e1dcab4addbc72a0c191e3728b
              name: 'WildFly {#JMX_DATA_SOURCE}: XA: Start rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",XAStartCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of XAResource start invocations per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: datasources
                -
                  tag: component
                  value: xa
                -
                  tag: datasource
                  value: '{#JMX_DATA_SOURCE}'
          trigger_prototypes:
            -
              uuid: 6a40b3e94cc0441abc95fe3bc94397bf
              expression: 'min(/WildFly Server by JMX/jmx["{#JMXOBJ}",InUseCount],5m)/last(/WildFly Server by JMX/jmx["{#JMXOBJ}",AvailableCount])*100>{$WILDFLY.CONN.USAGE.WARN.MAX}'
              name: 'WildFly {#JMX_DATA_SOURCE}: Connection usage is too high'
              event_name: 'WildFly {#JMX_DATA_SOURCE}: Connection usage is too high (over {$WILDFLY.CONN.USAGE.WARN.MAX} in 5m)'
              priority: HIGH
              tags:
                -
                  tag: scope
                  value: capacity
          graph_prototypes:
            -
              uuid: 65db851d241b4fe4b6a5d9796d475e55
              name: 'WildFly {#JMX_DATA_SOURCE}: Connections'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",ActiveCount]'
                -
                  sortorder: '1'
                  color: 2774A4
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",AvailableCount]'
                -
                  sortorder: '2'
                  color: F63100
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",InUseCount]'
                -
                  sortorder: '3'
                  color: A54F10
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",MaxUsedCount]'
                -
                  sortorder: '4'
                  color: FC6EA3
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",TimedOut]'
                -
                  sortorder: '5'
                  color: 6C59DC
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",WaitCount]'
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          lld_macro_paths:
            -
              lld_macro: '{#JMXOBJ}'
              path: $.object
            -
              lld_macro: '{#JMX_DATA_SOURCE}'
              path: '$.properties.["data-source"]'
        -
          uuid: 0a566b1e160649cdb5fda18d3b157733
          name: 'Undertow metrics discovery'
          type: JMX
          key: 'jmx.get[beans,"jboss.as:subsystem=undertow,server=*,http-listener=*"]'
          delay: 1h
          username: '{$WILDFLY.USER}'
          password: '{$WILDFLY.PASSWORD}'
          item_prototypes:
            -
              uuid: dde94dd2df61495582234d709552fe17
              name: 'WildFly listener {#HTTP_LISTENER}: Bytes received, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",bytesReceived]'
              history: 7d
              value_type: FLOAT
              units: Bps
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of bytes that have been received by this listener per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: network
                -
                  tag: component
                  value: undertow
                -
                  tag: http_listener
                  value: '{#HTTP_LISTENER}'
                -
                  tag: server
                  value: '{#SERVER}'
            -
              uuid: 36451d29d7074b8ebdb3f366eeaa84df
              name: 'WildFly listener {#HTTP_LISTENER}: Bytes sent, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",bytesSent]'
              history: 7d
              value_type: FLOAT
              units: Bps
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of bytes that have been sent out on this listener per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: network
                -
                  tag: component
                  value: undertow
                -
                  tag: http_listener
                  value: '{#HTTP_LISTENER}'
                -
                  tag: server
                  value: '{#SERVER}'
            -
              uuid: a34cb42c703a4996ab9a4c7a08e71eeb
              name: 'WildFly listener {#HTTP_LISTENER}: Errors, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",errorCount]'
              history: 7d
              value_type: FLOAT
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of 500 responses that have been sent by this listener per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: undertow
                -
                  tag: http_listener
                  value: '{#HTTP_LISTENER}'
                -
                  tag: server
                  value: '{#SERVER}'
              trigger_prototypes:
                -
                  uuid: 504b88b04a204335a10f56cc3d852ba5
                  expression: 'last(/WildFly Server by JMX/jmx["{#JMXOBJ}",errorCount])>0'
                  name: 'WildFly listener {#HTTP_LISTENER}: There are 500 responses by this listener.'
                  priority: WARNING
                  tags:
                    -
                      tag: scope
                      value: availability
            -
              uuid: 2e7a581b104a4d4a8a0d9235b899635a
              name: 'WildFly listener {#HTTP_LISTENER}: Requests, rate'
              type: JMX
              key: 'jmx["{#JMXOBJ}",requestCount]'
              history: 7d
              value_type: FLOAT
              units: Rps
              username: '{$WILDFLY.USER}'
              password: '{$WILDFLY.PASSWORD}'
              description: 'The number of requests this listener has served per second.'
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
              tags:
                -
                  tag: component
                  value: undertow
                -
                  tag: http_listener
                  value: '{#HTTP_LISTENER}'
                -
                  tag: server
                  value: '{#SERVER}'
          graph_prototypes:
            -
              uuid: 980c07db8fc5450db560a94df1250bf5
              name: 'WildFly listener {#HTTP_LISTENER}: Requests'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",requestCount]'
                -
                  sortorder: '1'
                  color: 2774A4
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",errorCount]'
            -
              uuid: 7d982b6efde6432f9d3f96a4300eae00
              name: 'WildFly listener {#HTTP_LISTENER}: Throughput'
              graph_items:
                -
                  color: 1A7C11
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",bytesReceived]'
                -
                  sortorder: '1'
                  color: 2774A4
                  item:
                    host: 'WildFly Server by JMX'
                    key: 'jmx["{#JMXOBJ}",bytesSent]'
          jmx_endpoint: 'service:jmx:{$WILDFLY.JMX.PROTOCOL}://{HOST.CONN}:{HOST.PORT}'
          lld_macro_paths:
            -
              lld_macro: '{#HTTP_LISTENER}'
              path: '$.properties.["http-listener"]'
            -
              lld_macro: '{#JMXOBJ}'
              path: $.object
            -
              lld_macro: '{#SERVER}'
              path: '$.properties.["server"]'
      tags:
        -
          tag: class
          value: application
        -
          tag: target
          value: wildfly-server
      macros:
        -
          macro: '{$WILDFLY.CONN.USAGE.WARN.MAX}'
          value: '80'
          description: 'The maximum connection usage percent for trigger expression.'
        -
          macro: '{$WILDFLY.CONN.WAIT.MAX.WARN}'
          value: '300'
          description: 'The maximum number of waiting connections for trigger expression.'
        -
          macro: '{$WILDFLY.DEPLOYMENT.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable deployments'
        -
          macro: '{$WILDFLY.DEPLOYMENT.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered deployments'
        -
          macro: '{$WILDFLY.JMX.PROTOCOL}'
          value: remote+http
        -
          macro: '{$WILDFLY.PASSWORD}'
          value: zabbix
        -
          macro: '{$WILDFLY.USER}'
          value: zabbix
      valuemaps:
        -
          uuid: 4004b5f2501f44a69dc86afce3daa4d1
          name: 'WildFly flag'
          mappings:
            -
              value: '0'
              newvalue: 'False'
            -
              value: '1'
              newvalue: 'True'
  graphs:
    -
      uuid: 69e213dfd33d49a8b057068a89e4cef1
      name: 'WildFly: Transactions'
      graph_items:
        -
          color: 1A7C11
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfTimedOutTransactions"]'
        -
          sortorder: '1'
          color: 2774A4
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfSystemRollbacks"]'
        -
          sortorder: '2'
          color: F63100
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfResourceRollbacks"]'
        -
          sortorder: '3'
          color: A54F10
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfNestedTransactions"]'
        -
          sortorder: '4'
          color: FC6EA3
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfHeuristics"]'
        -
          sortorder: '5'
          color: 6C59DC
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfCommittedTransactions"]'
        -
          sortorder: '6'
          color: AC8C14
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfApplicationRollbacks"]'
        -
          sortorder: '7'
          color: 611F27
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfAbortedTransactions"]'
        -
          sortorder: '8'
          color: F230E0
          item:
            host: 'WildFly Server by JMX'
            key: 'jmx["jboss.as:subsystem=transactions","numberOfTransactions"]'