OPDK 17.05 Apigee Dashboard for Postgres

mrios
Participant IV

We've installed Apigee Monitoring Dashboard for one of our clusters.

Most of the dashboards look fine however the one for Postgres it's not reporting any relevant data as: Replication Lag, postgres_writable, rows inserted, and others.

The logs for telegraf in the Postgres node is showing this error

2017-12-05T21:55:40Z E! ERROR in input [inputs.http_influx]: [url=http://127.0.0.1:8084/v1/server/metrics?type=influxdb]: metric parsing error, reason: [buffer too short], buffer: [], index: [0]

The telegraf configuration in /opt/apigee/apigee-telegraf/conf/telegraf.conf shows that the information for the Postgres plugin is commented

# # Read metrics from one or many postgresql servers
# [[inputs.postgresql]]
#   ## specify address via a url matching:
#   ##   postgres://[pqgotest[:password]]@localhost[/dbname]\
#   ##       ?sslmode=[disable|verify-ca|verify-full]
#   ## or a simple string:
#   ##   host=localhost user=pqotest password=... sslmode=... dbname=app_production
#   ##
#   ## All connection parameters are optional.
#   ##
#   ## Without the dbname parameter, the driver will default to a database
#   ## with the same name as the user. This dbname is just for instantiating a
#   ## connection with the server and doesn't restrict the databases we are trying
#   ## to grab metrics for.
#   ##
#   address = "host=localhost user=postgres sslmode=disable"
# 
#   ## A list of databases to pull metrics about. If not specified, metrics for all
#   ## databases are gathered.
#   # databases = ["app_production", "testing"]

is there any specific token to enable that or should it be enable out-of-the-box?

I queried influxdb but I don't see data for that component either.

How can we get those graph working?

0 2 236
2 REPLIES 2

I am also facing same issue. I am wondering if someone resolved this issue?

@Dino @Anil Sagar @Maudrit

Hello All

Please let me know how to solve this issue. I am not seeing any metrics about Postgres and QPID in Monitoring Dashboard Beta. I see below error in apigee-telegraf.log on postgres/qpid server node. All other components like Router/MP/Cassandra metrics are available in dashboard.

2018-04-26T03:50:00Z E! ERROR in input [inputs.http_influx]: [url=http://127.0.0.1:8084/v1/server/metrics?type=influxdb]: metric parsing error, reason: [buffer too short], buffer: [], index: [0]

2018-04-26T03:50:00Z E! ERROR in input [inputs.http_influx]: [url=http://127.0.0.1:8083/v1/server/metrics?type=influxdb]: metric parsing error, reason: [buffer too short], buffer: [], index: [0]