New Beat authentication settings


(Berfin Sarı) #1

hi,
I am working on creating a beat for etcd. I can get the statistics but i have a question for authentication. If password and username are not set, "what should the beat do?"
The beat gave an error message and it didn't send the event but it has continued to work. I look community beats but two methods had been applied


(Carlos Pérez Aradros) #2

Hi @berfinsari,

Normally we send an event logging the error, as this may happen even if you configured the beat correctly but the service changed its behavior.

In any case, I would like to encourage you to work on it as a module for Metricbeat, https://www.elastic.co/guide/en/beats/metricbeat/current/creating-metricbeat-module.html and contribute it, we would accept PRs for an etcd module :slight_smile:

Also, you can benefit from our HTTP & Prometheus helpers https://github.com/elastic/beats/tree/master/metricbeat/helper. Check https://github.com/elastic/beats/blob/master/metricbeat/module/kubernetes/state_container/state_container.go as an example on how to use it :slight_smile:

Best regards


(Berfin Sarı) #3

Thanks for the reply!
I'm also working on a module for metricbeat. The beat is almost done and then i will work for the module.


(system) #4

This topic was automatically closed after 21 days. New replies are no longer allowed.