In our telegraf config we give ip manually and get hostname from hostname command, and by mistake we added one ip as two different servers, ip and hostname both are tag keys,
so now we had two hostname for one ip. and
SHOW TAG VALUES FROM “cpu” WITH KEY = host
would never show the correct hostname, but it would show the hostname of the other host were ip was configured wrong.
even after the correction in config we are not able to see the correct host while we can get data for that host via command like this.