Skip to content

Commit c217ea8

Browse files
committed
Caps
1 parent c0f32ac commit c217ea8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

collector/lib/CollectorStatsExporter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <iostream>
55
#include <math.h>
66

7+
#include <sys/capability.h>
8+
79
#include "Containers.h"
810
#include "EventNames.h"
911
#include "Logging.h"
@@ -105,6 +107,8 @@ class CollectorTimerGauge {
105107
};
106108

107109
void CollectorStatsExporter::run() {
110+
capng_clear(CAPNG_SELECT_BOTH);
111+
108112
auto& collectorEventCounters = prometheus::BuildGauge()
109113
.Name("rox_collector_events")
110114
.Help("Collector events")

0 commit comments

Comments
 (0)