-
Notifications
You must be signed in to change notification settings - Fork 152
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 pushgateway related operations #15
base: master
Are you sure you want to change the base?
Conversation
@fstab The CI test for file tailer has failed because of timeout, but I did it locally and there was no such failure. Also I think this has no effect for the pushgateway functions. Please take a look at this PR, thanks in advance. |
Thanks for the PR! I am currently on holidays with very limited access to the Internet, but I will get back to it next week. |
@fstab Sorry for the late reply. I appreciate your response. |
I reviewed the changes and have a couple of questions to understand the code better:
Thanks a lot! |
@fstab Thanks for the response.
I am not so good at |
Thanks a lot for your response. I understand your usage scenario much better now. I really like the idea to be able to delete metrics. This should be a general feature in delete_match: 'DELETE %{USERNAME:user}'
delete_labels:
user: '{{.user}}' As you said, there is no simple I think the best way to proceed is to implement the generic delete functionality first, and then migrate your pushgateway code to the new version of Thanks four your contribution, it is always good to see different usage scenarios and get some fresh ideas. I'll get back to this issue when the delete functionality is done. |
Glad to know this idea is accepted by the author @fstab . I really appreciate your response. Thanks a lot!. |
I pushed a |
@fstab Thanks, I'll check it out and give you a response later. |
@fstab Sorry for late response, I was engaged in some other projects in our company in the last a few weeks, I will try to use this new functions in my pushgateway branch and give you a detailed reply in the next weeks. Thanks. |
1f0b437
to
7dab124
Compare
cf67c51
to
694910a
Compare
d53e0a7
to
ad188fd
Compare
b00705b
to
0fb96a3
Compare
b661e7b
to
09fa4c4
Compare
50bbec7
to
801df77
Compare
Add pushgateway related operations. User can choose to push metrics to the pushgateway endpoint provided by config file as well as to delete metrics from it.
Added attributes of config.yml
Global section:
pushgateway_addr
: pushgateway address, only support : pattern.Metric section:
pushgateway
: specify if this metric needs to be pushed to pushgateway, default isfalse
.job_name
: specify job name when pushing metric to pushgateway, default isgrok_exporter
.delete_match
: similar to match attribute, logs which match this pattern will trigger a delete() operation from pushgateway.grouping_key
: specify the grouping key when pushing metric to pushgateway, default isnil
.All of the added attributes are not required, thus the original config.yml still works.