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

Firewall Policy Metrics, parallel writes, aligned timestamps #871

Merged

Conversation

maunope
Copy link
Collaborator

@maunope maunope commented Oct 10, 2022

Firewall Policy Metrics, parallel writes, aligned timestamps

maunope and others added 17 commits October 3, 2022 15:48
…now 4x faster on my laptop), switched to aligned timestamps (should avoid "sawtoothing")
Added buffering for writes (execution now 4x faster on my laptop)
Added aligned timestamps per monitored resource type
@aurelienlegrand
Copy link
Collaborator

Hi Maurizio, thanks for the PR!
A few comments:

  1. Can you update your PR with the latest changes from master? There are a lot of conflicts.
  2. I have some doubts too regarding the dashboard, can you try exporting it again?
  3. you removed the "write_data_to_metric" function in metrics.py to replace it with a "better append_data_to_series_buffer" which is a good idea... But lots of parts of the code are still using the write_data_to_metric function and will break so we need to replace these calls with the new function too.

Copy link
Collaborator

@aurelienlegrand aurelienlegrand left a comment

Choose a reason for hiding this comment

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

Thanks for all the changes, adding a new metric (Firewall Policies) and greatly improving the performance of this solution!

@maunope maunope merged commit 61dd7f0 into GoogleCloudPlatform:master Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants