Skip to content

Commit a1eb86a

Browse files
committed
update Dockerfile for prometheus
Signed-off-by: hwassman <[email protected]>
1 parent 4e22991 commit a1eb86a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ ARG HTTPPROTOCOL=http
2828
ENV PROTOCOL=$HTTPPROTOCOL
2929
RUN echo "the HTTP/S protocol is set to $PROTOCOL"
3030

31-
ARG HTTPPORT=4242
31+
ARG HTTPPORT=None
3232
ENV PORT=$HTTPPORT
33-
RUN echo "the HTTP/S port is set to $PORT"
33+
RUN echo "the OpentTSDB API HTTP/S port is set to $PORT"
34+
35+
ARG PROMPORT=None
36+
ENV PROMETHEUS=$PROMPORT
37+
RUN echo "the Prometheus API HTTPS port is set to $PROMETHEUS"
3438

3539
ARG PERFMONPORT=9980
3640
ENV SERVERPORT=$PERFMONPORT
@@ -125,8 +129,8 @@ RUN chown -R $UID:$GID /opt/IBM/bridge && \
125129
# Switch user
126130
USER $GID
127131

128-
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
132+
CMD ["sh", "-c", "python3 zimonGrafanaIntf.py -c 10 -s $SERVER -r $PROTOCOL -p $PORT -e $PROMETHEUS -P $SERVERPORT -t $TLSKEYPATH -l $LOGPATH --tlsKeyFile $TLSKEYFILE --tlsCertFile $TLSCERTFILE --apiKeyName $APIKEYNAME --apiKeyValue $APIKEYVALUE"]
129133

130-
EXPOSE 4242 8443
134+
EXPOSE 4242 8443 9250
131135

132136
#CMD ["tail", "-f", "/dev/null"]

0 commit comments

Comments
 (0)