Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set service_name label for podLogs #1175

Merged
merged 6 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix test
  • Loading branch information
rlankfo committed Jan 31, 2025
commit b8cc39e72f80de6f8b1fbfa5922c6cb5efb2de4b
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ tests:
source_labels = ["__meta_kubernetes_pod_annotation_resource_opentelemetry_io_service_namespace"]
target_label = "service_namespace"
}

// set deployment_environment and deployment_environment_name
rule {
action = "replace"
@@ -292,7 +292,7 @@ tests:
source_labels = ["__meta_kubernetes_pod_annotation_resource_opentelemetry_io_service_namespace"]
target_label = "service_namespace"
}

// set deployment_environment and deployment_environment_name
rule {
action = "replace"
@@ -375,7 +375,7 @@ tests:

// Only keep the labels that are defined in the `keepLabels` list.
stage.label_keep {
values = ["app_kubernetes_io_name","container","instance","job","level","namespace","pod","service_name","service_namespace","deployment_environment","deployment_environment_name","integration"]
values = ["k8s_container_name","k8s_namespace","k8s_pod_name","k8s_pod_label_app_kubernetes_io_name","integration"]
}

forward_to = argument.logs_destinations.value
@@ -482,7 +482,7 @@ tests:
source_labels = ["__meta_kubernetes_pod_annotation_resource_opentelemetry_io_service_namespace"]
target_label = "service_namespace"
}

// set deployment_environment and deployment_environment_name
rule {
action = "replace"
@@ -680,7 +680,7 @@ tests:
source_labels = ["__meta_kubernetes_pod_annotation_resource_opentelemetry_io_service_namespace"]
target_label = "service_namespace"
}

// set deployment_environment and deployment_environment_name
rule {
action = "replace"