Gitlab runners job names within container name

Hi,

I would like to monitor utilization of cpu and memory for every job that is running from our gitlab runners hosted on AWS EKS cluster.

By enabling Container Insights, there is a possibility to gather from pod that metrics for cpu and memory utilization but I can only see pod names like:
runner-<runner_id>-project-<project_id>-concurrent-0-<random_id>

It would be very helpful for such monitoring and to gather statistics if I would also somehow include job name within pod name, so it would be like:
runner-<runner_id>-project-<project_id>-concurrent-0-<random_id>-<job_name>

Is it possible from runner’s configuration?

Regards,
Krzysztof

2 Likes

Hi! Did you find out any solutions?

Any updates? I’d love this

I could’t find a solution to change the container’s name for a GitLab Runner job. However, I was able to add a label to the container.

If you’re interested, you can reference my solution on docker - Could I change the container's name of GitLab runner's job? - Stack Overflow