Assigned
Status Update
Comments
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
I have forwarded this request to the engineering team. We will update this issue with any progress updates and a resolution.
he...@pagar.me <he...@pagar.me> #3
Hello! Sorry to bring up this issue after almost a year but I wanted to add that we have chosen metric identifier as agent.googleapis.com/memory/percent_used but autoscaling didnt work out for us either. It would be appraciated if you can guide us.
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com> #4
Hi, at the moment we are using the cpu_utilization/target_utilization attribute (in app.yaml) for autoscaling in the app engine flexible environment, however it would be great if we can have the way to mention the memory_utilization metrics as well to decide on the auto scaling. It will give us more control of the auto scaling the instances than now.
Description
I am unable to use templated legend for readability.We are using Cloud Monitoring to monitor our elasticsearch cluster.
Note that we have the same kind of issue for alerting. When using PromQL,
the message template cannot reference metric labels and display a dynamic
message.
Problem you have encountered:
Not being able to use PromQL legend templates
What you expected to happen:
Being able to use PromQL queries and customize the legend
Steps to reproduce:
We made some custom dashboards amd alerts with important metrics and data to watch. For example the number of shards per node. For some visualizations we need to perform more complex calculations on the
metrics, i.e. substract 2 of them, which is only possible to do with the
PromQL or MQL query language. On the builder graph, I've customized the legend using "Used/Max
${
one. We tried using JSON editor but it does not work either.
We created a simple dashboard with the ID given in summary to show you the
behaviour, for example, if we need to monitor the max vs used java memory
on the same graph, with builder, we have a good readable dashboard but,
with exactly the same query translated to PromQL, we have a chart where all
the lines have the same name.
On the builder graph, I've customized the legend using "Used/Max
${
one. We tried using JSON editor but it does not work either.
Other information (workarounds you have tried, documentation consulted, etc):
A workaround is to use PromQL's label_replace function to add one field with arbitrary text. And I have used this documentation [1].
[1]