Hello,

In our cephadm installed cluster (pacific) we are running two instances of
prometheus.

Through altering the prometheus.yml.j2 template (ceph config-key set
mgr/cephadm/services/prometheus/prometheus.yml ...) we set the prometheus'
to remote write to a corporate setup for long time retention of metrics)

As we have two prometheus instances we need a way to create a unique label
to not have clashing data in the upstream setup.

So far we haven't been able to do that in this template:

https://github.com/ceph/ceph/blob/v16.2.10/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2

other than something like:

====
      - target_label: prometheus_replica
        replacement: 'prometheus-{{ range(1, 51) | random }}'
====

And keeping fingers crossed that "random" won't be the same two times in a
row.

Do anyone have a better idea on how to do this?

Best regards,
Lasse Aagren
_______________________________________________
ceph-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to