Skip to content
New issue

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

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

Already on GitHub? # to your account

docker_stats: expose compose project (label) #26377

Closed
toxic0berliner opened this issue Sep 2, 2023 · 1 comment
Closed

docker_stats: expose compose project (label) #26377

toxic0berliner opened this issue Sep 2, 2023 · 1 comment
Labels
enhancement New feature or request needs triage New item requiring triage

Comments

@toxic0berliner
Copy link

Component(s)

No response

Is your feature request related to a problem? Please describe.

I'm trying to graph the cpu and ram usage of my containers and group/sum it by compose project.
For instance, I have a "auth" compose project with 2 containers in it, authelia and redis, I'd like to be able to make a graph and group by this.
I was doing this already with cadvisor that exposes for each container metric a container_label_com_docker_compose_project value.

Describe the solution you'd like

for each metric, expose the value of the docker label com.docker.compose.project as container_label_com_docker_compose_project

Describe alternatives you've considered

keep using cadvisor ;)

Additional context

No response

@toxic0berliner toxic0berliner added enhancement New feature or request needs triage New item requiring triage labels Sep 2, 2023
@toxic0berliner
Copy link
Author

My bad, only needed to add

container_labels_to_metric_labels:
  com.docker.compose.project: container_label_com_docker_compose_project

to the reciever config

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

1 participant