Code Monkey home page Code Monkey logo

Comments (5)

r0ckarong avatar r0ckarong commented on June 12, 2024 1

Ok nevermind, figured out the problem.

The exporter was subscribed correctly to shellies/+/status/# and the log showed the right values but I had some confusion about the ports. I configured port mapping for docker but then didn't realize I had to configure the custom port for the exporter too. So my prometheus config was trying to scrape from port 9093 but the exporter was still using default 9000.

from mqtt-exporter.

r0ckarong avatar r0ckarong commented on June 12, 2024

Here is a bit of the full mqtt data that gets sent

{
  "src": "shellyplusht-a0a3b3de6b4c",
  "dst": "shellies/shellyplusht-a0a3b3de6b4c/events",
  "method": "NotifyFullStatus",
  "params": {
    "ts": 1.86,
    "ble": {},
    "cloud": {
      "connected": false
    },
    "devicepower:0": {
      "id": 0,
      "battery": {
        "V": 6.39,
        "percent": 100
      },
      "external": {
        "present": false
      }
    },
    "ht_ui": {},
    "humidity:0": {
      "id": 0,
      "rh": 43.8
    },
    "mqtt": {
      "connected": true
    },
    "sys": {
      "mac": "A0A3B3DE6B4C",
      "restart_required": false,
      "time": null,
      "unixtime": null,
      "uptime": 1,
      "ram_size": 246612,
      "ram_free": 165028,
      "fs_size": 458752,
      "fs_free": 176128,
      "cfg_rev": 23,
      "kvs_rev": 1,
      "webhook_rev": 0,
      "available_updates": {},
      "wakeup_reason": {
        "boot": "deepsleep_wake",
        "cause": "status_update"
      },
      "wakeup_period": 7200
    },
    "temperature:0": {
      "id": 0,
      "tC": 20.2,
      "tF": 68.3
    },
    "wifi": {
      "sta_ip": "192.168.178.110",
      "status": "got ip",
      "ssid": "EnairaSukram",
      "rssi": -55
    },
    "ws": {
      "connected": false
    }
  }
}

from mqtt-exporter.

kpetremann avatar kpetremann commented on June 12, 2024

Hi @r0ckarong

Thanks for raising the issue and for the details you provided.

Could you please also send the log with debug level?

I'll troubleshoot it this weekend.

from mqtt-exporter.

r0ckarong avatar r0ckarong commented on June 12, 2024

Can you give me an idea on how to get the "correct" log? I'm using all of this on the Synology Container manager and this just gives me one line.

Where in the container is the log stored? I've set LOG_LEVEL: DEBUG in the compose file.

from mqtt-exporter.

kpetremann avatar kpetremann commented on June 12, 2024

Happy you found the root cause.
Cheers

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.