mysqld_exporter
mysqld_exporter copied to clipboard
Error pinging mysqld" err="context deadline exceeded
I'm really pushed to the wall, it's driving me crazy.
Troubleshooting Steps:
- In the
Prometheus
backend, the node is online, andTargets
can be seen.- Upon clicking in, it returns around 2000 data points.
- Adding
scrape_interval: 5m
,scrape_timeout: 1m
inPrometheus
configuration allows a small portion of data to appear, but the error inmysqld_exporter
persists.
- Service restarts are ineffective, as are server restarts.
-
mysqld_exporter
-
Prometheus
-
Grafana
-
-
/metrics
data can be obtained, tested withcurl http://10.0.0.9:9104/metrics
- On the server, it can be obtained.
- On the
mysqld_exporter
local machine, it can be obtained. - The data volume is normal with around 2000 metrics.
- The response time takes several seconds.
- The
mysqld_exporter
service configuration file.my.cnf
is correct.- The same configuration works on other servers.
- Increasing the timeout with
connect_timeout=10
is ineffective. - Changing the local address to
host=localhost
is ineffective.
- The database account is correct.
- Remote tools test the account with no issues.
- The account has
%
privileges as well aslocal
privileges. - Creating a new account with root privileges does not resolve the issue.
- The account password does not contain special characters such as
#
.
- The server can
Ping
the client machine, and the firewalls are all disabled. - The port is normal, port number 9104, not occupied.
- The problematic client and the non-problematic client have the same version, both are
go1.21.5
.