GithubHelp home page GithubHelp logo

diegogslomp / api_exporter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 505 KB

๐Ÿ“ˆ API Temperature Exporter for Prometheus

Home Page: https://hub.docker.com/r/diegogslomp/api_exporter

Dockerfile 4.77% Python 95.23%
metrics prometheus prometheus-exporter grafana temperature api python exporter

api_exporter's Introduction

api_exporter

API Exporter for Prometheus. Read temperatures and set gauges every minute.

  1. Local development
git clone --single-branch https://github.com/diegogslomp/api_exporter
cd api_exporter

# Create and activate a virtual environment (optional)
python -m pipenv install
python -m pipenv shell

# Copy and edit enviroment variables file
cp .example.env .env

# Install dependencies
pip install -r requirements

# Run script
python exporter/exporter.py
  1. Docker image
docker run \
  -e API_HOST="10.0.0.10" \
  -e API_PORT="8002" \
  -e API_USER="admin" \
  -e API_PASSWORD="SecretTempP4ss!" \
  -p 8083:8083 \
  --name exporter diegogslomp/api_exporter
  1. Docker compose (Ctrl+c to exit logs)
git clone --single-branch https://github.com/diegogslomp/api_exporter
cd api_exporter

# Copy and edit enviroment variables file
cp .example.env .env

docker compose up -d
docker compose logs -f

api_exporter's People

Contributors

diegogslomp avatar

Watchers

 avatar  avatar

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.