http://prometheus.example.com/prom/config

33 views
Skip to first unread message

Evelyn Pereira Souza

unread,
Jun 7, 2021, 9:27:25 AM6/7/21
to Prometheus Users
Hi

I edit of my prometheus.yml and is no longer formatted so nicely.

Can I copy from prometheus.example.com/prom/config to the prometheus.yml
and nothing is lost? Say it the identical config as in my file?
This webUI endpoint pretty print the config?

kind regards
Evelyn
OpenPGP_0x61776FA8E38403FB.asc
OpenPGP_signature

Bjoern Rabenstein

unread,
Jun 9, 2021, 4:04:30 PM6/9/21
to Evelyn Pereira Souza, Prometheus Users
Technically, it should do exactly the same. However, comments and any
custom indentation/line-breaks/etc. are all lost.

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

Evelyn Pereira Souza

unread,
Jun 10, 2021, 11:49:36 AM6/10/21
to Bjoern Rabenstein, Prometheus Users
On 09.06.21 22:04, Bjoern Rabenstein wrote:
> On 07.06.21 15:27, 'Evelyn Pereira Souza' via Prometheus Users wrote:
>>
>> I edit of my prometheus.yml and is no longer formatted so nicely.
>>
>> Can I copy from prometheus.example.com/prom/config to the prometheus.yml and
>> nothing is lost? Say it the identical config as in my file?
>> This webUI endpoint pretty print the config?
>
> Technically, it should do exactly the same. However, comments and any
> custom indentation/line-breaks/etc. are all lost.

Hi Bjoern

Thank you. I found out the hard way that passwords are replaced with
<secret>. Everything else was working.

best regards
Evelyn

OpenPGP_0x61776FA8E38403FB.asc
OpenPGP_signature

Bjoern Rabenstein

unread,
Jun 18, 2021, 6:42:39 PM6/18/21
to Evelyn Pereira Souza, Prometheus Users
Oooof, and yes, I should have thought about that. I forgot the most
obvious thing because we had so much discussions already about the
line-break and comment topic... (o:
Reply all
Reply to author
Forward
0 new messages