9 Commits

Author SHA1 Message Date
3d86e6efe6 go.mod 管理项目,修复nsqd stats接口json解析失败问题 2023-02-21 14:54:10 +08:00
db85b3fcb4 Add TLS support for nsqd stats connections. 2017-11-29 08:27:55 -08:00
f5cc502874 Refactoring for better Prometheus' logic support
1) Breaking changes! Updated collection code for proper Prometheus support
- Now metrics names of all subcollectors have prefixes:
  nsq_topic_, nsq_channel_, nsq_client_
  As a result metrics registration code now passing Prometheus' client validation,
  also it fixes scrape warnings
- "type" label in exported metrics removed as obsolete
2) Add reset of gauges before scrape (like in haproxy-exporter)
3) Refactor: subcollectors logic is simplified, multiple collectors support removed
   We always use 'stats' collector so it removes unnecessary flexibility and complexity.
2017-02-13 15:56:33 +03:00
18e4915520 Fixes a panic with wrong values in e2elatency 2016-08-05 15:47:59 +02:00
73be4f2a46 added func getPercentile(t *topic, percentile int) float64 2016-05-30 14:43:03 -07:00
30565eb641 squashed commits 2016-04-02 09:06:00 -07:00
76b63dc80d change names for stats sub-collectors 2015-12-21 20:46:02 +01:00
470c5a0ae2 Divide stats collector in sub-collectors.
In order to avoid timeouts in case of many clients,
it should be possible to configure which stats should
be collected.

Implements the following sub-collectors:
 * topics
 * channels
 * clients
2015-12-21 18:13:03 +01:00
37b0428070 initial commit 2015-12-11 15:22:25 +01:00