File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
kubernetes-discovery/0-default Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ def discover_and_update
223223 'sources' => {
224224 'kubernetes_discovery_static_metrics' => {
225225 'type' => 'static_metrics' ,
226+ 'namespace' => '' , # Empty namespace to avoid "static_" prefix
226227 'metrics' => [
227228 {
228229 'name' => 'collector_kubernetes_discovered_pods' ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class VectorConfig
1010 sources:
1111 kubernetes_discovery_static_metrics:
1212 type: static_metrics
13+ namespace: '' # Empty namespace to avoid "static_" prefix
1314 metrics:
1415 - name: collector_kubernetes_discovered_pods
1516 kind: absolute
Original file line number Diff line number Diff line change 22sources :
33 kubernetes_discovery_static_metrics :
44 type : static_metrics
5+ namespace : ' ' # Empty namespace to avoid "static_" prefix
56 metrics :
67 - name : collector_kubernetes_discovered_pods
78 kind : absolute
You can’t perform that action at this time.
0 commit comments