PS.: since I can only add 2 embedded images, there are images in this post that I made to appear the URL instead, so please feel free to ask for it again or check somewhere you can see it
Well, basically I created this query sum (container_memory_working_set_bytes{namespace="my-ns"}) by (pod)
and put the legend as {{ pod }}
and in the same dashboard I created this alert:
![image|690x373](upload://8kclFSsshRKtOSoliDcp1LFu6sZ.png)
The dashboard is like this:
But when the alert is triggered and a message sent to Slack, this is the unit sent as well:
How do I change those unreadable numbers to readable data like 500MiB
, for example?
The standard unit is Bytes(IEC)
.
I have a similar question on another dashboard:
query sum (rate(container_cpu_usage_seconds_total{namespace=~"my-ns"}[1m])) by (pod)
Dashboard:
![image|690x172](upload://up80pcT8pTwsUe3RGmmmSyPE3nS.png)
Standard Unit as Percent(0.0 - 1.0)
(Which is weird, once the option (0-100)
shows a percent like 0.0006%
)
The alert here is pretty much the same, only this is diff:
![image|690x73](upload://lqRzNpWtE9O8cpH8Ccf25EjzSgR.png)
I am not sure if that’s a value I would want to be the threshold, and this is the slack message:
![image|690x179](upload://uy0sagomhLEDMqX8dG4xh4DzHx7.png)
Unreadable data as well…
What do I need to change, guys? Pleeasse!!!