setting unique labels in cephadm installed (pacific) prometheus.yml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux