Hello,
I've a flat file with some metrics. This was created as a CounterVec and
with the following code.
```
processedTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "app_processed_total",
Help: "Number of times ran",
}, []string{"status"})
```
This was then serialized by expfmt.MetricFamilyToText() and produces the
following flat file.
```
# HELP app_processed_total Number of times ran
# TYPE app_processed_total counter
app_processed_total{status="ok"} 300
```
I would like to serialize this back to a CounterVec.
I've thus far followed this example,
https://github.com/prometheus/client_golang/blob/master/prometheus/examples_test.go#L620,
along with expfmt.ExtractSamples and ended with a Vector. Is this approach
correct? How can I go from here to make this Vector into a CounterVec?
Regards,
Derrick
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/82b08f3a-4089-46bf-a7cc-553de1b46aa6n%40googlegroups.com.