louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.26k stars 5.39k forks source link

Support Unix sockets #5032

Open lotigara opened 3 months ago

lotigara commented 3 months ago

📑 I have found these related issues/pull requests

Related issues/pulls are only about monitoring Docker containers, while this issue is about monitoring Unix sockets on host system.

🏷️ Feature Request Type

New monitor

🔖 Feature description

It is about supporting Unix sockets on Unix(-like) systems, usually located in /var/run/*.sock.

✔️ Solution

I want to be able to select Unix socket monitor type when creating such and filesystem path where my socket is located.

❓ Alternatives

No response

📝 Additional Context

The app to be monitored is Weblate. It's installed via YunoHost and configured to use Unix socket. As YunoHost overwrites config files on each update of app, I can't just re-configure Weblate to use TCP.

N.B.: Please do not suggest not using YunoHost nor Unix sockets or using local_settings.py, because there are many apps that use Unix sockets.

CommanderStorm commented 3 months ago

What would you like to monitor specifically? (to prevent an XY-Problem)

lotigara commented 3 months ago

What would you like to monitor specifically? (to prevent an XY-Problem)

Edited, see first post.

cbdonohue commented 3 months ago

Could you do a proxy like socat TCP-LISTEN:12345,reuseaddr,fork UNIX-CONNECT:/var/run/weblate.sock to convert between TCP and unix sockets?