Skip to content

Allow for Purging of Data Source Statistics from the GUI #2236

Closed

Description

@eschoeller

The MySQL tables for the data source statistics have grown to 1.3GB on my system. I'm not sure if this is by design, if it's normal, or what. It could likely be due to the errors I'm still getting with dsstats (which I'm going to disable for now).
But, I think it would be a good idea to have a function in place to clear these statistics out of the db so you can start over.

du -hsc data_source_stats_*ibd
401M    data_source_stats_daily.ibd
14M     data_source_stats_hourly.ibd
341M    data_source_stats_hourly_cache.ibd
14M     data_source_stats_hourly_last.ibd
173M    data_source_stats_monthly.ibd
177M    data_source_stats_weekly.ibd
161M    data_source_stats_yearly.ibd
1.3G    total

Activity

  1. eschoeller commented on Dec 28, 2018

    @eschoeller
    Author

    My settings:
    image

  2. eschoeller commented on Dec 28, 2018

    @eschoeller
    Author

    Just a bit of poking around ... I found that a data source had 138 rows associated with it when the template itself only has 2 data items associated with it. So there's tons of garbage that's been accumulated into these tables.

  3. cigamit commented on Dec 28, 2018

    @cigamit
    Member

    Good idea. Marking as a feature request. Data Source Statistics will rebuild things when re-enabled.

  4. added this to the Cacti 1.3 milestone on Dec 29, 2018
  5. changed the title [-]Feature Request: Clear Data Source Statistics[/-] [+]Allow for Purging of Data Source Statistics from the GUI[/+] on Mar 22, 2020
  6. added a commit that references this issue on Mar 22, 2020
  7. TheWitness commented on Mar 22, 2020

    @TheWitness
    Member

    This is fixed now.

  8. modified the milestones: v1.3.0, 1.2.11 on Mar 22, 2020
  9. locked and limited conversation to collaborators on Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral tag for an enhancementperformancePerformance related affects big sitesresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions