community icon indicating copy to clipboard operation
community copied to clipboard

friction-less installation of alerts/collectors

Open odyslam opened this issue 4 years ago • 4 comments

We should provide a tool (e.g a bash script) so that users can frictionlessly install community collectors and alerts.

Collectors

  • python.d
  • go.d
  • charts.d

go.d is tricky, as the user will have to rebuild the go.d binary and replace the existing one. Moreover, we should somehow make netdata NOT to replace the edited go.d with every nightly release.

Alerts

Just copy the alert file in the proper directory. Since we will have multiple different alerts for the same collectors, we should have a structure where people can install specific alerts for a component.

e.g the goroutines alert for geth.

This could be done via a repo structure as: alerts/geth/goroutines.conf

UX

It should be as effortless as possible. For the users to use the community repo, we expect them to be more technical, since they are pushing the boundaries of what netdata can do.

odyslam avatar Jul 27 '21 13:07 odyslam

Open question regarding go.d collectors, as any community collector means that the source files of the go.d plugin are edited and the go.d binary is built with that community plugin included.

That means that netdata has a different go.d than it should, which will lead to it be replaced next time netdata is updated, replacing it with the common go.d plugin.

Current architecture means that in order to have go.d plugin, the user must disable automatic updates, or with every update, rebuild and replace the go.d plugin with it's own customized that has the community collector.

More information by @ilyam8

odyslam avatar Aug 10 '21 06:08 odyslam

I wonder if we could use something like cookiecutter to let a user install a community collector from the repo and it could kinda just walk them through it.

https://cookiecutter.readthedocs.io

andrewm4894 avatar Dec 31 '21 23:12 andrewm4894

The simplest form:

  • download file(s) from the community repo
  • move them to appropriate directories
  • restart Netdata

A bash script will do for this case.

ilyam8 avatar Feb 03 '22 12:02 ilyam8

yeah, I agree that bash script is a great MVP to gauge user interest.

I would also suggest to do it in tandem with a Marketplace type of collectors/alerts: https://github.com/odyslam/netdata-marketplace

odyslam avatar Feb 03 '22 13:02 odyslam