Pmm-client log entries

Hi, I’m seeing one of these lines per second:

time="2019-03-26T14:27:45-04:00" level=error msg="error gathering metrics: 2 error(s) occurred:\n* collected metric node_textfile_mtime label:<name:"file" value:"example.prom" > gauge:<value:1.542383604e+09 > was collected before with the same name and label values\n* collected metric node_textfile_scrape_error gauge:<value:0 > was collected before with the same name and label values\n" source="log.go:172"
time="2019-03-26T14:27:46-04:00" level=error msg="error gathering metrics: 2 error(s) occurred:\n* collected metric node_textfile_mtime label:<name:"file" value:"example.prom" > gauge:<value:1.542383604e+09 > was collected before with the same name and label values\n* collected metric node_textfile_scrape_error gauge:<value:0 > was collected before with the same name and label values\n" source="log.go:172"

is there something I can do to stop it?

[root&#64;hostname log]# locate example.prom
/usr/local/percona/pmm-client/textfile-collector/example.prom
[root&#64;hostname log]# head /usr/local/percona/pmm-client/textfile-collector/example.prom
## # Below is an example of a full-fledged Prometheus metric exposition,
## # including comments, HELP and TYPE expressions, a histogram, a summary,
## # character escaping examples, and more. It is taken from:
## # [url]https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-example[/url]
## # More details about textfile collector you can find at:
## # [url]https://github.com/prometheus/node_exporter#textfile-collector[/url]
## #
## # HELP http_requests_total The total number of HTTP requests.
## # TYPE http_requests_total counter
## http_requests_total{method="post",code="200"} 1027 1395066363000

Hi sidharrell
You can safely move or delete the file /usr/local/percona/pmm-client/textfile-collector/example.prom

1 Like

@Michael_Coburn, That isn’t the solution here - if the file is removed, the log file just fills up with a different error. The solution is to edit /etc/systemd/system/pmm-linux-metrics-42000.service and remove the two trailing references to “textfile” on the ExecStart line:

- ExecStart=/bin/sh -c '/usr/local/percona/pmm-client/node_exporter -web.listen-address=172.17.0.1:42000 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-key-file=/usr/local/percona/pmm-client/server.key -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -collectors.enabled=diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat,meminfo_numa,textfile,textfile >> /var/log/pmm-linux-metrics-42000.log 2>&1'
+ ExecStart=/bin/sh -c '/usr/local/percona/pmm-client/node_exporter -web.listen-address=172.17.0.1:42000 -web.auth-file=/usr/local/percona/pmm-client/pmm.yml -web.ssl-key-file=/usr/local/percona/pmm-client/server.key -web.ssl-cert-file=/usr/local/percona/pmm-client/server.crt -collectors.enabled=diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat,meminfo_numa >> /var/log/pmm-linux-metrics-42000.log 2>&1'
2 Likes