-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Keep sink #21965
Comments
I want to give this a try and wanted to understand few more things about keep after going through their demo_app
|
Hey @sainad2222 :) I'm the maintainer of Keep and I think we already discussed some of the items in our Slack. |
@jszwedko Trying to understand what qualifies as a new sink when it can be configured via http too. From what I understood from the examples sinks are present for those who have existing rust sdks/libraries, if they have grpc clients, complex authentication or other things that is hard to support by http. In the example of Keep, we can also use http that can still work sources:
sample_prom:
type: prometheus_scrape
endpoints:
- http://localhost:9090/metrics
transforms:
convert_event:
inputs:
- sample_prom
type: "metric_to_log"
restructure_event:
inputs:
- convert_event
source: |-
.event, _err = merge({}, .)
template = {}
template.event = .event
. = template
.source_type = "prometheus"
type: "remap"
sinks:
keep:
type: "http"
inputs: ["restructure_event"]
uri: "http://localhost:8080/alerts/event/vectordev?provider_id=test"
encoding:
codec: "json"
request:
headers:
x-api-key: "keepappkey"
content-type: "application/json" Will having a dedicated sink help in this case? |
You have it right. It's a balance but generally we look at how hard it is to reuse an existing sink to determine whether it makes sense to introduce a new one. In this case, it seems fairly straightforward to use the |
I'll try adding a sink and see if we can remove the additional transformers atleast. |
For anyone landing on this issue and wants to configure Keep as sink we added support for Vector as a provider in Keep. |
A note for the community
Use Cases
People that use Keep (https://www.github.com/keephq/keep) often want to send events from existing services to our service (cloud or self-hosted). The end goal is having an easy-to-configure log sink for Keep to send events to.
Attempted Solutions
No response
Proposal
Add an Keep log sink. I imagine it to be similar to the HTTP implementation (or even use the existing)
An example vector.toml could look like this:
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: