Skip to content

Commit

Permalink
Merge pull request #7 from vinted/feature/add_basics_prometheus_metrics
Browse files Browse the repository at this point in the history
rest-dhcpd: add basic prometheus metrics
  • Loading branch information
Seitanas authored Mar 3, 2023
2 parents e62bc17 + 402dd1f commit b4a38ca
Show file tree
Hide file tree
Showing 6 changed files with 574 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ REST API supports following methods:
### API endpoints

`/` - supports `GET` method. Displays index page.
`/metrics` - supports `GET` method. Displays prometheus metrics.
`/clients` - supports `GET` method. Lists all configured clients.
`/client/AA:BB:CC:DD:EE:FF` - supports:
- `GET` - displays configuration of a client defined by `AA:BB:CC:DD:EE:FF` `MAC` address.
Expand Down
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@ module github.com/vinted/rest-dhcpd
go 1.19

require github.com/krolaw/dhcp4 v0.0.0-20190909130307-a50d88189771

require github.com/julienschmidt/httprouter v1.3.0

require github.com/samber/lo v1.37.0

require github.com/prometheus/client_golang v1.14.0

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
Loading

0 comments on commit b4a38ca

Please sign in to comment.