*Note:* I've also asked the same question on stackoverflow as well [here
<https://stackoverflow.com/questions/66376186/append-new-labels-to-existing-list-of-lables-in-prometheus-metrics>].
I'd appreciate some pointers to docs.
*Question Begins*
I've an existing histogram metric which is being published with
**job_type** label
```go
var executionTime = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Name: "job_execution_time",
Help: "Histogram for job execution time",
},
[]string{"job_type"},
)
```
I'm publishing metric in the following manner
```go
executionTime.WithLabelValues("aws_lambda").Observe(timeInSeconds)
```
Note that this metric is already getting published. However now I want to
append a new label **cloud_provider** to the existing metric like below.
```go
var executionTime = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Name: "job_execution_time",
Help: "Histogram for job execution time",
},
[]string{"job_type", "cloud_provider"},
)
```
1. Does Prometheus supports such mutation of metrics?
2. If no why is it not supported? If yes are there any implications on
metric data stored for previous combinations of labels?
--
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/55bbd0b8-b980-4361-9174-22a41c003788n%40googlegroups.com.