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

template_app_vault_http.yaml « vault_http « app « templates - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d512afbb9a965264590e0dc2e3ed8c1566c15f48 (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
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
zabbix_export:
  version: '6.0'
  date: '2022-01-10T07:40:33Z'
  groups:
    -
      uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
  templates:
    -
      uuid: 2f82248e411340429d390e8389850401
      template: 'HashiCorp Vault by HTTP'
      name: 'HashiCorp Vault by HTTP'
      description: |
        Get HashiCorp Vault metrics from Vault API HTTP Prometheus metrics endpoint.
        
        Some metrics may not be collected depending on your Vault instance version and configuration.
        
        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.40
      groups:
        -
          name: Templates/Applications
      items:
        -
          uuid: cd948f4219164c77a17b56f1b01767d0
          name: 'Vault: Check mountpoint discovery'
          type: DEPENDENT
          key: vault.check_mountpoint_discovery
          delay: '0'
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^vault_rollback_attempt_(?:.+?)_count$"}'
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var name,
                      output = [];
                  
                  JSON.parse(value).forEach(function (v) {
                      if (name = v.name.match(/^vault_(rollback_attempt|route_rollback)_(.+?)_count$/)) {
                          output.push(
                              {
                                  '{#MOUNTPOINT}': name[2].replace(/_/g, '/'),
                                  '{#PATTERN_C}': 'vault_' + name[1] + '_' + name[2] + '_count',
                                  '{#PATTERN_Q}': 'vault_' + name[1] + '_' + name[2]
                              }
                          );
                      }
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 15m
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: 940cacdb967c40a1b9fba1c143c8589b
          name: 'Vault: Check replication discovery'
          type: DEPENDENT
          key: vault.check_replication_discovery
          delay: '0'
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^replication_(?:.+)$"}'
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - 'return JSON.stringify(value !== "[]" ? [{''{#SINGLETON}'': ''''}] : []);'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 15m
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: f9c8f0ec3a5640af8464f69d1cebbd42
          name: 'Vault: Check storage discovery'
          type: DEPENDENT
          key: vault.check_storage_discovery
          delay: '0'
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^vault_(?:.+)_(?:get|put|list|delete)_count$"}'
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - |
                  var name,
                      output = [];
                  
                  JSON.parse(value).forEach(function (v) {
                      if (name = v.name.match(/^vault_((?!barrier).+?)_(get|put|list|delete)_count$/)) {
                          output.push(
                              {
                                  '{#STORAGE}': name[1],
                                  '{#OPERATION}': name[2].toUpperCase(),
                                  '{#PATTERN_C}': 'vault_' + name[1] + '_' + name[2] + '_count',
                                  '{#PATTERN_Q}': 'vault_' + name[1] + '_' + name[2]
                              }
                          );
                      }
                  });
                  
                  return JSON.stringify(output);
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 15m
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: febb5558b1944187a0ac6e87ed153267
          name: 'Vault: Check WAL discovery'
          type: DEPENDENT
          key: vault.check_wal_discovery
          delay: '0'
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^vault_wal_(?:.+)$"}'
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - 'return JSON.stringify(value !== "[]" ? [{''{#SINGLETON}'': ''''}] : []);'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 15m
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: 9607f909cfed4515bed2e0ea16749e0d
          name: 'Vault: Clear metrics'
          type: DEPENDENT
          key: vault.clear_metrics
          delay: '0'
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: CHECK_JSON_ERROR
              parameters:
                - $.errors
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.get_metrics
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: a78063c1186540fb88d3b958b14250bf
          name: 'Vault: Get health'
          type: HTTP_AGENT
          key: vault.get_health
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: CHECK_NOT_SUPPORTED
              parameters:
                - ''
              error_handler: CUSTOM_VALUE
              error_handler_params: '{"healthcheck": 0}'
          url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/health'
          status_codes: '200,429,472,473,503,501'
          headers:
            -
              name: X-Vault-Token
              value: '{$VAULT.TOKEN}'
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: f92c90b99edc42d9b170d775c714fa0a
          name: 'Vault: Get leader'
          type: HTTP_AGENT
          key: vault.get_leader
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: CHECK_NOT_SUPPORTED
              parameters:
                - ''
          url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/leader'
          headers:
            -
              name: X-Vault-Token
              value: '{$VAULT.TOKEN}'
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: 4ccc4256252f4345a264db340f4ddbf5
          name: 'Vault: Get metrics'
          type: HTTP_AGENT
          key: vault.get_metrics
          history: '0'
          trends: '0'
          value_type: TEXT
          preprocessing:
            -
              type: CHECK_NOT_SUPPORTED
              parameters:
                - ''
          url: '{$VAULT.API.SCHEME}://{$VAULT.HOST}:{$VAULT.API.PORT}/v1/sys/metrics?format=prometheus'
          status_codes: '200,503,403'
          headers:
            -
              name: X-Vault-Token
              value: '{$VAULT.TOKEN}'
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: cf264b78e4c44d49a81eac141a86d011
          name: 'Vault: Get metrics error'
          type: DEPENDENT
          key: vault.get_metrics.error
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: 'Get metrics error.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - '$.errors[0]'
              error_handler: CUSTOM_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_metrics
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: a43a4139d225461289d16b7a78002cb0
              expression: 'length(last(/HashiCorp Vault by HTTP/vault.get_metrics.error))>0'
              name: 'Vault: Failed to get metrics (error: {ITEM.VALUE})'
              priority: WARNING
              dependencies:
                -
                  name: 'Vault: Vault server is sealed'
                  expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1'
        -
          uuid: e8cb015d45ad4e3b9f87d3cbbae3a980
          name: 'Vault: Get tokens'
          type: SCRIPT
          key: vault.get_tokens
          delay: 15m
          history: '0'
          trends: '0'
          value_type: TEXT
          params: |
            var params = JSON.parse(value);
            
            params['url'] = params.scheme + '://'
                + params.host + ':'
                + params.port + '/v1/auth/token/lookup-accessor';
            
            var request = new HttpRequest(),
                output = [];
            
            request.addHeader('X-Vault-Token: ' + params.token);
            
            params.accessors.trim().split(/\x20+/).forEach(function (accessor) {
                if (!accessor) {
                    return;
                }
            
                var response,
                    data = {},
                    error_msg = '';
            
                try {
                    response = request.post(params.url, JSON.stringify({ accessor: accessor }));
                    Zabbix.log(4, '[ Vault API ] Received response with status code ' + request.getStatus() + ': ' + response);
            
                    if (response !== null) {
                        try {
                            response = JSON.parse(response);
                        }
                        catch (error) {
                            throw 'Failed to parse response received from Vault API. Check debug log for more information.';
                        }
                    }
            
                    if (request.getStatus() !== 200) {
                        throw response.errors && response.errors[0] || JSON.stringify(response);
                    }
            
                    if (typeof response !== 'object' || typeof response.data === 'undefined') {
                        throw 'Cannot lookup token from Vault API. Check debug log for more information.';
                    }
            
                    data = response.data;
                }
                catch (error) {
                    error_msg = error;
                }
            
                output.push({
                    'accessor': accessor,
                    'token_name': data.display_name || 'null',
                    'ttl': data.ttl || 0,
                    'has_ttl': !!data.expire_time,
                    'error': error_msg.toString()
                });
            });
            
            return JSON.stringify(output);
          description: 'Get information about tokens via their accessors. Accessors are defined in the macro "{$VAULT.TOKEN.ACCESSORS}".'
          parameters:
            -
              name: host
              value: '{$VAULT.HOST}'
            -
              name: token
              value: '{$VAULT.TOKEN}'
            -
              name: scheme
              value: '{$VAULT.API.SCHEME}'
            -
              name: port
              value: '{$VAULT.API.PORT}'
            -
              name: accessors
              value: '{$VAULT.TOKEN.ACCESSORS}'
          tags:
            -
              tag: Application
              value: 'Zabbix raw items'
        -
          uuid: df395f64c8fc45d2a9442bb655474b4a
          name: 'Vault: Healthcheck'
          type: DEPENDENT
          key: vault.health.check
          delay: '0'
          history: 7d
          description: 'Vault healthcheck.'
          valuemap:
            name: 'Service state'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.healthcheck
              error_handler: CUSTOM_VALUE
              error_handler_params: '1'
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: 93b4ae5089834a87ae41091fc9773501
              expression: 'last(/HashiCorp Vault by HTTP/vault.health.check)=0'
              name: 'Vault: Vault server is not responding'
              priority: HIGH
        -
          uuid: 05c46e931d29415f9a6a32f4dadd1eed
          name: 'Vault: Initialized'
          type: DEPENDENT
          key: vault.health.initialized
          delay: '0'
          history: 7d
          description: 'Initialization status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.initialized
              error_handler: DISCARD_VALUE
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 75a3c56f1bb24646927cf9b490471cae
          name: 'Vault: Performance standby'
          type: DEPENDENT
          key: vault.health.performance_standby
          delay: '0'
          history: 7d
          description: 'Performance standby status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.performance_standby
              error_handler: DISCARD_VALUE
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 488a43102a304f7ab4d2586088a2fded
          name: 'Vault: Disaster Recovery replication'
          type: DEPENDENT
          key: vault.health.replication_dr_mode
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: |
            Disaster recovery replication mode
            https://www.vaultproject.io/docs/enterprise/replication
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.replication_dr_mode
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 509982bde325478a9d77f99c256f1068
          name: 'Vault: Performance replication'
          type: DEPENDENT
          key: vault.health.replication_performance_mode
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: |
            Performance replication mode
            https://www.vaultproject.io/docs/enterprise/replication
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.replication_performance_mode
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: e6d2183bb8b14fa3a647d5cea1f56d4c
          name: 'Vault: Sealed'
          type: DEPENDENT
          key: vault.health.sealed
          delay: '0'
          history: 7d
          description: 'Seal status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.sealed
              error_handler: DISCARD_VALUE
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: 3f4ebf7094914c219ac32132400f90c8
              expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1'
              name: 'Vault: Vault server is sealed'
              priority: AVERAGE
              description: 'https://www.vaultproject.io/docs/concepts/seal'
        -
          uuid: 0641c979cf774d97a9bc52dbaffe8a0f
          name: 'Vault: Standby'
          type: DEPENDENT
          key: vault.health.standby
          delay: '0'
          history: 7d
          description: 'Standby status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.standby
              error_handler: DISCARD_VALUE
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: e7e79cc09faa409dbe3fa74e1db4cb5f
          name: 'Vault: Version'
          type: DEPENDENT
          key: vault.health.version
          delay: '0'
          history: 7d
          trends: '0'
          value_type: CHAR
          description: 'Server version.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.version
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_health
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: ee9a561165b847c2a0719a767e5c4fe9
              expression: 'last(/HashiCorp Vault by HTTP/vault.health.version,#1)<>last(/HashiCorp Vault by HTTP/vault.health.version,#2) and length(last(/HashiCorp Vault by HTTP/vault.health.version))>0'
              name: 'Vault: Version has changed (new version: {ITEM.VALUE})'
              priority: INFO
              description: 'Vault version has changed. Ack to close.'
              manual_close: 'YES'
        -
          uuid: 77da3cf43b0d4a449399f3de6d5e8477
          name: 'Vault: HA enabled'
          type: DEPENDENT
          key: vault.leader.ha_enabled
          delay: '0'
          history: 7d
          description: 'HA enabled status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.ha_enabled
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_leader
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: ea6a7f625c144dc6beff71d3a19004ab
          name: 'Vault: Is leader'
          type: DEPENDENT
          key: vault.leader.is_self
          delay: '0'
          history: 7d
          description: 'Leader status.'
          valuemap:
            name: 'Vault flag'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.is_self
            -
              type: BOOL_TO_DECIMAL
              parameters:
                - ''
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.get_leader
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: f23cbc80bf2d4064bf45cc27f6ec752e
          name: 'Vault: Audit log request failures, rate'
          type: DEPENDENT
          key: vault.metrics.audit.log.request.failure.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of audit log request failures.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_audit_log_request_failure
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 33f2ce934ae5451dace5f880b3a2e6b7
          name: 'Vault: Audit log requests, rate'
          type: DEPENDENT
          key: vault.metrics.audit.log.request.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: rps
          description: 'Number of all audit log requests across all audit log devices.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_audit_log_request_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 6b8b37e62e374bc38994c5dcc6f0fc6d
          name: 'Vault: Audit log response failures, rate'
          type: DEPENDENT
          key: vault.metrics.audit.log.response.failure.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of audit log response failures.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_audit_log_response_failure
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: c336a5cecd4641b58be6ab1ba511f6ef
          name: 'Vault: Audit log response, rate'
          type: DEPENDENT
          key: vault.metrics.audit.log.response.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: rps
          description: 'Number of audit log responses across all audit log devices.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_audit_log_response_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: e1d11f77e8394b22b88ddcf9a1b8159b
          name: 'Vault: Barrier DELETE ops, rate'
          type: DEPENDENT
          key: vault.metrics.barrier.delete.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of DELETE operations at the barrier.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_barrier_delete_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 8a854323d051485091917391c630cc28
          name: 'Vault: Barrier LIST ops, rate'
          type: DEPENDENT
          key: vault.metrics.barrier.list.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of LIST operations at the barrier.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_barrier_list_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 1dbf0413b1574f6e9b04abe5d06ab8aa
          name: 'Vault: Barrier PUT ops, rate'
          type: DEPENDENT
          key: vault.metrics.barrier.put.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of PUT operations at the barrier.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_barrier_put_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: f0069229811749e5b399f1214176ae11
          name: 'Vault: Cache hit, rate'
          type: DEPENDENT
          key: vault.metrics.cache.hit.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of times a value was retrieved from the LRU cache.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_cache_hit
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 4df07a4ea4a048c7bc11b21b56cf96c6
          name: 'Vault: Cache miss, rate'
          type: DEPENDENT
          key: vault.metrics.cache.miss.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of times a value was not in the LRU cache. The results in a read from the configured storage.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_cache_miss
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: d99841c57aa349ae8676072e12add35c
          name: 'Vault: Cache write, rate'
          type: DEPENDENT
          key: vault.metrics.cache.write.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of times a value was written to the LRU cache.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_cache_write
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 004f1eebd08c46d4bbdab7a6c6e3f3ec
          name: 'Vault: Check token, rate'
          type: DEPENDENT
          key: vault.metrics.core.check.token.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of token checks handled by Vault corecore.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_check_token_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 77bf09bd2b554e5a8d0dde53045f05c7
          name: 'Vault: Fetch ACL and token, rate'
          type: DEPENDENT
          key: vault.metrics.core.fetch.acl_and_token
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of ACL and corresponding token entry fetches handled by Vault core.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_fetch_acl_and_token_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 4ddf18c7768147a396fe13608b5508fb
          name: 'Vault: Requests, rate'
          type: DEPENDENT
          key: vault.metrics.core.handle.request
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of requests handled by Vault core.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_handle_request_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 2aa54d38cc2541e3ae4df89e86d63d20
          name: 'Vault: Leadership setup failed, counter'
          type: DEPENDENT
          key: vault.metrics.core.leadership.setup_failed
          delay: '0'
          history: 7d
          description: 'Cluster leadership setup failures which have occurred in a highly available Vault cluster.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_core_leadership_setup_failed
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_core_leadership_setup_failed")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: c68ab0c784314291bde1cc8693fd5959
              expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.leadership.setup_failed,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.leadership.setup_failed,1h))>{$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN}'
              name: 'Vault: High frequency of leadership setup failures (over {$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN} for 1h)'
              priority: AVERAGE
              description: 'There have been more than {$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN} Vault leadership setup failures in the past 1h.'
        -
          uuid: f0ca68774b5842d7803d2c2619958184
          name: 'Vault: Leadership setup lost, counter'
          type: DEPENDENT
          key: vault.metrics.core.leadership_lost
          delay: '0'
          history: 7d
          description: 'Cluster leadership losses which have occurred in a highly available Vault cluster.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_core_leadership_lost_count
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_core_leadership_lost_count")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: 8d7f4f51272a4ce5a3a7ab9642e51d63
              expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.leadership_lost,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.leadership_lost,1h))>{$VAULT.LEADERSHIP.LOSSES.MAX.WARN}'
              name: 'Vault: High frequency of leadership losses (over {$VAULT.LEADERSHIP.LOSSES.MAX.WARN} for 1h)'
              priority: AVERAGE
              description: 'There have been more than {$VAULT.LEADERSHIP.LOSSES.MAX.WARN} Vault leadership losses in the past 1h.'
        -
          uuid: 2bdb273b513d4a06914cd6ea11ac2368
          name: 'Vault: Post-unseal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.post_unseal
          delay: '0'
          history: 7d
          description: 'Duration of time taken by post-unseal operations handled by Vault core.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_post_unseal_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 81738d2323a94aa8a7f2b1d9721ac9f9
          name: 'Vault: Pre-seal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.pre_seal
          delay: '0'
          history: 7d
          description: 'Duration of time taken by pre-seal operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_pre_seal_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 42d7e5c3d5b24a65b9821e1aaf0df2a0
          name: 'Vault: Seal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.seal
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Duration of time taken by seal operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_seal_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 95f6ab7294c547e7976a292447ef31fb
          name: 'Vault: Internal seal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.seal_internal
          delay: '0'
          history: 7d
          description: 'Duration of time taken by internal seal operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_seal_internal_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: e0ecf5aa8c2a4e0886b5a12588839efd
          name: 'Vault: Requested seal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.seal_with_request
          delay: '0'
          history: 7d
          description: 'Duration of time taken by requested seal operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_seal_with_request_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 1d66f20a1d594b4fa7c81849b83a4ef9
          name: 'Vault: Leadership step downs, counter'
          type: DEPENDENT
          key: vault.metrics.core.step_down
          delay: '0'
          history: 7d
          description: 'Cluster leadership step down.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_core_step_down_count
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_core_step_down_count")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: 5f2895eb5a94441f858c573584ec8b19
              expression: '(max(/HashiCorp Vault by HTTP/vault.metrics.core.step_down,1h)-min(/HashiCorp Vault by HTTP/vault.metrics.core.step_down,1h))>{$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN}'
              name: 'Vault: High frequency of leadership step downs (over {$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN} for 1h)'
              priority: AVERAGE
              description: 'There have been more than {$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN} Vault leadership step downs in the past 1h.'
        -
          uuid: 075c83114d1746b6b773579404e0268d
          name: 'Vault: Unseal ops, counter'
          type: DEPENDENT
          key: vault.metrics.core.unseal
          delay: '0'
          history: 7d
          description: 'Duration of time taken by unseal operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_core_unseal_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 5edebc9e295844ee8716d2b17152bdd9
          name: 'Vault: Fetch lease times, counter'
          type: DEPENDENT
          key: vault.metrics.expire.fetch.lease.times
          delay: '0'
          history: 7d
          description: 'Time taken to fetch lease times.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_fetch_lease_times_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 7f3ab929e48848e294cfa68b8e1783ad
          name: 'Vault: Fetch lease times by token, counter'
          type: DEPENDENT
          key: vault.metrics.expire.fetch.lease.times.by_token
          delay: '0'
          history: 7d
          description: 'Time taken to fetch lease times by token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_fetch_lease_times_by_token_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 66f1855a47624f10ae69735053e326f1
          name: 'Vault: Number of expiring leases'
          type: DEPENDENT
          key: vault.metrics.expire.num_leases
          delay: '0'
          history: 7d
          description: 'Number of all leases which are eligible for eventual expiry.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_num_leases
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: b160780f06c846809f7aca043777754f
          name: 'Vault: Register ops, count'
          type: DEPENDENT
          key: vault.metrics.expire.register
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken for register operations.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_register_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 89dcbfb69b8a44dcbf330d16d292ec1b
          name: 'Vault: Register auth ops, count'
          type: DEPENDENT
          key: vault.metrics.expire.register.auth
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken for register authentication operations which create lease entries without lease ID.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_register_auth_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 2d418cd62ada44c6bd527db8da0731e1
          name: 'Vault: Expire renew, count'
          type: DEPENDENT
          key: vault.metrics.expire.renew
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to renew a lease.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_renew_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 091c66e0f2794a72a97ddfc3a7142b72
          name: 'Vault: Renew token, count'
          type: DEPENDENT
          key: vault.metrics.expire.renew_token
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to renew a token which does not need to invoke a logical backend.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_renew_token_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 21a1b8470a31484da1e3fd76d3c8094b
          name: 'Vault: Expire revoke, count'
          type: DEPENDENT
          key: vault.metrics.expire.revoke
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to revoke a token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_revoke_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: bc023bdad9504a86b17d2308db62e98f
          name: 'Vault: Revoke secrets by token, count'
          type: DEPENDENT
          key: vault.metrics.expire.revoke.by_token
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to revoke all secrets issued with a given token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_revoke_by_token_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 6bed679f33b4415d833cb5033c5f824c
          name: 'Vault: Expire revoke force, count'
          type: DEPENDENT
          key: vault.metrics.expire.revoke.force
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to forcibly revoke a token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_revoke_force_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 93041bd251d148c39e6e2e162f6f1078
          name: 'Vault: Expire revoke prefix, count'
          type: DEPENDENT
          key: vault.metrics.expire.revoke.prefix
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Tokens revoke on a prefix.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_expire_revoke_prefix_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 5c3e5032315e466e81fca67ea880b33a
          name: 'Vault: Policy DELETE ops, rate'
          type: DEPENDENT
          key: vault.metrics.policy.delete_policy.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of operations to delete a policy.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_policy_delete_policy_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: bd790a83c48e4ea6bcc9271703036101
          name: 'Vault: Policy GET ops, rate'
          type: DEPENDENT
          key: vault.metrics.policy.get_policy.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of operations to get a policy.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_policy_get_policy_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 6650bc3487934dcebc2e1f4da2e1db13
          name: 'Vault: Policy LIST ops, rate'
          type: DEPENDENT
          key: vault.metrics.policy.list_policies.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of operations to list policies.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_policy_list_policies_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: c8010706f8274e898812b722a82e9add
          name: 'Vault: Policy SET ops, rate'
          type: DEPENDENT
          key: vault.metrics.policy.set_policy.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of operations to set a policy.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_policy_set_policy_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: d7602cb55879403982afeabecb4c130a
          name: 'Vault: Process CPU seconds, total'
          type: DEPENDENT
          key: vault.metrics.process.cpu.seconds.total
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: s
          description: 'Total user and system CPU time spent in seconds.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_cpu_seconds_total
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 095af4564c5445c0be7ad38811404535
          name: 'Vault: Open file descriptors, max'
          type: DEPENDENT
          key: vault.metrics.process.max.fds
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Maximum number of open file descriptors.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_max_fds
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 0b2c6c947c46409b93acea8e67a0f058
          name: 'Vault: Open file descriptors, current'
          type: DEPENDENT
          key: vault.metrics.process.open.fds
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of open file descriptors.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_open_fds
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: ddd6b5b8206442a7b5f0026e82bc2bd2
          name: 'Vault: Process resident memory'
          type: DEPENDENT
          key: vault.metrics.process.resident_memory.bytes
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: B
          description: 'Resident memory size in bytes.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_resident_memory_bytes
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 241f8503d30c41df9e902cf31ddf715e
          name: 'Vault: Uptime'
          type: DEPENDENT
          key: vault.metrics.process.uptime
          delay: '0'
          history: 7d
          units: s
          description: 'Server uptime.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_start_time_seconds
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: JAVASCRIPT
              parameters:
                - 'return Math.floor(Date.now()/1000 - Number(value));'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
          triggers:
            -
              uuid: a60eed70ecbc44fa935ec87d83fe4793
              expression: 'last(/HashiCorp Vault by HTTP/vault.metrics.process.uptime)<10m'
              name: 'Vault: has been restarted (uptime < 10m)'
              priority: INFO
              description: 'Uptime is less than 10 minutes'
              manual_close: 'YES'
        -
          uuid: bf3a561bc96b46fc9a818a9f43c57be5
          name: 'Vault: Process virtual memory, current'
          type: DEPENDENT
          key: vault.metrics.process.virtual_memory.bytes
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: B
          description: 'Virtual memory size in bytes.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_virtual_memory_bytes
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 17c568d745534c218dc292043234b215
          name: 'Vault: Process virtual memory, max'
          type: DEPENDENT
          key: vault.metrics.process.virtual_memory.max.bytes
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: B
          description: 'Maximum amount of virtual memory available in bytes.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - process_virtual_memory_max_bytes
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 58e6fbc8a6084008b08c7fc03ad4a703
          name: 'Vault: Runtime allocated bytes'
          type: DEPENDENT
          key: vault.metrics.runtime.alloc.bytes
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: B
          description: 'Number of bytes allocated by the Vault process. This could burst from time to time, but should return to a steady state value.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_alloc_bytes
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 3b2208b0248b4288ad91a8a5e3090b29
          name: 'Vault: Runtime freed objects'
          type: DEPENDENT
          key: vault.metrics.runtime.free.count
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of freed objects.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_free_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: c1a159a37d4e4130a4a19d0ded2b0b72
          name: 'Vault: Runtime heap objects'
          type: DEPENDENT
          key: vault.metrics.runtime.heap.objects
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of objects on the heap. This is a good general memory pressure indicator worth establishing a baseline and thresholds for alerting.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_heap_objects
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: f8f0f80be7514fe5b085f04858ac4d7a
          name: 'Vault: Runtime malloc count'
          type: DEPENDENT
          key: vault.metrics.runtime.malloc.count
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Cumulative count of allocated heap objects.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_malloc_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: b728e92f88db47308272eff7e3bb8c08
          name: 'Vault: Runtime num goroutines'
          type: DEPENDENT
          key: vault.metrics.runtime.num_goroutines
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of goroutines. This serves as a general system load indicator worth establishing a baseline and thresholds for alerting.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_num_goroutines
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 9af322bade374b45b78d949e632747a8
          name: 'Vault: Runtime sys bytes'
          type: DEPENDENT
          key: vault.metrics.runtime.sys.bytes
          delay: '0'
          history: 7d
          value_type: FLOAT
          units: B
          description: 'Number of bytes allocated to Vault. This includes what is being used by Vault''s heap and what has been reclaimed but not given back to the operating system.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_sys_bytes
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 38f50f3173c346cebe6e321347e0270f
          name: 'Vault: Runtime GC runs, total'
          type: DEPENDENT
          key: vault.metrics.runtime.total.gc.runs
          delay: '0'
          history: 7d
          description: 'Total number of garbage collection runs since Vault was last started.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_total_gc_runs
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 20f0708b63784c4190e8e6256f2d57f3
          name: 'Vault: Secret kv entries'
          type: DEPENDENT
          key: vault.metrics.secret.kv.count
          delay: '0'
          history: 7d
          description: 'Number of entries in each key-value secret engine.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_secret_kv_count
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_secret_kv_count")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 568b4b77ae58468da7bb407d349bd330
          name: 'Vault: Token secret lease creation, rate'
          type: DEPENDENT
          key: vault.metrics.secret.lease.creation.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Counts the number of leases created by secret engines.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_secret_lease_creation
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_secret_lease_creation")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 37576dbac47349fca97fe27c4906124d
          name: 'Vault: Token count, total'
          type: DEPENDENT
          key: vault.metrics.token
          delay: '0'
          history: 7d
          description: 'Total number of service tokens available for use; counts all un-expired and un-revoked tokens in Vault''s token store. This measurement is performed every 10 minutes.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_token_count
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_token_count")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 4c7ae38abae146fdbaf334501b3644f1
          name: 'Vault: Token count by auth, total'
          type: DEPENDENT
          key: vault.metrics.token.by_auth
          delay: '0'
          history: 7d
          description: 'Total number of service tokens that were created by a auth method.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_token_count_by_auth
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_token_count_by_auth")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 2f9011a7dd6f4b078402dbb50256ee0a
          name: 'Vault: Token count by policy, total'
          type: DEPENDENT
          key: vault.metrics.token.by_policy
          delay: '0'
          history: 7d
          description: 'Total number of service tokens that have a policy attached.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_token_count_by_policy
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_token_count_by_policy")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: c5b512233ae745c390d85e604bf7449e
          name: 'Vault: Token count by ttl, total'
          type: DEPENDENT
          key: vault.metrics.token.by_ttl
          delay: '0'
          history: 7d
          description: 'Number of service tokens, grouped by the TTL range they were assigned at creation.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_token_count_by_ttl
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_token_count_by_ttl")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 1a203f57eb0647ca98a848913bb5b707
          name: 'Vault: Token create, count'
          type: DEPENDENT
          key: vault.metrics.token.create
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'The time taken to create a token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_create_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 0033d69a310041e58107e06a296492bd
          name: 'Vault: Token createAccessor, count'
          type: DEPENDENT
          key: vault.metrics.token.createAccessor
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'The time taken to create a token accessor.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_createAccessor_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 3c73e0cdfe4147abb86ce939189e4cec
          name: 'Vault: Token creation, rate'
          type: DEPENDENT
          key: vault.metrics.token.creation.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of service or batch tokens created.'
          preprocessing:
            -
              type: PROMETHEUS_TO_JSON
              parameters:
                - vault_token_creation
            -
              type: JSONPATH
              parameters:
                - '$[?(@.name=="vault_token_creation")].value.sum()'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: ad0c38837e774d9b8164bad51ae9fd4c
          name: 'Vault: Token lookup, rate'
          type: DEPENDENT
          key: vault.metrics.token.lookup.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of token look up.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_lookup_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 0d30ca2565b24659839e7e31fc8f6739
          name: 'Vault: Token revoke, count'
          type: DEPENDENT
          key: vault.metrics.token.revoke
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'The time taken to look up a token.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_revoke_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: c851263be6d94ab39b548a57bbad4eab
          name: 'Vault: Token revoke tree, count'
          type: DEPENDENT
          key: vault.metrics.token.revoke.tree
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to revoke a token tree.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_revoke_tree_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 830ff368911c4532b10ff1e8c6c9e59b
          name: 'Vault: Token store, count'
          type: DEPENDENT
          key: vault.metrics.token.store
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Time taken to store an updated token entry without writing to the secondary index.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_token_store_count
                - value
                - ''
              error_handler: DISCARD_VALUE
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: 2f0e733e6b1c406b88d012e727ab0169
          name: 'Vault: Runtime GC pause, total'
          type: DEPENDENT
          key: vault.metrics.total.gc.pause
          delay: '0'
          history: 7d
          units: s
          description: 'The total garbage collector pause time since Vault was last started.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_runtime_total_gc_pause_ns
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: MULTIPLIER
              parameters:
                - '1.0E-9'
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
        -
          uuid: f616fbcd3d20456bb34cde735cf7fad5
          name: 'Vault: Barrier GET ops, rate'
          type: DEPENDENT
          key: vault.metrics.vault.barrier.get.rate
          delay: '0'
          history: 7d
          value_type: FLOAT
          description: 'Number of GET operations at the barrier.'
          preprocessing:
            -
              type: PROMETHEUS_PATTERN
              parameters:
                - vault_barrier_get_count
                - value
                - ''
              error_handler: DISCARD_VALUE
            -
              type: CHANGE_PER_SECOND
              parameters:
                - ''
          master_item:
            key: vault.clear_metrics
          tags:
            -
              tag: Application
              value: Vault
      discovery_rules:
        -
          uuid: ca7bbea60da54770b164ee11d9cd325f
          name: 'Mountpoint metrics discovery'
          type: DEPENDENT
          key: vault.mountpoint.discovery
          delay: '0'
          description: 'Mountpoint metrics discovery.'
          item_prototypes:
            -
              uuid: 3956d1e526d944c7b68d09a1cf52f11e
              name: 'Vault: Rollback attempt [{#MOUNTPOINT}] ops, rate'
              type: DEPENDENT
              key: 'vault.metrics.rollback.attempt.rate[{#MOUNTPOINT}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of operations to perform a rollback operation on the given mount point.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - '{#PATTERN_C}'
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Mountpoint {#MOUNTPOINT}'
            -
              uuid: e0a4232e6a20433ba26e4313ff9ec1bc
              name: 'Vault: Route rollback [{#MOUNTPOINT}] ops, rate'
              type: DEPENDENT
              key: 'vault.metrics.route.rollback.rate[{#MOUNTPOINT}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of operations to dispatch a rollback operation to a backend, and for that backend to process it. Rollback operations are automatically scheduled to clean up partial errors.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - '{#PATTERN_C}'
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Mountpoint {#MOUNTPOINT}'
          master_item:
            key: vault.check_mountpoint_discovery
        -
          uuid: f2015f2394a64e7e923a2030400bcd69
          name: 'Replication metrics discovery'
          type: DEPENDENT
          key: vault.replication.discovery
          delay: '0'
          description: 'Discovery for replication metrics.'
          item_prototypes:
            -
              uuid: af047eca9606472680288e5b5703bca9
              name: 'Vault: Stream WAL guard found, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.logshipper.streamWALs.guard_found[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of incidences where the starting Merkle Tree index used to begin streaming WAL entries is matched/found.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - logshipper_streamWALs_guard_found
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: df61d6db369540fd9934648189e9175a
              name: 'Vault: Stream WAL missing guard, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.logshipper.streamWALs.missing_guard[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of incidences where the starting Merkle Tree index used to begin streaming WAL entries is not matched/found.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - logshipper_streamWALs_missing_guard
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: 288ffb2cd8bc45f39a7e6d98a2100022
              name: 'Vault: Last remote WAL{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.replication.fsm.last_remote_wal[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'The index of the last remote WAL.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - replication_fsm_last_remote_wal
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: ca9c56e53093436f99a6a80f499aac45
              name: 'Vault: Merkle commit index{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.replication.merkle.commit_index[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'The last committed index in the Merkle Tree.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - replication_merkle_commit_index
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: 854a4541b78c4df6b9d4971d71c7df49
              name: 'Vault: Last DR WAL{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.replication.wal.last_dr_wal[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'The index of the last DR WAL.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - replication_wal_last_dr_wal
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: 5aed3273a8c24236817f8bd3b5860f87
              name: 'Vault: Last performance WAL{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.replication.wal.last_performance_wal[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'The index of the last Performance WAL.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - replication_wal_last_performance_wal
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
            -
              uuid: f5bcef9569f44212b813cc0ec821b1ea
              name: 'Vault: Last WAL{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.replication.wal.last_wal[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'The index of the last WAL.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - replication_wal_last_wal
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Replication'
          master_item:
            key: vault.check_replication_discovery
        -
          uuid: ef703fedc3b347e9bb878d159d6756d8
          name: 'Storage metrics discovery'
          type: DEPENDENT
          key: vault.storage.discovery
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#STORAGE}'
                value: '{$VAULT.LLD.FILTER.STORAGE.MATCHES}'
                formulaid: A
          description: 'Storage backend metrics discovery.'
          item_prototypes:
            -
              uuid: 0cdb0bcf0ff448ff8c5d673f9b66d17a
              name: 'Vault: Storage [{#STORAGE}] {#OPERATION} ops, rate'
              type: DEPENDENT
              key: 'vault.metrics.storage.rate[{#STORAGE}, {#OPERATION}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of a {#OPERATION} operation against the {#STORAGE} storage backend.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - '{#PATTERN_C}'
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: Storage {#STORAGE}'
          master_item:
            key: vault.check_storage_discovery
        -
          uuid: d580dee4c0bc4a0db91c9c5af70965af
          name: 'Token metrics discovery'
          type: DEPENDENT
          key: vault.tokens.discovery
          delay: '0'
          description: 'Tokens metrics discovery.'
          item_prototypes:
            -
              uuid: 9a9359e74c3a48b1bbada84d772e665a
              name: 'Vault: Token [{#TOKEN_NAME}] error'
              type: DEPENDENT
              key: 'vault.token_via_accessor.error["{#ACCESSOR}"]'
              delay: '0'
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 'Token lookup error text.'
              valuemap:
                name: 'Vault flag'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$.[?(@.accessor == "{#ACCESSOR}")].error.first()'
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: vault.get_tokens
              tags:
                -
                  tag: Application
                  value: 'Vault: Token {#TOKEN_NAME}'
              trigger_prototypes:
                -
                  uuid: 8cd5d903d4e74974a8469554b737ee3d
                  expression: 'length(last(/HashiCorp Vault by HTTP/vault.token_via_accessor.error["{#ACCESSOR}"]))>0'
                  name: 'Vault: Token [{#TOKEN_NAME}] lookup error occurred'
                  priority: WARNING
                  dependencies:
                    -
                      name: 'Vault: Vault server is sealed'
                      expression: 'last(/HashiCorp Vault by HTTP/vault.health.sealed)=1'
            -
              uuid: caa3f9ca96b14b929dd75238602fead9
              name: 'Vault: Token [{#TOKEN_NAME}] has TTL'
              type: DEPENDENT
              key: 'vault.token_via_accessor.has_ttl["{#ACCESSOR}"]'
              delay: '0'
              history: 7d
              description: 'The Token has TTL.'
              valuemap:
                name: 'Vault flag'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$.[?(@.accessor == "{#ACCESSOR}")].has_ttl.first()'
                -
                  type: BOOL_TO_DECIMAL
                  parameters:
                    - ''
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: vault.get_tokens
              tags:
                -
                  tag: Application
                  value: 'Vault: Token {#TOKEN_NAME}'
            -
              uuid: 0f872d9d811c44f6a9a9f8f5089ca0a1
              name: 'Vault: Token [{#TOKEN_NAME}] TTL'
              type: DEPENDENT
              key: 'vault.token_via_accessor.ttl["{#ACCESSOR}"]'
              delay: '0'
              history: 7d
              units: s
              description: 'The TTL period of the token.'
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '$.[?(@.accessor == "{#ACCESSOR}")].ttl.first()'
              master_item:
                key: vault.get_tokens
              tags:
                -
                  tag: Application
                  value: 'Vault: Token {#TOKEN_NAME}'
          trigger_prototypes:
            -
              uuid: f4f0db7e26d9470a86d11e86d1ae26e2
              expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.CRIT}'
              name: 'Vault: Token [{#TOKEN_NAME}] will expire soon (less than {$VAULT.TOKEN.TTL.MIN.CRIT})'
              priority: AVERAGE
            -
              uuid: 0e2143a2a46d44778db34ac9af69bbfc
              expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.WARN}'
              name: 'Vault: Token [{#TOKEN_NAME}] will expire soon (less than {$VAULT.TOKEN.TTL.MIN.WARN})'
              priority: WARNING
              dependencies:
                -
                  name: 'Vault: Token [{#TOKEN_NAME}] will expire soon (less than {$VAULT.TOKEN.TTL.MIN.CRIT})'
                  expression: 'last(/HashiCorp Vault by HTTP/vault.token_via_accessor.has_ttl["{#ACCESSOR}"])=1 and last(/HashiCorp Vault by HTTP/vault.token_via_accessor.ttl["{#ACCESSOR}"])<{$VAULT.TOKEN.TTL.MIN.CRIT}'
          master_item:
            key: vault.get_tokens
          lld_macro_paths:
            -
              lld_macro: '{#ACCESSOR}'
              path: $.accessor
            -
              lld_macro: '{#TOKEN_NAME}'
              path: $.token_name
        -
          uuid: ce7b2bb4c09c42d5a4b9e92c1c3dee23
          name: 'WAL metrics discovery'
          type: DEPENDENT
          key: vault.wal.discovery
          delay: '0'
          description: 'Discovery for WAL metrics.'
          item_prototypes:
            -
              uuid: 7e21309d1778466cae08e6424108d0e9
              name: 'Vault: Delete WALs, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.deletewals[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Time taken to delete a Write Ahead Log (WAL).'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_deletewals_count
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
            -
              uuid: 80d5a79d35bc4b3a970f311b0c8c3fbf
              name: 'Vault: Flush ready WAL, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.flushready[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Time taken to flush a ready Write Ahead Log (WAL) to storage.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_flushready_count
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
            -
              uuid: daee033751164b6591d326d2d59b7e3a
              name: 'Vault: GC deleted WAL{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.gc.deleted[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Number of Write Ahead Logs (WAL) deleted during each garbage collection run.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_gc_deleted
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
            -
              uuid: b45b43ac739246719e517d04eb384787
              name: 'Vault: WALs on disk, total{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.gc.total[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Total Number of Write Ahead Logs (WAL) on disk.'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_gc_total
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
            -
              uuid: b1e306d6136a4b6d933bd2154b3d5d6e
              name: 'Vault: Load WALs, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.loadWAL[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Time taken to load a Write Ahead Log (WAL).'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_loadWAL_count
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
            -
              uuid: de8fea26aa1546d2bdf1ec7dd5205a3b
              name: 'Vault: Persist WALs, count{#SINGLETON}'
              type: DEPENDENT
              key: 'vault.metrics.wal.persistwals[{#SINGLETON}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              description: 'Time taken to persist a Write Ahead Log (WAL).'
              preprocessing:
                -
                  type: PROMETHEUS_PATTERN
                  parameters:
                    - vault_wal_persistwals_count
                    - value
                    - ''
                  error_handler: DISCARD_VALUE
              master_item:
                key: vault.clear_metrics
              tags:
                -
                  tag: Application
                  value: 'Vault: WAL'
          master_item:
            key: vault.check_wal_discovery
      macros:
        -
          macro: '{$VAULT.API.PORT}'
          value: '8200'
          description: 'Vault port.'
        -
          macro: '{$VAULT.API.SCHEME}'
          value: http
          description: 'Vault API scheme.'
        -
          macro: '{$VAULT.HOST}'
          value: '<PUT YOUR VAULT HOST>'
          description: 'Vault host name.'
        -
          macro: '{$VAULT.LEADERSHIP.LOSSES.MAX.WARN}'
          value: '5'
          description: 'Maximum number of Vault leadership losses.'
        -
          macro: '{$VAULT.LEADERSHIP.SETUP.FAILED.MAX.WARN}'
          value: '5'
          description: 'Maximum number of Vault leadership setup failed.'
        -
          macro: '{$VAULT.LEADERSHIP.STEPDOWNS.MAX.WARN}'
          value: '5'
          description: 'Maximum number of Vault leadership step downs.'
        -
          macro: '{$VAULT.LLD.FILTER.STORAGE.MATCHES}'
          value: .+
          description: 'Filter of discoverable storage backends.'
        -
          macro: '{$VAULT.OPEN.FDS.MAX.WARN}'
          value: '90'
          description: 'Maximum percentage of used file descriptors for trigger expression.'
        -
          macro: '{$VAULT.TOKEN}'
          value: '<PUT YOUR AUTH TOKEN>'
          description: 'Vault auth token.'
        -
          macro: '{$VAULT.TOKEN.ACCESSORS}'
          description: 'Vault accessors separated by spaces for monitoring token expiration time.'
        -
          macro: '{$VAULT.TOKEN.TTL.MIN.CRIT}'
          value: 3d
          description: 'Token TTL critical threshold.'
        -
          macro: '{$VAULT.TOKEN.TTL.MIN.WARN}'
          value: 7d
          description: 'Token TTL warning threshold.'
      valuemaps:
        -
          uuid: 547a6b8002d44a8f8f363023c6097b1e
          name: 'Service state'
          mappings:
            -
              value: '0'
              newvalue: Down
            -
              value: '1'
              newvalue: Up
        -
          uuid: 46edbd58c7384b53bb31775244c23343
          name: 'Vault flag'
          mappings:
            -
              value: '0'
              newvalue: 'False'
            -
              value: '1'
              newvalue: 'True'
  triggers:
    -
      uuid: ebe6f65e82ed4f00bd7c5be30841a25c
      expression: 'min(/HashiCorp Vault by HTTP/vault.metrics.process.open.fds,5m)/last(/HashiCorp Vault by HTTP/vault.metrics.process.max.fds)*100>{$VAULT.OPEN.FDS.MAX.WARN}'
      name: 'Vault: Current number of open files is too high (over {$VAULT.OPEN.FDS.MAX.WARN}% for 5m)'
      priority: WARNING
  graphs:
    -
      uuid: b4fc517d099340558fe813c6fb8c6be2
      name: 'Vault: Cache rate'
      graph_items:
        -
          drawtype: BOLD_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.cache.hit.rate
        -
          sortorder: '1'
          drawtype: BOLD_LINE
          color: 2774A4
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.cache.miss.rate
        -
          sortorder: '2'
          drawtype: BOLD_LINE
          color: F63100
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.cache.write.rate
    -
      uuid: 81fa6888cef7496eb46a15f11e8a238c
      name: 'Vault: Expiring leases'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.expire.num_leases
    -
      uuid: a96e30071bef4da6839e405ae5b183c5
      name: 'Vault: K/V secret engine entries'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.secret.kv.count
    -
      uuid: e7e470ee9e914d4d9fc81b598889f873
      name: 'Vault: Requests rate'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 34bdeb
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.core.handle.request
    -
      uuid: 2e4eda3a71b74e14a0c4843a96a53dbc
      name: 'Vault: Runtime memory'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.runtime.alloc.bytes
        -
          sortorder: '1'
          drawtype: GRADIENT_LINE
          color: 2774A4
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.process.resident_memory.bytes
        -
          sortorder: '2'
          drawtype: BOLD_LINE
          color: F63100
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.process.virtual_memory.bytes
    -
      uuid: db2043aa454a440995a178e342d3eca5
      name: 'Vault: Token checks'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.core.check.token.rate
    -
      uuid: 39770778f73c49b0a333d313b76f4020
      name: 'Vault: Token lookup'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.token.lookup.rate
    -
      uuid: 6b23dff0bd364416b520cca9dab56b47
      name: 'Vault: Tokens count'
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'HashiCorp Vault by HTTP'
            key: vault.metrics.token