Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Devices #62

Open
burylo opened this issue Jul 9, 2024 · 1 comment
Open

More Devices #62

burylo opened this issue Jul 9, 2024 · 1 comment

Comments

@burylo
Copy link

burylo commented Jul 9, 2024

Is there any way to add 2 charging stations and shoot graphics from both at the same time?

@setevoy2
Copy link

At this moment, only by running 2 exporters.

In the compose.yml - add a new container, update the container_name, ports, EXPORTER_PORT, and a new DEVICE_SN:

  ecoflow_exporter:
    image: ghcr.io/berezhinskiy/ecoflow_exporter
    container_name: ecoflow_exporter
    ports:
      - 9091:9091
    restart: unless-stopped
    environment:
      DEVICE_SN: <SN>DAEBZ5KF1183072
      ECOFLOW_USERNAME: [email protected]
      ECOFLOW_PASSWORD: "password"
      EXPORTER_PORT: 9091

  ecoflow_exporter_2:
    image: ghcr.io/berezhinskiy/ecoflow_exporter
    container_name: ecoflow_exporter_2
    ports:
      - 9092:9092
    restart: unless-stopped
    environment:
      DEVICE_SN: DCEBZ8ZF2280341
      ECOFLOW_USERNAME: [email protected]
      ECOFLOW_PASSWORD: "password"
      EXPORTER_PORT: 9092

And in the /promethues/prometheus.yml - add a new container's name and a corresponding port to the targets, so Prometheus will know where to pull new metrics:

  - job_name: ecoflow
    static_configs:
      - targets:
          - ecoflow_exporter:9091
          - ecoflow_exporter_2:9092

Then, in Grafana, you'll have two devices:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@setevoy2 @burylo and others