timescale / promscale

[DEPRECATED] Promscale is a unified metric and trace observability backend for Prometheus, Jaeger and OpenTelemetry built on PostgreSQL and TimescaleDB.
https://www.timescale.com/promscale
Apache License 2.0
1.33k stars 168 forks source link

Consider metric-metadata when operating under high-availability #1790

Open Harkishen-Singh opened 1 year ago

Harkishen-Singh commented 1 year ago

In HA mode, Promscale writes from a leader replica and discards from the non-leader. This is true for samples. But, when doing metric-metadata, I found that Promscale was ingesting from non-leader as well. While this is not breaking, it does have some impact on the performance. My guess is we do not go through the writePreprocessors for metric-metadata which can be the cause.