GithubHelp home page GithubHelp logo

mauricioabreu / nginx_rtmp_prometheus Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 10.0 3.2 MB

Prometheus exporter for NGINX-RTMP

License: MIT License

Makefile 7.15% Go 91.61% Dockerfile 1.24%
nginx-rtmp prometheus-exporter

nginx_rtmp_prometheus's Introduction

NGINX-RTMP exporter for Prometheus

Building

To build the exporter:

make

or

make build

Getting started

To run this exporter:

./nginx_rtmp_exporter [flags]

Help on flags:

./nginx_rtmp_exporter -h

Testing

This project comes with two commands to start a real NGINX-RTMP server and ingest a real video.

Execute make run-nginx-rtmp and make ingest-stream in your terminal, then start the exporter.

You can also serve a fake server using the make serve-mocked-stats - it uses the file tests/stats.xml.

Metrics

NGINX-RTMP exposes its metrics in a path specified in the nginx.conf file.

To start collecting metrics you need to update your NGINX-RTMP configuration with the following directives:

location /stat {
    rtmp_stat all;

    # Use this stylesheet to view XML as web page
    # in browser
    rtmp_stat_stylesheet stat.xsl;
}

location /stat.xsl {
    # XML stylesheet to view RTMP stats.
    # Copy stat.xsl wherever you want
    # and put the full directory path here
    root /path/to/stat.xsl/;
}

Now you can watch NGINX-RTMP statistics. This exports scrapes localhost:8080/stats by default you can change it for whatever address you want, juste pass nginxrtmp.scrape-uri argument to the exporter:

./nginx_rtmp_exporter --nginxrtmp.scrape-uri="localhost:9090/statistics"

By default the NGINX-RTMP exporter serves on port 0.0.0.0:9728 at /metrics

Collectors

This exporter collects and exposes the following statistics:

