Commit Graph

33 Commits

Author SHA1 Message Date
Bartosz "mastier" Woronicz
9621ce9654 add support for LTE interface 2021-03-25 20:13:11 +01:00
Steve Brunton
ac29090723
Merge pull request #95 from lnicolas83/add_cpu-temperature
Add cpu-temperature to health collector
2021-03-22 22:51:29 -04:00
Steve Brunton
605780990f
Merge pull request #79 from siretart/wifi
wlansta: Record wifi signal strength
2021-03-22 22:38:24 -04:00
Nicolas Lisoski
7f22da9226 Add cpu-temperature to health collector 2020-08-10 11:31:57 +02:00
Martin Milata
554b72fa88 Add connection tracking collector 2020-05-08 00:03:05 +02:00
w1kl4s
d3285ba301
Add 10G rate for interface (#73) 2020-04-07 23:13:25 -04:00
Steve Brunton
72ec3c2ce0
collect firmware version (#82)
collect packages/firmware versions and export them as labels for gauge under :

mikrotik_system_package

* updated versions of dependent libs
* fetch firmware version as gauge
* fixed the things that needed to be fixed
2020-04-07 23:06:38 -04:00
Reinhard Tartler
aa5ef26ed3 wlansta: Record wifi signal strength
signal-strength-ch0 is only accurate for devices with one antenna. Many
mikrotik devices have two, or even three channels, and just looking at ch0 is
not helpful in those cases.

Instead, look at the property 'signal-strength'. Annoyingly, it is does come as
a string with the negotiated bandwidth attached (e.g.,
signal-strength=-66dBm@HT20-7) which needs to be parsed out.
2020-03-30 06:55:15 -04:00
Ben Reedy
3b33400d24
Add health collector (#70)
* Add health collector for voltage & temperature
* Run gofmt
* Add help text to health collector
2020-02-10 13:55:10 -05:00
wolmi
d723fdfe38
Added support to auto discovery with SRV DNS registry (#60)
* Added support to auto discovery witih SRV

The yaml configuration has been modified to suport srv parameters.
Now the name is taken form the router identity to allow dynamic
discovery of devices based on SRV registry.

* Corrected format

* feat(collector): Added support to use custom DNS

* feat(collector): get default dns server from resolv.conf

* Remove getIdentity on the static config devices
2020-02-03 22:03:45 -05:00
Daniel Hodges
c00607abe0
Fix routes collector to be compatible with latest RouterOS release (#66)
* Fix routes collector to be compatible with latest RouterOS release

Tested on RouterOS 6.46.1

* remove ipv6 pool collector
2020-02-03 21:33:02 -05:00
Welby McRoberts
5cea9840a7 w60g Interface collector (#63)
Allow the collection of w60g interface statistics.
2019-12-26 13:20:24 -05:00
Welby McRoberts
55ae663ce3 Custom API port (#62)
Adds ability to specify API Port, either via CLI or in config. If port is not provided, default is used, taking into account if TLS is enabled or not
2019-12-26 13:17:27 -05:00
Jesus Rafael Carrillo
9ceb56fdbf Fix validate that string is not empty before strconv.ParseFloat (#59)
Thanks. I could have sworn I went through already and done this at one point in time, but I guess not.
2019-12-02 22:01:36 -05:00
Steve Brunton
5cccba9e17
switch to go modules (#58)
setup for go modules and remove vendor directory.
2019-11-16 00:05:31 -05:00
Steve Brunton
60bb04d0e7
dialers with timeouts (#57)
* added Dials with timeouts to deal with dead devices
* bump for version release
2019-11-11 17:13:46 -05:00
Welby McRoberts
9fc2841a61 PoE collector (#54)
Thanks for the PR.

* PoE collector
* Correcting mistake in comment for WithPOE function
2019-10-24 21:12:19 -04:00
Gábor Fási
c757fc7216 Create ipsec collector (#51) 2019-10-24 21:11:05 -04:00
devi1
f1f09b42bb DHCP Lease Collector (#50)
* DHCP Leases Collector

Add Information about DHCP Leases:
* Active MAC Address
* Active Address
* Hostname
* Status
* Expire time

* Modified resource collector

Add Boardname and RouterOS version metrics
2019-09-02 14:50:20 -04:00
Steve Brunton
beb09ce540
[ci skip] monitor data for ethernet ports (#45)
* fix import name conflict
* adding in ethernet monitor information via prometheus gauge
* set CGO_ENABLED env var on build
2019-08-20 22:11:03 -04:00
Steve Brunton
8e1ece22dd
#36 attempt to fix api login auth issue (#38)
* #36 attempt to fix api login auth issue
* update release version number
2019-07-02 20:46:19 -04:00
Steve Brunton
81e258fec1
fix uptime regex and lazy coding for #34 (#35)
* fix uptime regex and lazy coding for #34
* [ci skip] version bump for merge
2019-02-21 22:39:25 -05:00
Steve Brunton
aee1517c10
uptime metric reporting (#32) 2019-01-02 16:16:09 -05:00
Jarred Trainor
0f7d5bea2c Handle empty properties when collecting interface metrics (#20)
Instead of logging an error, check if a property is empty before attempting to
call strconv.ParseFloat on it.

ERRO[0005] error parsing interface metric value device=gw error="strconv.ParseFloat: parsing \"\": invalid syntax" interface=ether2 property=tx-drop value=
2018-10-31 22:40:11 -04:00
Robert S. Gerus
25911b4e60 Add wlan station and interface metrics collection. (#14)
* Fix newlines.
* Added wlan metrics.
* Fix WlanSTA collector - return on errors.
2018-09-10 23:30:13 -04:00
Daniel Czerwonk
eb9269527d fixed bgp collector (#12) 2018-05-21 16:56:21 -04:00
Daniel Czerwonk
39e54be98d Added optical diagnostic metrics (#10) 2018-05-07 14:31:19 -04:00
Daniel Czerwonk
d170b0a4d2 More features (#9)
* added config file implementation, refactoring
* add gitignore
* improved test
* preperations for more metrics
* added resource metrics
* added first bgp metrics
* added asn as label for bgp metrics
* added prefix and message counts to bgp metrics
* simplified
* Update README.md
* added yaml dependency
* fixed go routine call
* added timeout
* clean up
* added TLS support
* set default api port for TLS
* added routes metric
* added missing log information
* added type collectorContext to reduce the count of parameters for better readability
* added DHCP and DHCPv6 metrics
* filter for active dhcp leases only
* added pool metrics
* enable/disable feature in config file
* refactoring

* clean up

* comment fix
2018-04-11 09:21:38 -04:00
Daniel Czerwonk
f2866a3a2f News features and improvements (#8)
* added config file implementation, refactoring

* add gitignore

* improved test

* preperations for more metrics

* added resource metrics

* added first bgp metrics

* added asn as label for bgp metrics

* added prefix and message counts to bgp metrics

* simplified

* Update README.md

* added yaml dependency

* fixed go routine call

* added timeout

* clean up

* added TLS support

* set default api port for TLS

* added routes metric

* added missing log information
2018-03-20 21:28:10 -04:00
Steve Brunton
be3ca4608c
update logging (#5)
* removed Zap logging and switched to logrus
* "deprecating" the prometheus.go file and fixed up logging stuff on a couple more files.
* removed uber zap from glide
* well that sure messed things up
2017-11-29 22:42:59 -05:00
Steve Brunton
2ea8ca8447 re-worked to actually properly work at collecting metrics 2017-11-28 23:58:39 -05:00
Steve Brunton
e738cf67ec refactor moving things around 2017-10-22 16:33:05 -04:00
Steve Brunton
a0251ca4e8 creating some more files 2017-10-03 22:24:14 -04:00