client_golang/prometheus
Bernerd Schaefer 71dd60e431 Registry and Metrics implement json.Marshaler
* Drop `AsMarshallable()` from the Metric interface. Use
  `json.Marshaler` and `MarshalJSON()`, and leverage JSON struct tags
  where possible.

* Add `MarshalJSON()` to Registry and remove `dumpToWriter`, which
  makes the registry handler much simpler.

In addition to simplifying some of the marshalling behavior, this also
has the nice side effect of cutting down the number of
`map[string]interface{}` instances.
2013-04-19 15:07:24 +02:00
..
exp Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
.gitignore Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
Makefile Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
accumulating_bucket.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
accumulating_bucket_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
bucket.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
constants.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
counter.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
counter_test.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
distributions.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
documentation.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
eviction.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
eviction_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
gauge.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
gauge_test.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
helpers_for_testing.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
histogram.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
histogram_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
interface.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
metric.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
priority_queue.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
priority_queue_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
prometheus_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
registry.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
registry_test.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
signature.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
signature_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
statistics.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
statistics_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
tallying_bucket.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
tallying_bucket_test.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00
telemetry.go Registry and Metrics implement json.Marshaler 2013-04-19 15:07:24 +02:00
test_helper.go Rearrange file and package per convention. 2013-04-04 15:27:09 +02:00