# HELP nginx_rtmp_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which nginx_rtmp_exporter was built.
# TYPE nginx_rtmp_exporter_build_info gauge
nginx_rtmp_exporter_build_info{branch="master",goversion="go1.14",revision="fe3d8ac350cec520648b07cf9ceb613f12362e2b",version="0.0.1"} 1
# HELP nginx_rtmp_server_current_streams Current number of active streams
# TYPE nginx_rtmp_server_current_streams gauge
nginx_rtmp_server_current_streams 6
# HELP nginx_rtmp_server_incoming_bytes_total Current total of incoming bytes
# TYPE nginx_rtmp_server_incoming_bytes_total counter
nginx_rtmp_server_incoming_bytes_total 2.40895361e+08
# HELP nginx_rtmp_server_outgoing_bytes_total Current total of outgoing bytes
# TYPE nginx_rtmp_server_outgoing_bytes_total counter
nginx_rtmp_server_outgoing_bytes_total 5.3739661e+07
# HELP nginx_rtmp_server_receive_bytes Current bandwidth in per second
# TYPE nginx_rtmp_server_receive_bytes gauge
nginx_rtmp_server_receive_bytes 6.592750549316406
# HELP nginx_rtmp_server_transmit_bytes Current bandwidth out per second
# TYPE nginx_rtmp_server_transmit_bytes gauge
nginx_rtmp_server_transmit_bytes 1.4704513549804688
# HELP nginx_rtmp_server_uptime_seconds_total Number of seconds NGINX-RTMP started
# TYPE nginx_rtmp_server_uptime_seconds_total counter
nginx_rtmp_server_uptime_seconds_total 310
# HELP nginx_rtmp_stream_incoming_bytes_total Current total of incoming bytes
# TYPE nginx_rtmp_stream_incoming_bytes_total counter
nginx_rtmp_stream_incoming_bytes_total{stream="hello"} 5.3836313e+07
nginx_rtmp_stream_incoming_bytes_total{stream="hello_240p264kbs"} 7.772386e+06
nginx_rtmp_stream_incoming_bytes_total{stream="hello_240p528kbs"} 1.5462727e+07
nginx_rtmp_stream_incoming_bytes_total{stream="hello_360p878kbs"} 2.8888155e+07
nginx_rtmp_stream_incoming_bytes_total{stream="hello_480p1128kbs"} 3.849418e+07
nginx_rtmp_stream_incoming_bytes_total{stream="hello_720p2628kbs"} 9.5998269e+07
# HELP nginx_rtmp_stream_outgoing_bytes_total Current total of outgoing bytes
# TYPE nginx_rtmp_stream_outgoing_bytes_total counter
nginx_rtmp_stream_outgoing_bytes_total{stream="hello"} 5.365292e+07
nginx_rtmp_stream_outgoing_bytes_total{stream="hello_240p264kbs"} 0
nginx_rtmp_stream_outgoing_bytes_total{stream="hello_240p528kbs"} 0
nginx_rtmp_stream_outgoing_bytes_total{stream="hello_360p878kbs"} 0
nginx_rtmp_stream_outgoing_bytes_total{stream="hello_480p1128kbs"} 0
nginx_rtmp_stream_outgoing_bytes_total{stream="hello_720p2628kbs"} 0
# HELP nginx_rtmp_stream_receive_bytes Current bandwidth in per second
# TYPE nginx_rtmp_stream_receive_bytes gauge
nginx_rtmp_stream_receive_bytes{stream="hello"} 1.468170166015625
nginx_rtmp_stream_receive_bytes{stream="hello_240p264kbs"} 0.20711517333984375
nginx_rtmp_stream_receive_bytes{stream="hello_240p528kbs"} 0.4146881103515625
nginx_rtmp_stream_receive_bytes{stream="hello_360p878kbs"} 0.77984619140625
nginx_rtmp_stream_receive_bytes{stream="hello_480p1128kbs"} 1.0345001220703125
nginx_rtmp_stream_receive_bytes{stream="hello_720p2628kbs"} 2.619903564453125
# HELP nginx_rtmp_stream_transmit_bytes Current bandwidth out per second
# TYPE nginx_rtmp_stream_transmit_bytes gauge
nginx_rtmp_stream_transmit_bytes{stream="hello"} 1.468170166015625
nginx_rtmp_stream_transmit_bytes{stream="hello_240p264kbs"} 0
nginx_rtmp_stream_transmit_bytes{stream="hello_240p528kbs"} 0
nginx_rtmp_stream_transmit_bytes{stream="hello_360p878kbs"} 0
nginx_rtmp_stream_transmit_bytes{stream="hello_480p1128kbs"} 0
nginx_rtmp_stream_transmit_bytes{stream="hello_720p2628kbs"} 0
# HELP nginx_rtmp_stream_uptime_seconds_total Number of seconds since the stream started
# TYPE nginx_rtmp_stream_uptime_seconds_total counter
nginx_rtmp_stream_uptime_seconds_total{stream="hello"} 306.805
nginx_rtmp_stream_uptime_seconds_total{stream="hello_240p264kbs"} 300.55
nginx_rtmp_stream_uptime_seconds_total{stream="hello_240p528kbs"} 300.6
nginx_rtmp_stream_uptime_seconds_total{stream="hello_360p878kbs"} 300.65
nginx_rtmp_stream_uptime_seconds_total{stream="hello_480p1128kbs"} 300.7
nginx_rtmp_stream_uptime_seconds_total{stream="hello_720p2628kbs"} 300.75

nginx_rtmp_prometheus's People

Contributors

bwjohnson-ss avatar luiscovelo avatar mauricioabreu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nginx_rtmp_prometheus's Issues

prometheus was collected before with the same name and label values

Errors if any stream is running:

An error has occurred while serving metrics:

