Giter Site home page Giter Site logo

Comments (7)

StianOvrevage avatar StianOvrevage commented on August 20, 2024

Hi!

It should have been fixed with the update they did to the container 4 years ago. Are you using the latest image version? Try using a tagged Docker image, for example:

docker pull prom/blackbox-exporter:v0.18.0

from stian.tech.

veer123prathap avatar veer123prathap commented on August 20, 2024

we are using v0.16.0
Do we need root access for container where black box exporter running

from stian.tech.

StianOvrevage avatar StianOvrevage commented on August 20, 2024

Try v0.18.0 then.

If that does not work then you may need to use root / privileged access, yes.

from stian.tech.

veer123prathap avatar veer123prathap commented on August 20, 2024

FROM quay.io/prometheus/busybox:latest
COPY blackbox.yml /etc/blackbox_exporter/config.yml
USER root
EXPOSE 9115
ENTRYPOINT [ "/bin/blackbox_exporter" ]
CMD [ "-config.file=/etc/blackbox_exporter/config.yml" ]

from stian.tech.

veer123prathap avatar veer123prathap commented on August 20, 2024

this is our docker file still we are facing same issue

from stian.tech.

StianOvrevage avatar StianOvrevage commented on August 20, 2024

I don't have experience with Openshift and how it deals with permissions. You may have more luck creating an issue or asking in an Openshift community, or directly in the prometheus repos.

from stian.tech.

veer123prathap avatar veer123prathap commented on August 20, 2024

We need to apply this config at target serve side
distribution may configure net.ipv4.ping_group_range by default in /etc/sysctl.conf or similar. If not you can set net.ipv4.ping_group_range = 0 2147483647 to allow any user the ability to use ping.
do we need to run this config at container side where black running
Alternatively the capability can be set by executing setcap cap_net_raw+ep blackbox_exporter
is that right
is something wrong please correct me

from stian.tech.

Related Issues (1)

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.