You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
how do i read data stored in pg_prometheus ( say there is a sales column in some table and want to monitor when sales go more than 50 and then raise alert)
do adapter support reading of data from pg_prometheus and things like mentioned above is doable?
You can either make queries in Prometheus using PromQL (the adapter handles pulling extra data from pg_prometheus to Prometheus, if necessary), or you can make queries in SQL directly on pg_prometheus using a tool like psql. Does that help?
@spolcyn It only works on write . But when do some PromQL, I can`t find any read query in prometheus_postgresql_adapter. Is there a mistake in setting it? Both of them were in the docker
To confirm, you see data in pg_prometheus that you can query locally using SQL, but when you use the Prometheus web interface and PromQL, no results come up?
So I think I can help here... You can query your metrics in the TimescaleDB instance using standard SQL and connecting to PostgreSQL host where you have both the pg_prometheus extension running and timescaledb the data is forwarded to the timescale instance through the adapter, making the data available in the PostgreSQL database, this would be your long term storage. If you wanted to run a PromQL query you would run that against the Prometheus server (by default this server will retain 15 days of data). Let us know if that helps?
do adapter support reading of data from pg_prometheus and things like mentioned above is doable?
reference : link
The text was updated successfully, but these errors were encountered: