function61 / promswarmconnect

Bridges Docker Swarm services to Prometheus without any changes to Prometheus
https://function61.com/
Apache License 2.0
24 stars 6 forks source link

Prometheus outside docker swarm #9

Closed brunomanzo closed 5 years ago

brunomanzo commented 5 years ago

Hello there,

I have two clusters at the moment, one "old" of docker swarm and one "new" of kubernetes. Currently prometheus runs on k8s, but I have a lot of services there still running on swarm cluster. This can solve my SD problem? Know where the tasks are running outside swarm network.

joonas-fi commented 5 years ago

If I understood you correctly, then yes: promswarmconnect exposes enough details to discover services in your Swarm cluster (service names, IPs). The details it exposes are here: https://github.com/function61/promswarmconnect#verify-that-its-working

As for consumption of that API, pretty much nobody else than Prometheus uses this data format, so to actually use it somewhere else you'd have to write some code to bridge the gap to where you would want to use that data.

brunomanzo commented 5 years ago

Thank you =)