Giter VIP home page Giter VIP logo

prometheus-upsc-exporter's Introduction

prometheus_upsc_exporter

lightweight docker build for exporting nut's upsc into prometheus.

container listens on :9614

Examples

simplest docker run example

docker run -p9614:9614 -d jzck/upsc-exporter -e UPS_TARGET=ups@localhost --network=host

Make sure an upsd server is running on the host so that upsc can contact it.

docker-compose with nut-upsd server

basic compose setup with upshift/nut-upsd

services:
  nut-upsd:
    image: upshift/nut-upsd
    user: root
    restart: unless-stopped
    privileged: true
    expose:
      - 3493
    environment:
      - "SHUTDOWN_CMD=shutdown -h now"
      - "API_USER=upsmon"
      - "API_PASSWORD=secret"

  prom-upsc:
    image: jzck/upsc-exporter
    restart: unless-stopped
    depends_on:
      - nut-upsd
    environment:
      - "UPS_TARGET=ups@nut-upsd:3493"
    expose:
      - 9614

Can also be used with another upsd, just make sure the container can see the

prometheus-upsc-exporter's People

Contributors

jzck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

prometheus-upsc-exporter's Issues

Run exporter on remote docker host

Is there a way to run the exporter on a remote Docker host?
Already tried those:

docker run -p 9614:9614 --name usv -d jzck/upsc-exporter -e "[email protected]"
docker run -p 9614:9614 --name usv -d jzck/upsc-exporter -e "[email protected]:3493 upsremote secret slave"

It ends always with such an error:
line: inetd: [email protected]: No such file or directory

On server side:
Port is open:
tcp LISTEN 0 16 192.168.159.10:3493 0.0.0.0:*
User is created:

[upremote]
  password = secret
  upsmon slave 

Any idea? Thx!

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.