Raspberry Pi support for 'snmp_exporter_mikrotik' docker image?
jckefan opened this issue · comments
After much troubleshooting, I finally figured out why the snmp docker container wasn't starting on RPi 3, turns out that docker image only supports x64 machine type not arm type. The armv7 binaries for snmp_exporter are already available would you be able to add support for that. Thanks
P.S: I'm a total noob, when it comes to docker, so I haven't been able to come up with a solution for fixing the issue.
Hey @jckefan, @IgorKha
I am using the following Dockerfile
which automatically downloads proper version of snmp_exporter
based on provided arguments:
FROM alpine:latest
ARG VERSION=0.20.0
ARG ARCH=arm7
ARG OS=linux
RUN apk add --no-cache curl; \
cd bin; \
curl --fail --location --output snmp_exporter.tar.gz --silent --show-error "https://github.com/prometheus/snmp_exporter/releases/download/v${VERSION}/snmp_exporter-${VERSION}.${OS}-${ARCH}.tar.gz"; \
tar -xzf snmp_exporter.tar.gz; \
mv "snmp_exporter-${VERSION}.${OS}-${ARCH}/snmp_exporter" snmp_exporter; \
chmod +x /bin/snmp_exporter; \
rm -rf "snmp_exporter-${VERSION}.${OS}-${ARCH}"; \
rm snmp_exporter.tar.gz;
COPY snmp.yml /etc/snmp_exporter/snmp.yml
EXPOSE 9116
ENTRYPOINT [ "/bin/snmp_exporter" ]
CMD [ "--config.file=/etc/snmp_exporter/snmp.yml" ]
I do not have the issue with the $__rate_interval
when I run Grafana-Mikrotik
on the RPi4 B (Ubuntu 20.04.4 LTS). Could you try again by using the latest images (Grafana + Prometheus) ?
I do not have the issue with the
$__rate_interval
when I runGrafana-Mikrotik
on the RPi4 B (Ubuntu 20.04.4 LTS). Could you try again by using the latest images (Grafana + Prometheus) ?
Are you using 32-bit or 64-bit binaries?
I do not have the issue with the
$__rate_interval
when I runGrafana-Mikrotik
on the RPi4 B (Ubuntu 20.04.4 LTS). Could you try again by using the latest images (Grafana + Prometheus) ?Are you using 32-bit or 64-bit binaries?
This One.
I do not have the issue with the
$__rate_interval
when I runGrafana-Mikrotik
on the RPi4 B (Ubuntu 20.04.4 LTS). Could you try again by using the latest images (Grafana + Prometheus) ?Are you using 32-bit or 64-bit binaries?
This One.
Sorry for not being clear enough in the initial query. I was asking for the Grafana and Prometheus binaries types. AFAIK, the issue only affects ARMv7 binaries or RPi 3B models or whatever. The issue is even when I'm running the latest version of Grafana, Prometheus and SNMP_Exporter, I always get 'bad_data parse error' when using $__rate_interval
variable.
P.S.: This issue isn't exclusive to IgorKha's Mikrotik dashboard, it also affects all other dashboard that utilize this variable.
Grafana and Prometheus run with the docker container, both images OS which I used are linux/arm64/v8,.