Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loafoe/prometheus-solaxcloud-exporter
Promethues exporter for SolaxCloud inverter data
https://github.com/loafoe/prometheus-solaxcloud-exporter
prometheus-exporter solax solax-inverter solax-power
Last synced: about 1 month ago
JSON representation
Promethues exporter for SolaxCloud inverter data
- Host: GitHub
- URL: https://github.com/loafoe/prometheus-solaxcloud-exporter
- Owner: loafoe
- License: mit
- Created: 2022-09-19T19:46:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T19:01:44.000Z (over 1 year ago)
- Last Synced: 2024-06-20T16:48:07.129Z (7 months ago)
- Topics: prometheus-exporter, solax, solax-inverter, solax-power
- Language: Go
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# prometheus-solaxcloud-exporter
Prometheus exporter for [SolaxCloud](https://www.solaxcloud.com) data. Resolution is fixed at 5 minutes.
> If you prefer real-time data, please have a look at the [promethues-solaxrt-exporter](https://github.com/loafoe/prometheus-solaxrt-exporter) project instead
## Install
Using Go 1.18 or newer
```shell
go install github.com/loafoe/prometheus-solaxcloud-exporter@latest
```## Usage
### Set credentials
```shell
export SOLAXCLOUD_SN=your-sn
export SOLAXCLOUD_TOKEN_ID=your-token
```### Run exporter
```shell
prometheus-solaxcloud-exporter -listen 0.0.0.0:8887
```### Ship to prometheus
You can use something like Grafana-agent to ship data to a remote write endpoint. Example:
```yml
metrics:
configs:
- name: default
scrape_configs:
- job_name: 'solaxcloud_exporter'
scrape_interval: 2m
static_configs:
- targets: ['localhost:8887']
remote_write:
- url: https://prometheus.example.com/api/v1/write
basic_auth:
username: scraper
password: S0m3pAssW0rdH3Re
```## License
License is MIT