Maintain historical data

We use influxdb with nagios and we have a doubt when renaming a host. How to maintain the data history?
Thank you very much

Do you need match the data even when you rename a host?

If it is, you can have a tag to join it, like

host=server1 tag=machine
if you change the name of the host:

host=server2 tag=machine

so, you can use tag=machine to match the information about this server.
Another option could be change by query the name of the host in influx database

1 Like

Is there an update statement to change the host in influx database?

Thanks!

I think that influxdb doesn’t have this functionality yet, but here you have something it could be useful:

Workaround

1 Like