25 error(s) occurred:
* collected metric "nginx_rtmp_stream_incoming_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_src" > counter:<value:1.8166564227e+10 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_outgoing_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_src" > counter:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_receive_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_src" > gauge:<value:4.8905792236328125 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_transmit_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_src" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_uptime_seconds_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_src" > counter:<value:33318.732 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_incoming_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_480" > counter:<value:4.837126193e+09 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_outgoing_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_480" > counter:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_receive_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_480" > gauge:<value:1.454132080078125 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_transmit_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_480" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_uptime_seconds_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_480" > counter:<value:33318.735 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_incoming_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_720" > counter:<value:8.594777839e+09 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_outgoing_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_720" > counter:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_receive_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_720" > gauge:<value:2.491180419921875 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_transmit_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_720" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_uptime_seconds_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_720" > counter:<value:33318.735 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_incoming_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_1080" > counter:<value:1.7173994529e+10 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_outgoing_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_1080" > counter:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_receive_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_1080" > gauge:<value:4.895774841308594 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_transmit_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_1080" > gauge:<value:0 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_uptime_seconds_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8_1080" > counter:<value:33318.732 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_incoming_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8" > counter:<value:1.8167628543e+10 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_outgoing_bytes_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8" > counter:<value:1.8167628478e+10 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_receive_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8" > gauge:<value:4.874763488769531 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_transmit_bytes" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8" > gauge:<value:4.874763488769531 > } was collected before with the same name and label values
* collected metric "nginx_rtmp_stream_uptime_seconds_total" { label:<name:"stream" value:"c4eba06b-1ab3-4367-93e1-da584b96fcc8" > counter:<value:33320.122 > } was collected before with the same name and label values

maybe application label is missing

build fails

Hi, unfortunately build fails

any idea what's wrong?

thx

root@mfnginx-864665cf6-9wmvp:/tmp# git clone https://github.com/mauricioabreu/nginx_rtmp_prometheus.git
Cloning into 'nginx_rtmp_prometheus'...
remote: Enumerating objects: 543, done.
remote: Counting objects: 100% (543/543), done.
remote: Compressing objects: 100% (448/448), done.
remote: Total 543 (delta 87), reused 509 (delta 56), pack-reused 0
Receiving objects: 100% (543/543), 1.58 MiB | 0 bytes/s, done.
Resolving deltas: 100% (87/87), done.
root@mfnginx-864665cf6-9wmvp:/tmp# cd nginx_rtmp_prometheus/
root@mfnginx-864665cf6-9wmvp:/tmp/nginx_rtmp_prometheus# ls
Dockerfile  LICENSE  Makefile  Makefile.common  README.md  VERSION  go.mod  go.sum  nginx_rtmp_exporter.go  scripts  tests  vendor
root@mfnginx-864665cf6-9wmvp:/tmp/nginx_rtmp_prometheus# make
>> checking code style
>> checking license header
mkdir -p /root/go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.18.0/install.sh \
        | sed -e '/install -d/d' \
        | sh -s -- -b /root/go/bin v1.18.0
