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

add interval as a configurable startup value #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

decaffeinatedio
Copy link

It would be helpful to make interval configurable to further cut down on event volume where desirable. While process_metrics helps a lot, if process_metrics are required (set to true), then they may not need to be reported every 60 seconds. By setting this value to a less frequent cadence, we can generate far fewer events for Cloudwatch.

INTERVAL = 60 # seconds

def initialize(config: Sidekiq, client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", process_metrics: true, additional_dimensions: {})
def initialize(config: Sidekiq, client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", process_metrics: true, interval=60, additional_dimensions: {})
Copy link

Choose a reason for hiding this comment

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

Does it even work for you? Looks like invalid syntax:

interval: 60

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