Skip to content

Commit

Permalink
feat: add app_name as a service label (#13660)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney authored Nov 1, 2024
1 parent 4419d0f commit f2a16f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,7 @@ The `limits_config` block configures global and per-tenant limits in Loki. The v
# list to service_name. If none of the configured labels exist in the stream,
# label is set to unknown_service. Empty list disables setting the label.
# CLI flag: -validation.discover-service-name
[discover_service_name: <list of strings> | default = [service app application name app_kubernetes_io_name container container_name k8s_container_name component workload job k8s_job_name]]
[discover_service_name: <list of strings> | default = [service app application app_name name app_kubernetes_io_name container container_name k8s_container_name component workload job k8s_job_name]]

# Discover and add log levels during ingestion, if not present already. Levels
# would be added to Structured Metadata with name
Expand Down
1 change: 1 addition & 0 deletions pkg/validation/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
"service",
"app",
"application",
"app_name",
"name",
"app_kubernetes_io_name",
"container",
Expand Down

0 comments on commit f2a16f4

Please sign in to comment.