golangci/golangci-lint info checking GitHub for tag 'v1.18.0'
golangci/golangci-lint info found version: 1.18.0 for v1.18.0/linux/amd64
golangci/golangci-lint info installed /root/go/bin/golangci-lint
>> running golangci-lint
GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
go: finding github.com/go-kit/kit v0.10.0
go: finding github.com/prometheus/common v0.9.1
go: finding github.com/antchfx/xpath v1.1.5
go: finding github.com/prometheus/client_golang v1.5.1
go: finding github.com/antchfx/xmlquery v1.2.3
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/oklog/oklog v0.3.2
go: finding github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da
go: finding github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec
go: finding github.com/VividCortex/gohistogram v1.0.0
go: finding github.com/openzipkin/zipkin-go v0.2.2
go: finding github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: finding go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
go: finding github.com/casbin/casbin/v2 v2.1.2
go: finding google.golang.org/grpc v1.26.0
go: finding github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
go: finding github.com/google/go-cmp v0.4.0
go: finding github.com/pact-foundation/pact-go v1.0.4
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding github.com/go-logfmt/logfmt v0.5.0
go: finding gopkg.in/yaml.v2 v2.2.4
go: finding github.com/aws/aws-lambda-go v1.13.3
go: finding github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5
go: finding github.com/prometheus/client_model v0.2.0
go: finding go.uber.org/zap v1.13.0
go: finding github.com/apache/thrift v0.13.0
go: finding sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0
go: finding gopkg.in/gcfg.v1 v1.2.3
go: finding github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf
go: finding github.com/golang/protobuf v1.3.2
go: finding github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94
go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: finding github.com/nats-io/nats-server/v2 v2.1.2
go: finding github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding github.com/nats-io/nats.go v1.9.1
go: finding golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: finding github.com/hudl/fargo v1.3.0
go: finding golang.org/x/net v0.0.0-20190613194153-d28f0bde5980
go: finding github.com/beorn7/perks v1.0.1
go: finding github.com/opentracing/opentracing-go v1.1.0
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding github.com/Shopify/toxiproxy v2.1.4+incompatible
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
go: finding golang.org/x/lint v0.0.0-20190930215403-16217165b5de
go: finding github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8
go: finding github.com/sirupsen/logrus v1.4.2
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd
go: finding github.com/mattn/go-colorable v0.0.9
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding github.com/coreos/go-semver v0.2.0
go: finding github.com/aws/aws-sdk-go v1.27.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/performancecopilot/speed v3.0.0+incompatible
go: finding github.com/urfave/cli v1.22.1
go: finding golang.org/x/tools v0.0.0-20200103221440-774c71fcf114
go: finding github.com/fatih/color v1.7.0
go: finding github.com/soheilhy/cmux v0.1.4
go: finding gopkg.in/warnings.v0 v0.1.2
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/opentracing/basictracer-go v1.0.0
go: finding google.golang.org/grpc v1.23.1
go: finding github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/lightstep/lightstep-tracer-go v0.18.1
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: finding github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a
go: finding github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
go: finding go.opencensus.io v0.22.2
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473
go: finding github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a
go: finding gopkg.in/cheggaaa/pb.v1 v1.0.25
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding go.uber.org/multierr v1.3.0
go: finding github.com/client9/misspell v0.3.4
go: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: finding github.com/go-kit/kit v0.9.0
go: finding github.com/mattn/go-isatty v0.0.4
go: finding golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd
go: finding github.com/opentracing/opentracing-go v1.0.2
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d
go: finding golang.org/x/sys v0.0.0-20200122134326-e047566fdf82
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/google/go-cmp v0.2.0
go: finding golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/golang/mock v1.1.1
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/gogo/protobuf v1.2.0
go: finding go.etcd.io/bbolt v1.3.3
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c
go: finding go.uber.org/multierr v1.1.0
go: finding github.com/onsi/gomega v1.4.3
go: finding github.com/nats-io/jwt v0.3.2
go: finding github.com/nats-io/nkeys v0.1.3
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/prometheus/client_golang v1.0.0
go: finding github.com/eapache/queue v1.1.0
go: finding github.com/go-stack/stack v1.8.0
go: finding github.com/hashicorp/go-version v1.2.0
go: finding github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492
go: finding github.com/golang/protobuf v1.2.0
go: finding go.uber.org/atomic v1.3.2
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb
go: finding golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/creack/pty v1.1.7
go: finding honnef.co/go/tools v0.0.1-2019.2.3
go: finding github.com/urfave/cli v1.20.0
go: finding github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/nats-io/jwt v0.3.0
go: honnef.co/go/[email protected]: unknown revision v0.0.1-2019.2.3
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding github.com/onsi/ginkgo v1.6.0
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: github.com/creack/[email protected]: unknown revision v1.1.7
go: finding go.uber.org/zap v1.10.0
go: go.uber.org/[email protected]: unknown revision v1.3.2
go: finding github.com/google/go-cmp v0.3.0
go: finding gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
go: finding golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456
go: finding github.com/json-iterator/go v1.1.6
go: github.com/konsorten/[email protected]: unknown revision v1.0.1
go: finding github.com/beorn7/perks v1.0.0
go: finding github.com/google/btree v1.0.0
go: finding github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1
go: finding google.golang.org/grpc v1.20.1
go: finding github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/golang/protobuf v1.3.1
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding github.com/json-iterator/go v1.1.9
go: finding github.com/smartystreets/goconvey v1.6.4
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135
go: finding github.com/google/uuid v1.0.0
go: finding sigs.k8s.io/yaml v1.1.0
go: finding github.com/gogo/protobuf v1.2.1
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding github.com/prometheus/procfs v0.0.2
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding go.uber.org/atomic v1.5.0
go: go.uber.org/[email protected]: unknown revision v1.5.0
go: finding github.com/grpc-ecosystem/grpc-gateway v1.9.5
go: finding google.golang.org/grpc v1.23.0
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding github.com/nats-io/nuid v1.0.1
go: finding github.com/hashicorp/consul/api v1.3.0
go: finding github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/prometheus/client_golang v1.3.0
go: finding github.com/prometheus/common v0.4.1
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding github.com/mattn/go-runewidth v0.0.2
go: finding gopkg.in/yaml.v2 v2.2.5
go: finding google.golang.org/grpc v1.19.0
go: finding github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: finding github.com/openzipkin/zipkin-go v0.2.1
go: finding google.golang.org/grpc v1.22.1
go: finding github.com/gorilla/mux v1.7.3
go: finding cloud.google.com/go v0.26.0
go: finding github.com/edsrzf/mmap-go v1.0.0
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding github.com/Shopify/sarama v1.19.0
go: finding google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
go: finding github.com/oklog/run v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/aws/aws-sdk-go-v2 v0.18.0
go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4
go: finding github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd
go: finding github.com/eapache/go-resiliency v1.1.0
go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: finding golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: finding github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
go: finding go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: finding golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
go: finding golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/gorilla/context v1.1.1
go: finding github.com/census-instrumentation/opencensus-proto v0.2.1
go: finding github.com/stretchr/testify v1.4.0
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: finding github.com/json-iterator/go v1.1.7
go: finding github.com/sony/gobreaker v0.4.1
go: finding github.com/cespare/xxhash/v2 v2.1.1
go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8
go: finding github.com/hashicorp/golang-lru v0.5.1
go: finding github.com/pborman/uuid v1.2.0
go: finding golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding google.golang.org/grpc v1.21.0
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
go: finding github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6
go: finding golang.org/x/text v0.3.2
go: finding github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4
go: finding github.com/stretchr/testify v1.3.0
go: finding go.opencensus.io v0.20.2
go: finding github.com/hpcloud/tail v1.0.0
go: finding honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/prometheus/procfs v0.0.8
go: finding github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743
go: finding google.golang.org/grpc v1.20.0
go: finding github.com/gorilla/mux v1.6.2
go: finding golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: finding github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271
go: finding github.com/envoyproxy/protoc-gen-validate v0.1.0
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding github.com/nats-io/nkeys v0.1.0
go: finding github.com/cenkalti/backoff v2.2.1+incompatible
go: error loading module requirements
Makefile.common:179: recipe for target 'common-lint' failed
make: *** [common-lint] Error 1
root@mfnginx-864665cf6-9wmvp:/tmp/nginx_rtmp_prometheus# 

Compilation on Ubuntu 20.04 not succesful

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.

Bug in Traffic

the nginx-rtmp shows MB/s but exporter just B/s -


there are several:

	bandwidthInNum = n / 1048576 // bandwidth is in bits

should it be replaced by

	bandwidthInNum = n * 1048576 // bandwidth is in bits

???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.