Skip to content

Commit

Permalink
Rename exporter #5, use GitHub registry #6
Browse files Browse the repository at this point in the history
  • Loading branch information
berezhinskiy committed Jan 9, 2023
1 parent c5ee9eb commit 17976d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: docker.io/berezhinskiy/ecoflow-mqtt-prometheus-exporter
images: ghcr.io/${{ github.repository_owner }}/ecoflow_exporter
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
# set latest tag for master branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN /usr/local/bin/python -m pip install --upgrade pip
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

ADD ecoflow_mqtt_prometheus_exporter.py /ecoflow_mqtt_prometheus_exporter.py
ADD ecoflow_exporter.py /ecoflow_exporter.py

CMD [ "python", "/ecoflow_mqtt_prometheus_exporter.py" ]
CMD [ "python", "/ecoflow_exporter.py" ]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ⚡ EcoFlow MQTT to Prometheus exporter
# ⚡ EcoFlow to Prometheus exporter

## About

Expand Down Expand Up @@ -43,7 +43,7 @@ All metrics are prefixed with `ecoflow` and reports label `device_sn` for multip

⚠️ This project is in no way connected to EcoFlow company, and is entirely developed as a fun project with no guarantees of anything.

⚠️ Unexpectedly, some values are always zero (like `ecoflow_bms_ems_status_fan_level` and `ecoflow_inv_fan_state`). It is not a bug in the exporter. No need to create an issue. The exporter just converts the MQTT payload to Prometheus format. It implements small hacks like [here](ecoflow_mqtt_prometheus_exporter.py#L103-L107), but in general, values is provided by the device as it is. To dive into received payloads, enable `DEBUG` logging.
⚠️ Unexpectedly, some values are always zero (like `ecoflow_bms_ems_status_fan_level` and `ecoflow_inv_fan_state`). It is not a bug in the exporter. No need to create an issue. The exporter just converts the MQTT payload to Prometheus format. It implements small hacks like [here](ecoflow_exporter.py#L103-L107), but in general, values is provided by the device as it is. To dive into received payloads, enable `DEBUG` logging.

⚠️ This has only been tested with __DELTA 2__ Please, create an issue to let me know if exporter works well (or not) with your model.

Expand Down
File renamed without changes.

0 comments on commit 17976d0

Please sign in to comment.