Too many clients error


I am using grafana v5.0.0 and using Amazon RDS PostgresSQL 9.6.6 database. for past two days I am getting a continuous error message and it is flipping between OK and alert state.

messgae in alert :- error=“Could not find datasource pq: sorry, too many clients already”

using AWS Cloudwatch to monitor and alert configured thru slack.