Open waynewaynetsai opened 9 months ago
Describe the bug
I have installed the ops-agent(Version: 2.46.1) on my GCE instance with the following primary configuration:
metrics: receivers: postgresql: type: postgresql username: opsagent password: test1234 insecure: true endpoint: localhost:5432 collection_interval: 30s service: pipelines: postgresql: receivers: - postgresql
I followed the rest of the setup according to the official documentation: Configuring the Ops Agent for PostgreSQL.
After starting the service, I noticed that the ops-agent repeatedly logging into the PostgreSQL database container.
Is this behavior normal? Or could it potentially exhaust the database's connections and other related resources?
If it's problematic, how can I stop this behavior?
(P.S. I have already set collection_interval: 30s).
To Reproduce Steps to reproduce the behavior:
sudo service google-cloud-ops-agent restart
Expected behavior
It will not log in indefinitely and generate a large amount of logs, occupying a significant amount of log space. It should only log in once.
Environment (please complete the following information):
VM distro / OS: Debian 11
Ops Agent version: 2.46.1
Postgres Version: 15.5
Other
Related question on Stack Overflow
This issue was marked stale due to lack of activity. It will be closed in 14 days.
Describe the bug
I have installed the ops-agent(Version: 2.46.1) on my GCE instance with the following primary configuration:
I followed the rest of the setup according to the official documentation: Configuring the Ops Agent for PostgreSQL.
After starting the service, I noticed that the ops-agent repeatedly logging into the PostgreSQL database container.
Is this behavior normal? Or could it potentially exhaust the database's connections and other related resources?
If it's problematic, how can I stop this behavior?
(P.S. I have already set collection_interval: 30s).
To Reproduce Steps to reproduce the behavior:
sudo service google-cloud-ops-agent restart
Expected behavior
It will not log in indefinitely and generate a large amount of logs, occupying a significant amount of log space. It should only log in once.
Environment (please complete the following information):
VM distro / OS: Debian 11
Ops Agent version: 2.46.1
Postgres Version: 15.5
Other
Related question on Stack Overflow