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 MATCH to README.md with example usage #117

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

dgatanasov
Copy link
Contributor

No description provided.

@@ -48,6 +48,7 @@ Prometheus-kafka-adapter listens for metrics coming from Prometheus and sends th
- `BASIC_AUTH_PASSWORD`: basic auth password to be used for receive endpoint, defaults is no basic auth.
- `LOG_LEVEL`: defines log level for [`logrus`](https://github.com/sirupsen/logrus), can be `debug`, `info`, `warn`, `error`, `fatal` or `panic`, defaults to `info`.
- `GIN_MODE`: manage [gin](https://github.com/gin-gonic/gin) debug logging, can be `debug` or `release`.
- `MATCH`: filter which metrics and labels to send to kafka. Used to limit the amount of data that is sent to kafka - by default everything is send. Example: "['metric-1{label-1=\"label-value-1\"}','metric-2']"
Copy link
Contributor

Choose a reason for hiding this comment

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

So this is intended to be an inclusive filter (i.e. only things in the filter list will be forwarded)? Can we add a note about the type of filter the user will experience?

Copy link
Contributor Author

@dgatanasov dgatanasov Aug 7, 2023

Choose a reason for hiding this comment

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

Yes, sure - as it is in the moment in the example: everything that is "<metric-1>" with "<label-1>" with value of the label "<label-value-1>" and everything from "<metric-2>" will be sent to kafka, everything else will be dropped. Do you want me to add the PR - will push to it if required.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not really in a position to dictate how your PR looks. It just strikes me that a little additional clarity on what MATCH does might be nice for users.

Copy link
Member

Choose a reason for hiding this comment

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

I've merged it because this description is much better than nothing. Any ideas to improve its clarity are welcome.

@palmerabollo palmerabollo merged commit c2153c4 into Telefonica:master Aug 31, 2023
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.

None yet

3 participants