chop-dbhi / prometheus-sql

Service that exposes Prometheus metrics for a SQL result set.
BSD 2-Clause "Simplified" License
202 stars 55 forks source link

what is command for run prometheus-sql query on postgres DB . #130

Open prashantnitt07 opened 2 years ago

prashantnitt07 commented 2 years ago

I am using this command and getting error.

nohup ./prometheus-sql -queries queries.yml -host -port 9161 -service http://sqlagent:5002

error : [link_count] 2022/09/13 11:22:02 Backing off for 1s [link_count] 2022/09/13 11:22:08 Post "http://sqlagent:5002": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [link_count] 2022/09/13 11:22:08 Backing off for 1.940509088s [link_count] 2022/09/13 11:22:15 Post "http://sqlagent:5002": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [link_count] 2022/09/13 11:22:15 Backing off for 2.993680159s [link_count] 2022/09/13 11:22:23 Post "http://sqlagent:5002": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [link_count] 2022/09/13 11:22:23 Backing off for 4.06399931s [link_count] 2022/09/13 11:22:32 Post "http://sqlagent:5002": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [link_count] 2022/09/13 11:22:32 Backing off for 7.369562456s [link_count] 2022/09/13 11:22:44 Post "http://sqlagent:5002": context deadline exceeded (Client.Timeout exceeded while awaiting headers) [link_count] 2022/09/13 11:22:44 Backing off for 22.291515258s