If we don't explain any external_labels
in Prometheus configuration file for Thanos, what will happen?
For example, I have two Prometheuses and they are scraping the same endpoint, so their external_labels is like this:
prometheus1:
global:
external_labels:
replica: 1
prometheus2:
global:
external_labels:
replica: 2
At this point, we know that two kind of metrics will be saved in the object storage, metrics with replica=1 label and replica=2 label. If I delete the external_labels from configuration file, how many metrics will be saved in the object storage?
I found the answer.
based on this doc,
And if you don't declare one for your Prometheus, TSDB blocks wont be uploaded to your object storage and you gonna receive this error from sidecar: