TritonDataCenter / node-artedi

a library for measuring fish
2 stars 4 forks source link

Create an accessor function for collector values #9

Closed KodyKantor closed 6 years ago

KodyKantor commented 7 years ago

Components that include artedi collectors should be able to test that artedi integration is working. This is possible today, but it would require either parsing the serialized string output, or accessing private collector fields (which isn't a stable interface).

What we can do is add an accessor function that can be called on the child collectors to retrieve their current values. This will be pretty easy for the counter, gauge, and absoluteGauge collectors, and more difficult for histograms.

KodyKantor commented 6 years ago

Integrated in 1acdf3f . Closing the issue now.