Skip to main content
Solved

Métrics Data from a deleted Service still shown

  • October 6, 2022
  • 1 reply
  • 720 views

quentinrey
Forum|alt.badge.img+5

Hi,

We recently delete some services, but the metrics data are still available in Administration → Parameters → Data, even if we try to select them and use Delete Graphs.

How can we correctly delete them?

To correctly understand, those metrics are linked to *.rrd files on the server, is that correct?
So if the metrics are deleted, it should free disk space ?

More info :
Centreon version : 22.04.02

Best answer by sims24

Hi, 

Not sure if it just delete the entry in the metrics table or if it also unlinks the file itself. 

 

Anyway, there is no purge mechanism when you delete a service for example. If you want you can use a command like the one below to remove all RRD/metrics files that haven’t been modified since more than 7 days. 

 

find /var/lib/centreon/metrics -type f -name '*.rrd' -mtime +7 -delete 

1 reply

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • Answer
  • October 10, 2022

Hi, 

Not sure if it just delete the entry in the metrics table or if it also unlinks the file itself. 

 

Anyway, there is no purge mechanism when you delete a service for example. If you want you can use a command like the one below to remove all RRD/metrics files that haven’t been modified since more than 7 days. 

 

find /var/lib/centreon/metrics -type f -name '*.rrd' -mtime +7 -delete