Note: I've also asked the same question on stackoverflow as well [
here]. 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?