-
Notifications
You must be signed in to change notification settings - Fork 197
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
feature: count json objects with same value #149
base: master
Are you sure you want to change the base?
feature: count json objects with same value #149
Conversation
30d4492
to
39a9e37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea, but I think we need to refactor some things first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I merged #152 as a refactor to help with this PR. Please rebase with those changes.
This needs to be rebased. |
5c2d471
to
de7c4c7
Compare
Hey Ben, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@SuperQ @rustycl0ck please, take a look at this issue again |
examples/config.yml
Outdated
labels: | ||
environment: beta # static label | ||
state: '{}' # dynamic label | ||
mincount: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mincount is not exactly obvious without reading the code. Let's document it in the example config. Also, for the config, maybe a nicer name.
mincount: 1 | |
# The minimum count of labels required to expose the metric for each label. Defaults to 1. | |
minimumCount: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SuperQ @rustycl0ck please, take a look at this issue again
de7c4c7
to
5632095
Compare
5632095
to
1b9f9f7
Compare
if we want to count json objects with same values we can use countbylabel type in the metric configuration Signed-off-by: Parsa <[email protected]>
447d93d
to
f4d2d10
Compare
if we want to count json objects with same values we can use
countbylabel type in the metric configuration