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

Using Unix domain sockets #43

Open
Ctrl-Elite opened this issue Sep 22, 2024 · 3 comments
Open

Using Unix domain sockets #43

Ctrl-Elite opened this issue Sep 22, 2024 · 3 comments

Comments

@Ctrl-Elite
Copy link

Hello,

Is there any way to call Unix domain sockets using seq-input-healthcheck?

I'm trying to call docker engine api from inside the SEQ container using /var/run/docker.sock.

@KodrAus
Copy link
Member

KodrAus commented Sep 22, 2024

Hi @Ctrl-Elite 👋 I haven't tried this myself, but grokking through the source it looks like it should work with unix:///var/run/docker.sock since Docker's API is HTTP-based and .NET's HTTP client supports Unix domain sockets. Are you seeing any errors in Seq when you try run the healthcheck?

@Ctrl-Elite
Copy link
Author

Ctrl-Elite commented Sep 23, 2024

I don't think we can use unix:///var/run/docker.sock directly in .NET HTTP client. A SocketsHttpHandler is probably needed to achieve this. I can't seem to figure out what should I input in Target URLs. I have tried cURL URL but that's not working obviously.

@KodrAus
Copy link
Member

KodrAus commented Sep 23, 2024

Ah yes it looks like you're right and .NET can't actually use domain sockets by default. If it's something we can support without impacting other usecases then it could be good to support, otherwise your best bet may be to fork the app and make the adjustments you need.

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

2 participants