You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Namespace name resource attribute for namespace phase metrics in k8scluster receiver seems to be always empty
Steps to Reproduce
Configure k8scluster receiver and configure pipeline to export metrics from it (for example via Prometheus exporter)
Expected Result
# HELP k8s_namespace_phase The current phase of namespaces (1 for active and 0 for terminating)
# TYPE k8s_namespace_phase gauge
k8s_namespace_phase{k8s_namespace_name="some-namespace-name",k8s_namespace_uid="17484d33-f8e6-4512-bebf-394de39a6278",opencensus_resourcetype="k8s"} 1
k8s_namespace_phase{k8s_namespace_name="other-namespace",k8s_namespace_uid="2a0d3510-f895-4cd9-84ff-cd8078cf7097",opencensus_resourcetype="k8s"} 1
k8s_namespace_phase{k8s_namespace_name="kube-system",k8s_namespace_uid="2ba798ae-2e10-45a1-bd73-60d892349123",opencensus_resourcetype="k8s"} 1
Actual Result
# HELP k8s_namespace_phase The current phase of namespaces (1 for active and 0 for terminating)
# TYPE k8s_namespace_phase gauge
k8s_namespace_phase{k8s_namespace_name="",k8s_namespace_uid="17484d33-f8e6-4512-bebf-394de39a6278",opencensus_resourcetype="k8s"} 1
k8s_namespace_phase{k8s_namespace_name="",k8s_namespace_uid="2a0d3510-f895-4cd9-84ff-cd8078cf7097",opencensus_resourcetype="k8s"} 1
k8s_namespace_phase{k8s_namespace_name="",k8s_namespace_uid="2ba798ae-2e10-45a1-bd73-60d892349123",opencensus_resourcetype="k8s"} 1
Collector version
v0.79.0
Environment information
Environment
OS: Ubuntu 22.04.2 LTS
Compiler(if manually compiled): go 1.20
Component(s)
receiver/k8scluster
What happened?
Description
Namespace name resource attribute for namespace phase metrics in k8scluster receiver seems to be always empty
Steps to Reproduce
Configure k8scluster receiver and configure pipeline to export metrics from it (for example via Prometheus exporter)
Expected Result
Actual Result
Collector version
v0.79.0
Environment information
Environment
OS: Ubuntu 22.04.2 LTS
Compiler(if manually compiled): go 1.20
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: