Comments (4)
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.
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.
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.
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)
- Doesn't support Shelly 3EM format very well HOT 5
- Tag docker images with release version number HOT 5
- Once unavailable always unavailable even after becoming available in zigbee2mqtt HOT 9
- Support esphome format HOT 12
- ValueError: Invalid metric name with '/' HOT 9
- Pin dependencies version
- crash loop with google coral metric HOT 11
- Hubitat support HOT 16
- emporiavue2/esphome support HOT 2
- HomeAssistant HOT 3
- Shelly Plus H&T topic format not working with exporter HOT 5
- Attach additional labels from message user properties HOT 1
- UserProperty attribute exception HOT 3
- zigbee2mqtt: Device renames HOT 1
- two additional projects can be added to supported projects HOT 1
- AttributeError: 'Properties' object has no attribute 'AssignedClientIdentifier' HOT 7
- # in MQTT_TOPIC not working. HOT 18
- Request to Publish Python Package on PyPI or Provide Linux Executable Release HOT 4
- Binary states from esphome fails to parse HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt-exporter.