Git Product home page Git Product logo

iscdhcpd_exporter's People

Contributors

spagno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iscdhcpd_exporter's Issues

Unexpected end of JSON input

I have built dhcpd-pools with the config and lease paths that iscdhcpd_exporter expects
When running dhcpd-pools manually I get:

Ranges:
shared net name first ip last ip max cur percent touch t+c t+c perc
All networks 192.168.1.75 - 192.168.1.254 180 12 6.667 13 25 13.889
All networks 192.168.1.2.75 - 192.168.1.2.254 180 0 0.000 0 0 0.000

However, all of iscdhcpd metrics show 0 except of the process.

iscdhcpd_process_up 1
HELP iscdhcpd_summary_defined Overall IPs Defined
TYPE iscdhcpd_summary_defined gauge
iscdhcpd_summary_defined 0
HELP iscdhcpd_summary_free Overall IPs Free
TYPE iscdhcpd_summary_free gauge
iscdhcpd_summary_free 0
HELP iscdhcpd_summary_touched Overall IPs Touched
TYPE iscdhcpd_summary_touched gauge
iscdhcpd_summary_touched 0
HELP iscdhcpd_summary_used Overall IPs Used
TYPE iscdhcpd_summary_used gauge

When running iscdhcpd_exporter with log.level=debug I get this error:

ERRO[0007] Error: exit status 1 source="iscdhcpd_exporter.go:174"
ERRO[0007] Error: unexpected end of JSON input source="iscdhcpd_exporter.go:181"

Building fails with go 1.12.1

Hello,
Tried to build it as readme said, but got

make>> vetting code
go vet ./...
>> checking code style
! gofmt -d $(find . -path ./vendor -prune -o -name '*.go' -print) | grep '^'
GOOS= GOARCH= go get -u honnef.co/go/tools/cmd/staticcheck
>> running staticcheck
/home/henrylf/go-projects/bin/staticcheck -ignore "github.com/prometheus/iscdhcpd_exporter/iscdhcpd_exporter.go:SA1019" ./...
iscdhcpd_exporter.go:283:2: redundant return statement (S1023)
make: *** [Makefile.common:74: staticcheck] Error 1

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.