File tree 2 files changed +2
-7
lines changed
vector/node/namespaced/resources
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ function on_timer(emit)
21
21
end
22
22
23
23
function process_event (event , emit )
24
- -- ensure that we don't mess with custom kube sources like "kubernetes_events"
25
- if event .metric .tags .component_id ~= " kubernetes_logs" then
26
- error ()
27
- end
28
-
29
24
local name = event .metric .name
30
25
local ns = event .metric .tags .pod_namespace
31
26
local pod = event .metric .tags .pod_name
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ transforms:
9
9
inputs :
10
10
- vector_metrics
11
11
route :
12
- received_bytes : .tags.component_type == "kubernetes_logs" && .name == "component_received_event_bytes_total"
13
- received_events : .tags.component_type == "kubernetes_logs" && .name == "component_received_events_total"
12
+ received_bytes : .tags.component_id == "kubernetes_logs" && .name == "component_received_event_bytes_total"
13
+ received_events : .tags.component_id == "kubernetes_logs" && .name == "component_received_events_total"
14
14
15
15
# Agreggate metrics by removing pod_name and pod_namespace labels
16
16
expensive_metrics_aggregator :
You can’t perform that action at this time.
0 commit comments