I am using a "singlestat" Grafana visualisation to create a RAG status from the following query:
sum(up{container_name="my-application",environment_name="$env"})
So this will tally up the number of running containers in say the production environment. The following visualisation gives a RAG status panel that is RED on zero containers found, AMBER on one container and GREEN on two or more.
So far so good but in other environments like development the number of containers running for "my-application" is only one so RAG status is always reported as AMBER.
How do I handle this? I can't see a way of configuring the "singlestat" visualisation so should I manipulate the returned value from the query and if so how?

