noctarius / timescaledb-event-streamer

timescaledb-event-streamer is a command line program to create a stream of CDC (Change Data Capture) TimescaleDB Hypertable events from a PostgreSQL installation running the TimescaleDB extension.
Apache License 2.0
41 stars 3 forks source link

It's impossible to run two services with stats service enabled #121

Closed falkolab closed 10 months ago

falkolab commented 10 months ago

Hi @noctarius!

I use two services running in my environment for the different nats servers. So I realized we have hardcoded port 8081 for statistic service. It would be nice to have it configurable. At this moment I will have to disable it for the one of streamer service instance by using option to prevent port collision:

PropertyStatsEnabled = "stats.enabled"

noctarius commented 10 months ago

I'm sorry, but I'm not really sure what you mean with two statistics services? 🤔

falkolab commented 10 months ago

I mean I executing two instance of timescaledb-event-streamer but both has stats http server listening on port 8081. So it's impossible to run both without disabling stats on one of them

noctarius commented 10 months ago

Ohhhhh I see. That makes sense. Good point, I'll add a config option for it :-)