File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,9 @@ private function collectHistograms(): array
415
415
$ histograms = [];
416
416
foreach ($ keys as $ key ) {
417
417
$ raw = $ this ->redis ->hGetAll (str_replace ($ this ->redis ->_prefix ('' ), '' , $ key ));
418
+ if (!isset ($ raw ['__meta ' ])) {
419
+ continue ;
420
+ }
418
421
$ histogram = json_decode ($ raw ['__meta ' ], true );
419
422
unset($ raw ['__meta ' ]);
420
423
$ histogram ['samples ' ] = [];
@@ -595,6 +598,9 @@ private function collectGauges(bool $sortMetrics = true): array
595
598
$ gauges = [];
596
599
foreach ($ keys as $ key ) {
597
600
$ raw = $ this ->redis ->hGetAll (str_replace ($ this ->redis ->_prefix ('' ), '' , $ key ));
601
+ if (!isset ($ raw ['__meta ' ])) {
602
+ continue ;
603
+ }
598
604
$ gauge = json_decode ($ raw ['__meta ' ], true );
599
605
unset($ raw ['__meta ' ]);
600
606
$ gauge ['samples ' ] = [];
@@ -632,6 +638,9 @@ private function collectCounters(bool $sortMetrics = true): array
632
638
$ counters = [];
633
639
foreach ($ keys as $ key ) {
634
640
$ raw = $ this ->redis ->hGetAll (str_replace ($ this ->redis ->_prefix ('' ), '' , $ key ));
641
+ if (!isset ($ raw ['__meta ' ])) {
642
+ continue ;
643
+ }
635
644
$ counter = json_decode ($ raw ['__meta ' ], true );
636
645
unset($ raw ['__meta ' ]);
637
646
$ counter ['samples ' ] = [];
You can’t perform that action at this time.
0 commit comments