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 support for Elasticsearch Rate Metric Aggregator #583

Merged
merged 4 commits into from
May 18, 2023

Conversation

jimbolimbo13
Copy link
Contributor

What does this do?

This adds support for the "Rate Aggregation" as a metric in an Elasticsearch query.

image

Why is it a good idea?

This is supported in Grafana, and my team needed it for something. I figure others might too.

Context

Questions

Copy link
Collaborator

@JamesGibo JamesGibo 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 the PR, it looks good, just a minor import missing.

Add the following to fix the test error

from attr.validators import in_

Please could you also add a note to the release notes?

I have also added an issue to test the Elasticsearch file as realised it is missing a test file.
#589

grafanalib/elasticsearch.py Show resolved Hide resolved
jimbolimbo13 and others added 3 commits May 18, 2023 10:04
Co-authored-by: JamesGibo <22477854+JamesGibo@users.noreply.github.com>
Copy link
Collaborator

@JamesGibo JamesGibo left a comment

Choose a reason for hiding this comment

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

LGTM

@JamesGibo JamesGibo merged commit 2ca57fc into weaveworks:main May 18, 2023
@jimbolimbo13
Copy link
Contributor Author

haha, you were too quick. I just pushed the changelog change, but it was missed

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