Say no to yaml

28 views
Skip to first unread message

monika samal

unread,
May 13, 2020, 6:04:19 AM5/13/20
to Prometheus Users
Is there any way of configuring target and metrics to scrape data without yaml file...

Stuart Clark

unread,
May 13, 2020, 6:11:47 AM5/13/20
to monika samal, Prometheus Users
On 2020-05-13 11:04, monika samal wrote:
> Is there any way of configuring target and metrics to scrape data
> without yaml file...

There are tools which will generate the configuration file for you, but
ultimately the YAML configuration file needs to be created for
Prometheus to work.

--
Stuart Clark

Mario

unread,
May 13, 2020, 6:43:43 AM5/13/20
to Prometheus Users


On Wednesday, 13 May 2020 12:04:19 UTC+2, monika samal wrote:
Is there any way of configuring target and metrics to scrape data without yaml file...

If you use the File-based service discovery you can use JSON files for targets if you like that more, but you will need the main YAML config nevertheless.

Brian Candler

unread,
May 13, 2020, 7:53:21 AM5/13/20
to Prometheus Users
YAML is a superset of JSON, so you should be able to write your config in JSON if you prefer.
Reply all
Reply to author
Forward
0 new messages