[Add] prometheus
This commit is contained in:
@@ -5,4 +5,6 @@ services:
|
|||||||
- 2379:2379
|
- 2379:2379
|
||||||
- 2380:2370
|
- 2380:2370
|
||||||
confd:
|
confd:
|
||||||
build: docker/confd
|
build: docker/confd
|
||||||
|
prometheus:
|
||||||
|
build: docker/prometheus
|
||||||
16
docker/prometheus/Dockerfile
Normal file
16
docker/prometheus/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM openeuler/openeuler:24.03
|
||||||
|
|
||||||
|
RUN dnf update -y && \
|
||||||
|
dnf clean all && \
|
||||||
|
rm -rf /var/cache/dnf/*
|
||||||
|
|
||||||
|
RUN curl -fsSL https://github.com/prometheus/prometheus/releases/download/v2.54.0/prometheus-2.54.0.linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
|
||||||
|
mv /usr/local/bin/prometheus-*/prometheus /usr/local/bin/prometheus && \
|
||||||
|
rm /usr/local/bin/prometheus-* -rf && \
|
||||||
|
chmod +x /usr/local/bin/prometheus
|
||||||
|
|
||||||
|
RUN mkdir /etc/prometheus/ && \
|
||||||
|
touch /etc/prometheus/prometheus.yml
|
||||||
|
|
||||||
|
CMD ["prometheus", "--config.file=/etc/prometheus/prometheus.yml"]
|
||||||
|
|
||||||
Reference in New Issue
Block a user