There is no easy way of doing this (which is deliberate – inspecting
internal state is not an intended part of the exposed interfaces).
But you can do the following:
Call the `Collect` method of the `CounterVec`. Then call the `Write`
method of each `Metric` collected. This gives you `dto.Metric`
structs, which have a `Label` field of type `[]*dto.LabelPair`, which
are the labels you are looking for.
Example of code using a similar approach (in this case to return the
value of a metric):
https://github.com/prometheus/client_golang/blob/v1.6.0/prometheus/testutil/testutil.go#L78
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in