Yes. I tried setting this flag but the pod goes in crashloopbackoff. Below 
are my docker file and entrypoint.sh. 

 *Docker file :*

FROM prom/pushgateway:v0.9.0
LABEL maintainer "MYCOM OSI"


# Allowed: debug, info, warn, error
ENV LOGLEVEL=warn

ADD /entrypoint.sh /bin/entrypoint.sh
USER root
RUN chmod +x /bin/entrypoint.sh
USER 65534

ENTRYPOINT [ "/bin/entrypoint.sh" ]

*Entrypoint.sh*

#!/bin/sh
exec "/bin/pushgateway --log.level=warn --web.enable-lifecycle 
--web.enable-admin-api"

Please tell me if there is anything wrong in the syntax.

On Wednesday, April 29, 2020 at 6:00:54 PM UTC+5:30, Stuart Clark wrote:
>
> On 2020-04-29 08:20, Nidhi Sharma wrote: 
> > Thanks for replying Stuart. Even if I use service DNS, i can't access 
> > any API inside the pushgateway container. Below is the command. I get 
> > 404. 
> > wget http://eaa-platform-pushgateway:9091/api/v1/status 
> > 
>
> As you are getting a 404 it sounds like you are hitting the container 
> correctly. Have you enabled the web API using --web.enable-admin-api? 
>
> -- 
> Stuart Clark 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/d6c660e2-18a1-401b-80f1-446cab4d790a%40googlegroups.com.

Reply via email to