Skip to content

metrics-cache: make push interval configurable - #25

Merged
DavidGerva merged 1 commit into
Checkmk:masterfrom
DavidGerva:CMK-36784
Aug 11, 2026
Merged

metrics-cache: make push interval configurable#25
DavidGerva merged 1 commit into
Checkmk:masterfrom
DavidGerva:CMK-36784

Conversation

@DavidGerva

Copy link
Copy Markdown
Collaborator
  • new CLI arg
  • use thread the arg through to the push loop where 60s is currently hardcoded
  • make it configurable via the helm chart

@relrod relrod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

#[test]
fn push_interval_cannot_be_zero() {
assert_eq!(
parse(&["--push-interval", "0"])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also a test for a negative value, though if someone passes a negative value they might deserve whatever they get 🤣

You'd probably have to test "--push-interval=-1" or similar, otherwise -1 will be parsed as a separate flag.

@DavidGerva
DavidGerva enabled auto-merge (rebase) August 11, 2026 07:59
@DavidGerva
DavidGerva disabled auto-merge August 11, 2026 07:59
@DavidGerva
DavidGerva enabled auto-merge (rebase) August 11, 2026 08:00
@DavidGerva
DavidGerva merged commit b1c81f1 into Checkmk:master Aug 11, 2026
4 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.

2 participants