boulder/metrics
Jacob Hoffman-Andrews 5b9d737380 Fix statsd->prometheus bridge. (#2828)
In #2752, I accidentally introduced a change that would use a NewRegistry for
each NewPromScope, ignoring the Registry that was passed as an argument. Because
this registry was not attached to any HTTP server, the results would not get
exported. This fixes that, so the Registry passed into NewPromScope is
respected.

In the process, I noticed that stats were getting prefixed by a spurious "_". I
fixed that by turning prefix into a slice of strings, and combining them with "_"
only if it the slice is non-empty.

Fixes #2824.
2017-06-26 14:07:30 -04:00
..
measured_http Collapse switch cases. 2017-05-31 14:17:55 -07:00
mock_metrics Use fields, not globals, for stats (#2790) 2017-06-06 12:09:31 -07:00
auto.go Fix statsd->prometheus bridge. (#2828) 2017-06-26 14:07:30 -04:00
auto_test.go Fix statsd->prometheus bridge. (#2828) 2017-06-26 14:07:30 -04:00
scope.go Fix statsd->prometheus bridge. (#2828) 2017-06-26 14:07:30 -04:00
scope_test.go Fix statsd->prometheus bridge. (#2828) 2017-06-26 14:07:30 -04:00