Prometheus agent mode flag

139 views
Skip to first unread message

ritesh patel

unread,
Jul 21, 2022, 6:32:01 AM7/21/22
to promethe...@googlegroups.com
Hello Team, 

I have prometheus running ad a docker container on docker. I want to use prometheus as aagent mode. 
So can someone guide me where I need to put this flag —enable-feature=agent . 
On prometheus.yml or something else. 

On kubernet i did same things on pass this flag on deployment but on docker where? 


Thanks and regards 
Ritesh Patel 

Stuart Clark

unread,
Jul 21, 2022, 8:19:41 AM7/21/22
to ritesh patel, promethe...@googlegroups.com

You need to adjust the command line to add that.

How you do it depends on how you are managing your Docker containers. For example using Terraform, Docker Compose, etc. all have different methods for setting the command line for a container.

-- 
Stuart Clark

ritesh patel

unread,
Jul 21, 2022, 8:35:05 AM7/21/22
to Stuart Clark, promethe...@googlegroups.com
Yea, i fixed it. Using same flag on command. 

Now I have one question. How to verify Prometheus working as a agent mode? 

How we can verify prometheus work as a agent mode? 

Thanks and Regards
Ritesh Patel 
Reply all
Reply to author
Forward
0 new messages