Skip to content

Commit

Permalink
Docs and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Nov 25, 2024
1 parent 28e5b24 commit 7e9ad52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/sources/configure/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ and metrics with the Standard OpenTelemetry labels:
- `k8s.daemonset.name`
- `k8s.node.name`
- `k8s.pod.name`
- `k8s.container.name`
- `k8s.pod.uid`
- `k8s.pod.start_time`
- `k8s.cluster.name`
Expand Down
1 change: 1 addition & 0 deletions docs/sources/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ In order to configure which attributes to show or which attributes to hide, chec
| Application (all) | `k8s.node.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.owner.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.pod.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.container.name` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.pod.start_time` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.pod.uid` | shown if Kubernetes metadata is enabled |
| Application (all) | `k8s.replicaset.name` | shown if Kubernetes metadata is enabled |
Expand Down
1 change: 1 addition & 0 deletions docs/sources/setup/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Beyla can decorate your traces with the following Kubernetes labels:
- `k8s.daemonset.name`
- `k8s.node.name`
- `k8s.pod.name`
- `k8s.container.name`
- `k8s.pod.uid`
- `k8s.pod.start_time`
- `k8s.cluster.name`
Expand Down
3 changes: 2 additions & 1 deletion pkg/export/prom/prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const (

k8sNamespaceName = "k8s_namespace_name"
k8sPodName = "k8s_pod_name"
k8sContainerName = "k8s_container_name"
k8sDeploymentName = "k8s_deployment_name"
k8sStatefulSetName = "k8s_statefulset_name"
k8sReplicaSetName = "k8s_replicaset_name"
Expand Down Expand Up @@ -677,7 +678,7 @@ func (r *metricsReporter) observe(span *request.Span) {
}

func appendK8sLabelNames(names []string) []string {
names = append(names, k8sNamespaceName, k8sPodName, k8sNodeName, k8sPodUID, k8sPodStartTime,
names = append(names, k8sNamespaceName, k8sPodName, k8sContainerName, k8sNodeName, k8sPodUID, k8sPodStartTime,
k8sDeploymentName, k8sReplicaSetName, k8sStatefulSetName, k8sDaemonSetName, k8sClusterName)
return names
}
Expand Down

0 comments on commit 7e9ad52

Please sign in to comment.