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

Make metrics-generator ingestion slack per tenant #2589

Merged
merged 30 commits into from
Aug 24, 2023
Merged

Make metrics-generator ingestion slack per tenant #2589

merged 30 commits into from
Aug 24, 2023

Conversation

ie-pham
Copy link
Collaborator

@ie-pham ie-pham commented Jun 23, 2023

What this PR does: Make metrics-generator ingestion slack a per tenant config for when a tenant requires a much higher slack than the default '30s'

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@ie-pham ie-pham changed the title Mg ingestion slack Make metrics-generator ingestion slack per tenant Jun 23, 2023
@ie-pham ie-pham marked this pull request as ready for review June 23, 2023 19:27
Copy link
Contributor

@knylander-grafana knylander-grafana left a comment

Choose a reason for hiding this comment

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

Doc changes look good! Thank you for adding doc.

modules/generator/instance.go Outdated Show resolved Hide resolved
modules/generator/instance.go Outdated Show resolved Hide resolved
modules/generator/instance.go Outdated Show resolved Hide resolved
modules/generator/instance.go Outdated Show resolved Hide resolved
modules/generator/instance.go Outdated Show resolved Hide resolved
Copy link
Member

@kvrhdn kvrhdn left a comment

Choose a reason for hiding this comment

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

LGTM! This will be handy, thanks!

Just a small nitpick, do with it what you will, I'm fine with merging it as-is.

overrides metricsGeneratorOverrides
instanceID string
overrides metricsGeneratorOverrides
ingestionSlackOverride atomic.Int64
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: I like keeping the time unit in variable names so it's always obvious.

Suggested change
ingestionSlackOverride atomic.Int64
ingestionSlackDurationNanos atomic.Int64

@ie-pham ie-pham merged commit bfcd75c into grafana:main Aug 24, 2023
15 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.

5 participants