Skip to content

Commit f2a16f4

Browse files
feat: add app_name as a service label (#13660)
1 parent 4419d0f commit f2a16f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎docs/sources/shared/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ The `limits_config` block configures global and per-tenant limits in Loki. The v
33253325
# list to service_name. If none of the configured labels exist in the stream,
33263326
# label is set to unknown_service. Empty list disables setting the label.
33273327
# CLI flag: -validation.discover-service-name
3328-
[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]]
3328+
[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]]
33293329

33303330
# Discover and add log levels during ingestion, if not present already. Levels
33313331
# would be added to Structured Metadata with name

‎pkg/validation/limits.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
271271
"service",
272272
"app",
273273
"application",
274+
"app_name",
274275
"name",
275276
"app_kubernetes_io_name",
276277
"container",

0 commit comments

Comments
 (0)