You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In Docker Swarm, the unit of aggregation I often care about is the total usage of a service per host.
This is currently not possible.
Describe the solution you'd like
Add a new attribute for the service name
Describe alternatives you've considered
grouping by container_image_name, host_name (from OTEL_RESOURCE_ATTRIBUTES): Close, but I could have different services using the same image and also, I am looking for the service name, so I would need to deduct the service name from the image name
Derive from container_name, e.g. via label_replace in PromQL: Works, but is quite a handful which I would need to use in each query instead of simply selecting the label. For reference: label_replace(container_memory_usage_total, "container_service_name", "$1", "container_name", "^([^.]+)\\..*")
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component(s)
receiver/dockerstats
Is your feature request related to a problem? Please describe.
In Docker Swarm, the unit of aggregation I often care about is the total usage of a service per host.
This is currently not possible.
Describe the solution you'd like
Add a new attribute for the service name
Describe alternatives you've considered
container_name
, e.g. vialabel_replace
in PromQL: Works, but is quite a handful which I would need to use in each query instead of simply selecting the label. For reference:label_replace(container_memory_usage_total, "container_service_name", "$1", "container_name", "^([^.]+)\\..*")
Additional context
No response
The text was updated successfully, but these errors were encountered: