Skip to content

Conversation

@naved001
Copy link
Collaborator

We have some clusters where we would like to change the frequency at which we collect metrics and generate the report based on that.

To accomplish this, we need to make 2 changes. We set an environment variable that is passed on to the metrics collector scripts. And we insert the collection interval into the json file.

The merge scripts will read this interval when loading these files. For backwards compatibility with our old metrics file, we'll default to 15 minutes when processing these files.

P.S. merge.py is getting a bit ugly so I am going to submit another PR that refactors some of the stuff and adds tests.

@naved001 naved001 force-pushed the adjustable-metric-frequency branch 2 times, most recently from f6b9469 to 65b80d7 Compare November 10, 2025 21:53
@naved001 naved001 marked this pull request as draft November 10, 2025 22:05
@naved001 naved001 marked this pull request as ready for review November 10, 2025 22:20
@naved001 naved001 requested a review from jimmysway November 13, 2025 18:50
@naved001
Copy link
Collaborator Author

I have submitted #165 to refactor the "merge.py" script a bit to make it easier to add some tests and newer functionality, after that's merged I can redo this PR.

We have some clusters where we would like to change the frequency at
which we collect metrics and generate the report based on that.

To accomplish this, we need to make 2 changes. We set an environment
variable that is passed on to the metrics collector scripts. And we
insert the collection interval into the json file.

The merge scripts will read this interval when loading these files. For
backwards compatibility with our old metrics file, we'll default to 15
minutes when processing these files.
@naved001 naved001 force-pushed the adjustable-metric-frequency branch from 65b80d7 to 7e9f94c Compare November 16, 2025 16:49
@naved001 naved001 merged commit e75b8ea into CCI-MOC:main Nov 17, 2025
3 checks passed
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.

3 participants