Code Monkey home page Code Monkey logo

Comments (4)

byjosez avatar byjosez commented on June 12, 2024 1

You don't have metrics because it is not following the format used by mqtt-exporter by default. I don't know about solar assistant, but it seems the metrics are very similar to ESPhome.

Maybe try to enable ESPhome compatibility: https://github.com/kpetremann/mqtt-exporter?tab=readme-ov-file#esphome

You would just need to add the following environment variable: ESPHOME_TOPIC_PREFIXES="solar_assistant"

It doesn't work, I had to use node-red to then export it to influxdb and show it in grafana, thank you very much for your time bro.

from mqtt-exporter.

kpetremann avatar kpetremann commented on June 12, 2024

Hi @byjosez,

At first look, I think you are using the wrong port.
If your Prometheus instance is also in a container, then mqtt-exporter is receiving the request from internal Docker network bridge, so you should use the port 9000 on which mqtt-exporter is actually listening on.

The port 9001 being for requests from outside your Docker environment, like doing a curl from the host or your computer.

I hope it helps.

from mqtt-exporter.

byjosez avatar byjosez commented on June 12, 2024

Hi @byjosez,

At first look, I think you are using the wrong port. If your Prometheus instance is also in a container, then mqtt-exporter is receiving the request from internal Docker network bridge, so you should use the port 9000 on which mqtt-exporter is actually listening on.

The port 9001 being for requests from outside your Docker environment, like doing a curl from the host or your computer.

I hope it helps.

Yes, I changed the port to 9000 and I get those metrics that I published last in the post, is that really what I should export? I don't see the data that I published when I run

mosquitto_sub -h 192.168.105.112 -p 1883 -v -t '#'

from mqtt-exporter.

kpetremann avatar kpetremann commented on June 12, 2024

You don't have metrics because it is not following the format used by mqtt-exporter by default.
I don't know about solar assistant, but it seems the metrics are very similar to ESPhome.

Maybe try to enable ESPhome compatibility: https://github.com/kpetremann/mqtt-exporter?tab=readme-ov-file#esphome

You would just need to add the following environment variable: ESPHOME_TOPIC_PREFIXES="solar_assistant"

from mqtt-exporter.

Related Issues (20)

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.