Skip to content

Conversation

sanjaysrikakulam
Copy link
Member

Some fixes and updates based on the deployment and manual testing.

The interval is now set to approximately once every 30 days.

Based on the testing, I have created a panel that shows the usage over time in the existing dashboard

@bgruening
Copy link
Member

Can we somehow skip the "current" month that we are in. Otherwise we have this drop in usage on every graph.

@sanjaysrikakulam
Copy link
Member Author

Can we somehow skip the "current" month that we are in. Otherwise we have this drop in usage on every graph.

I spent a considerable amount of time trying out various methods, but none of them worked for a dynamic or automated way to limit it via Grafana. I can update the script to only run on the last day of the month (by building conditional logic within the script), and then the Telegraf interval will be set to 24 hours. This should prevent data from being fetched every day and avoid a drop in usage on the graph.

@bgruening
Copy link
Member

Can you not just leave everything as it is, and remove data after the fact but before submitting to influx?

@sanjaysrikakulam
Copy link
Member Author

Since this is the middle of the month, we are accumulating the daily data points. If it runs only once on the last day of the month, then we will not have this drop. Now that I have access to the InfluxDB, I will see if I can drop the measurement for this month and rework the script to run only once on the last day of the month. (does this make sense?)

@bgruening
Copy link
Member

In not concerned about this month stats. Don't waste time, just wanted to have this fixed for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants