eventrouter
eventrouter copied to clipboard
Sink documentation
Could someone add docs into README.md on how to configure sinks? Preferably in a form that k8s noobs could use
Hi everyone. Is there any draft or progress about this? I'd like to contribute.
https://github.com/heptiolabs/eventrouter/blob/master/yaml/eventrouter.yaml#L45-L48 not the docs but you need to configure this
@alok87 Thanks, but I wanted to forward the events to an external endpoint. So I tried this, but nothing was sent.
Even I don't know what glog
was supposed to mean.
@alitoufighi, glog
is a Go logging package with a specific logging format. If you want to send logs to an external endpoint, it seems you need to set http
as the sink instead of glog
in addition to setting httpSinkUrl
https://github.com/heptiolabs/eventrouter/blob/733f06f325c002f80da9a5045eaa060766c9c160/sinks/interfaces.go#L44-L60
If you have filebeat/logstash in your cluster, you can use stdout
instead of glog
as an external sink, and your logging solution should pick it up, just like logs from all other pods. I deployed this app using helm yesterday with stdout
as the sink, and can see the events in Kibana. My config.json ConfigMap mounted to the pod looks like this:
data:
config.json: |-
{
"sink": "stdout"
}