delete perfdata of non existing hosts from influxdb

This forum was archived to /woltlab and is now in read-only mode.
  • I started to deal with influxdb and grafana including the great icingaweb2 grafana module from Mikesch

    thanks for that by the way!


    after playing around with the dashboards i wonder how to get rid of perfdata from hosts which have been deleted from the icinga2 configuration.

    i found some information which where quiet old but and they didn't come up with a solution as well

    so i a had a look into the influx documentation and build a small script that should do the job for me.



    Does anyone ever dealt with that?

    Is there even a better way do to this?


    -Daniel


    #perhaps better move it to "Integrations -> metrics & graphs". sorry.

    The post was edited 1 time, last by phenomic: moved >> | grep -v "^$" << to the end of the HOSTS statement to avoid exceptions ().

  • nice Solution.


    Personally I have set retention policies in influxDB which will delete metrics older than 1.5 years.

    I do not mind having removed servers in there, as they are still crucial to Availability reports

    Linux is dead, long live Linux


    Remember to NEVER EVER use git repositories in a productive environment if you CAN NOT control them