Is there a way to add an Environment tag to nodes?

I see in the current iteration of PMM, at the top of the home dashboard in Grafana, there is an Environment dropdown. How exactly do I assign that tag to my nodes? I’ve done a bit of searching around the PMM2 Client setup documentation and haven’t found anything, but I might have overlooked it. This feature would be extremely helpful for some alerting I’m setting up.

Hi Jeff,
Additional labels can be added during adding a service for monitoring.
e.g.



you can add any lables you want through --custom-labels
pmm-admin add mysql --query-source=slowlog --username=pmm --password=xxx --custom-labels=“region=bj,env=prod” ${HOSTNAME}_3306 127.0.0.1:3306


Checking back in with this one, I was finally able to run the --custom-labels command. While it is extremely helpful for alerting, it doesn’t seem to have effected the “Environment” dropdown in Grafana. Was there another way to make that work, or is it non-functional for the time being?

for that you need to use the --environment= flag…is that not working for you?

I think I figured it out after looking in prometheus, the command was run as --custom-labels=“Environment”, should have been lowercase. do you know if --environment and --custom-labels=“environment” would cause the same result?

It should some other reason for the missed environment parameter.
I can’t reproduced the issue with uppercase/lowercase names.