Graph: Legend format with wrong information

Hello,

I have created a Grafana dashboard to show the CpuUtilization.
I have the data source oci-metrics-datasource.
I set the region, compartment, etc…

I have 2 hostnames, which the name only differs in one number.

Example:
hostabc1
hostabc2

Then, when I choose a dimension, if I choose the “hostName - hostabc1” and I create a “legend format” (I think it was called legend label), it shows “hostabc1”.

So far so good.

However, if I choose “hostName - hostabc2”, the “legend format” (or the legend label), it will show “hostabc1”, instead of “hostabc2”.

If I don’t set any legend format, it will show the correct hostname (“hostabc2”) but it will show a huge line with a lot of information.

I’ve tried many things but I couldn’t figure out what is causing this.

Can you help?