Coder Social home page Coder Social logo

solax-cloud-prometheus-exporter's Introduction

solax-cloud-prometheus-exporer

Prometheus exporter for inverter data readouts from public solax cloud api. (currently only exports data i need, will maybe add support for selecting wanted data later)

Using Go 1.19 or newer

go install github.com/davidprokopec/solax-cloud-prometheus-exporter@latest

Usage

Metrics prefix is solaxcloud_

Run from shell

If you downloaded the source code and built it, you can run it from shell:

./solax-cloud-prometheus-exporter -address "<your_api_address>" -listen 0.0.0.0:8886

Run from docker

The docker image is built for amd64 and arm64 platforms, since I myself use arm64 on my server.

docker run ghcr.io/davidprokopec/solax-cloud-prometheus-exporter:latest -address "<your_api_address>"

Deployment

Configuration for scraping from Prometheus

metrics:
  configs:
    - name: default
      scrape_configs:
        - job_name: 'solaxcloud_exporter'
          scrape_interval: 120s
          static_configs:
            - targets: ['solaxcloud-exporter:8886']

Example docker-compose configuration

version: '3.3'
services:
  solaxcloud-exporter:
    container_name: monitoring-solaxcloud_exporter
    image: ghcr.io/davidprokopec/solax-cloud-prometheus-exporter
    command:
      - '-address=https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=<your_token>&sn=<your_sn>'
    restart: unless-stopped
    networks:
      - monitoring

Acknowledgement

Original project taken from loafoe: https://github.com/loafoe/prometheus-solaxrt-exporter (Would not be able to make this in Go without it!)

License

License is MIT

solax-cloud-prometheus-exporter's People

Contributors

davidprokopec avatar

Watchers

 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.