Giter Site home page Giter Site logo

compose-prometheus's People

Contributors

betaredex avatar larsks avatar pkhander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

compose-prometheus's Issues

Try to create compose-generator.yml

root@grafana:/opt/containers/compose-prometheus# docker-compose -f compose-generator.yml up
Recreating compose-prometheus_snmp-generator_1 ... error

ERROR: for compose-prometheus_snmp-generator_1 Cannot start service snmp-generator: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown

ERROR: for snmp-generator Cannot start service snmp-generator: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown
ERROR: Encountered errors while bringing up the project.

Suggestions for docker-compose.yml

In the configuration for the snmp exporter:

snmp-exporter:
image: prom/snmp-exporter
volumes:
- ./snmp_exporter/:/etc/snmp_exporter/
expose:
- 9116
ports:
- 9116:9116
- 116:116/udp
networks:
- public

It's not necessary to use the expose directive. This is almost never necessary, and you're not using it on your other containers.

I don't think you need to publish UDP port 116, either. What service is using that port?

Lastly, I don't think you even need to publish tcp port 9116 for this container. It only needs to be reachable from the prometheus container, which since it is on the same network will be able to access the service regardless of whether or not it is published.

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.