Closed keshav1git closed 5 years ago
While Running : docker run --network prometheus_timescale_network --name prometheus_postgresql_adapter -d -p 9201:9201 timescale/prometheus-postgresql-adapter:latest \ -pg.host=pg_prometheus \ -pg.user=test_user \ -pg.database=postgres \ -pg.password=xxxxxxx \ -pg.prometheus-log-sample
logs
level=info ts=2019-07-09T08:13:47.733729801Z caller=log.go:25 config="&{remoteTimeout:30000000000 listenAddr::9201 telemetryPath:/metrics pgPrometheusConfig:{host:pg_prometheus port:5432 user:test_user password:password database:postgres schema: sslMode:disable table:metrics copyTable: maxOpenConns:50 maxIdleConns:10 pgPrometheusNormalize:true pgPrometheusLogSamples:true pgPrometheusChunkInterval:43200000000000 useTimescaleDb:true dbConnectRetries:0 readOnly:false} logLevel:debug haGroupLockId:0 restElection:false prometheusTimeout:-1}" level=info ts=2019-07-09T08:13:47.733883818Z caller=log.go:25 msg="host=pg_prometheus port=5432 user=test_user dbname=postgres password='xxxxxxx' sslmode=disable connect_timeout=10" level=error ts=2019-07-09T08:13:57.734903048Z caller=log.go:33 err="dial tcp 35.231.45.241:5432: i/o timeout"
Reference : link
Fixed it got to know that pg_prometheus wasnt under bridge network
While Running : docker run --network prometheus_timescale_network --name prometheus_postgresql_adapter -d -p 9201:9201 timescale/prometheus-postgresql-adapter:latest \ -pg.host=pg_prometheus \ -pg.user=test_user \ -pg.database=postgres \ -pg.password=xxxxxxx \ -pg.prometheus-log-sample
logs
Reference : link
Fixed it got to know that pg_prometheus wasnt under bridge network