Giter Club home page Giter Club logo

Comments (7)

emilento avatar emilento commented on September 21, 2024

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" ]

from grafana-mikrotik.

jckefan avatar jckefan commented on September 21, 2024

Thanks for the tip @emilento

Unfortunately, at the moment $__rate_interval is currently broken when using Grafana + Prometheus ARM binaries. So you end up getting lots of "bad_data" error in the graphs.

from grafana-mikrotik.

leo15dev avatar leo15dev commented on September 21, 2024

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) ?

from grafana-mikrotik.

jckefan avatar jckefan commented on September 21, 2024

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) ?

Are you using 32-bit or 64-bit binaries?

from grafana-mikrotik.

leo15dev avatar leo15dev commented on September 21, 2024

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) ?

Are you using 32-bit or 64-bit binaries?

https://github.com/prometheus/snmp_exporter/releases/download/v0.20.0/snmp_exporter-0.20.0.linux-arm64.tar.gz

This One.

from grafana-mikrotik.

jckefan avatar jckefan commented on September 21, 2024

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) ?

Are you using 32-bit or 64-bit binaries?

https://github.com/prometheus/snmp_exporter/releases/download/v0.20.0/snmp_exporter-0.20.0.linux-arm64.tar.gz

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.

from grafana-mikrotik.

leo15dev avatar leo15dev commented on September 21, 2024

Grafana and Prometheus run with the docker container, both images OS which I used are linux/arm64/v8,.

from grafana-mikrotik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.