Skip to content

Commit 2d407bd

Browse files
authored
feat: Add otlp attribute deployment.environment.name to list of default labels (#14747)
1 parent 76bc184 commit 2d407bd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

‎docs/sources/send-data/otel/_index.md

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Since the OpenTelemetry protocol differs from the Loki storage model, here is ho
7979
- cloud.region
8080
- container.name
8181
- deployment.environment
82+
- deployment.environment.name
8283
- k8s.cluster.name
8384
- k8s.container.name
8485
- k8s.cronjob.name

‎docs/sources/shared/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,7 @@ write_failures_logging:
22642264
otlp_config:
22652265
# List of default otlp resource attributes to be picked as index labels
22662266
# CLI flag: -distributor.otlp.default_resource_attributes_as_index_labels
2267-
[default_resource_attributes_as_index_labels: <list of strings> | default = [service.name service.namespace service.instance.id deployment.environment cloud.region cloud.availability_zone k8s.cluster.name k8s.namespace.name k8s.pod.name k8s.container.name container.name k8s.replicaset.name k8s.deployment.name k8s.statefulset.name k8s.daemonset.name k8s.cronjob.name k8s.job.name]]
2267+
[default_resource_attributes_as_index_labels: <list of strings> | default = [service.name service.namespace service.instance.id deployment.environment deployment.environment.name cloud.region cloud.availability_zone k8s.cluster.name k8s.namespace.name k8s.pod.name k8s.container.name container.name k8s.replicaset.name k8s.deployment.name k8s.statefulset.name k8s.daemonset.name k8s.cronjob.name k8s.job.name]]
22682268
22692269
# Enable writes to Kafka during Push requests.
22702270
# CLI flag: -distributor.kafka-writes-enabled

‎pkg/loghttp/push/otlp_config.go

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (cfg *GlobalOTLPConfig) RegisterFlags(fs *flag.FlagSet) {
5656
"service.namespace",
5757
"service.instance.id",
5858
"deployment.environment",
59+
"deployment.environment.name",
5960
"cloud.region",
6061
"cloud.availability_zone",
6162
"k8s.cluster.name",

0 commit comments

Comments
 (0)