mauricioabreu / nginx_rtmp_prometheus

Prometheus exporter for NGINX-RTMP
MIT License
27 stars 10 forks source link

Compilation on Ubuntu 20.04 not succesful #3

Closed royvandongen closed 3 years ago

royvandongen commented 3 years ago

Since there are no defined dependencies or prerequisites i had to install multiple dependencies before running the make command. The make command itself resulted in the following error;

`/tmp/nginx_rtmp_prometheus-master$ make

checking code style checking license header running golangci-lint GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null GO111MODULE=on /home/REDACTED/go/bin/golangci-lint run ./... ERRO Deadline exceeded: try increase it by passing --deadline option make: *** [Makefile.common:181: common-lint] Error 4`

Please include more info about prerequisites for a succesful compilation.

royvandongen commented 3 years ago

Apparently a go build nginx_rtmp_exporter.go did the thing, still a bit of documentation would be awesome!

mauricioabreu commented 3 years ago

Hello, @royvandongen thank you for the report. I am on macOS so this is the reason I did not try on Ubuntu. I will investigate it later and provide better docs.

royvandongen commented 3 years ago

Please consider also making Prometheus template available. Default Prometheus config does not seem to handle all information.

mauricioabreu commented 3 years ago

Do you mind to send a pull request? @royvandongen