diff --git a/grafana-agent/0.43.1/22.03-lts-sp3/Dockerfile b/grafana-agent/0.43.1/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..978a587f78ae573566547e4ef2587f692ae8534b --- /dev/null +++ b/grafana-agent/0.43.1/22.03-lts-sp3/Dockerfile @@ -0,0 +1,14 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=0.43.1 + +RUN curl -fSL --output grafana-agent.rpm https://github.com/grafana/agent/releases/download/v${VERSION}/grafana-agent-${VERSION}-1.${TARGETARCH}.rpm && \ + yum -y install grafana-agent.rpm && \ + rm -rf grafana-agent.rpm + +COPY agent.yaml /etc/agent/agent.yaml + +ENTRYPOINT ["grafana-agent"] +CMD ["--config.file=/etc/agent/agent.yaml", "--metrics.wal-directory=/etc/agent/data"] diff --git a/grafana-agent/0.43.1/22.03-lts-sp3/agent.yaml b/grafana-agent/0.43.1/22.03-lts-sp3/agent.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5aae63db4f56f63b91419147a609f19966909a61 --- /dev/null +++ b/grafana-agent/0.43.1/22.03-lts-sp3/agent.yaml @@ -0,0 +1,17 @@ +server: + log_level: info + +metrics: + global: + scrape_interval: 1m + configs: + - name: test + host_filter: false + scrape_configs: + - job_name: local_scrape + static_configs: + - targets: ['127.0.0.1:12345'] + labels: + cluster: 'localhost' + remote_write: + - url: http://localhost:9009/api/prom/push \ No newline at end of file diff --git a/grafana-agent/meta.yml b/grafana-agent/meta.yml index 7b2ac1eddcae18c1c614f1c22f9e3f3e8a750699..35450941490dbbbf3033900bddefdf6fd1d48750 100644 --- a/grafana-agent/meta.yml +++ b/grafana-agent/meta.yml @@ -1,2 +1,4 @@ 0.40.2-oe2203sp3: - path: grafana-agent/0.40.2/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: grafana-agent/0.40.2/22.03-lts-sp3/Dockerfile +0.43.1-oe2203sp3: + path: grafana-agent/0.43.1/22.03-lts-sp3/Dockerfile \ No newline at end of file