Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add metrics for playbook push pull #1674

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Dec 13, 2024

dependsOn: flanksource/duty#1219

resolves: #1671

Agent: my machine
upstream: aws demo

# HELP playbook_action_pull_lag 
# TYPE playbook_action_pull_lag histogram
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="100"} 0
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="200"} 2
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="500"} 2
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="1000"} 3
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="1500"} 3
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="3000"} 3
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="5000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="10000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="20000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="30000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="60000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="100000"} 4
playbook_action_pull_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="+Inf"} 4
playbook_action_pull_lag_sum{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api"} 5238
playbook_action_pull_lag_count{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api"} 4
# HELP playbook_action_push_lag 
# TYPE playbook_action_push_lag histogram
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="100"} 0
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="200"} 0
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="500"} 0
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="1000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="1500"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="3000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="5000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="10000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="20000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="30000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="60000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="100000"} 4
playbook_action_push_lag_bucket{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api",le="+Inf"} 4
playbook_action_push_lag_sum{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api"} 2181
playbook_action_push_lag_count{agent="aditya-desktop",upstream="https://incident-commander.demo.aws.flanksource.com/api"} 4

@adityathebe adityathebe force-pushed the feat/playbook-push-pull-improvement branch from b3b233d to 741e129 Compare December 13, 2024 05:18
@adityathebe adityathebe marked this pull request as ready for review December 13, 2024 05:19
@moshloop moshloop merged commit aa47bc2 into main Dec 13, 2024
7 checks passed
@moshloop moshloop deleted the feat/playbook-push-pull-improvement branch December 13, 2024 07:38
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.

Optimize playbook execution on agents
2 participants