this time i purge linux:metrics (don’t support markdown, so the format is terrible)
[root@node002142 fanboshi]# pmm-admin add linux:metrics
OK, now monitoring this system.
[root@node002142 fanboshi]# pmm-admin uninstall
OK, 1 services were removed.
[root@node002142 fanboshi]# pmm-admin purge linux:metrics
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 1 [running]:
github.com/percona/pmm-client/pmm.(*Admin).PurgeMetrics(0xbe4e60, 0x7ffe280718e9, 0xd, 0xc420220718, 0xc4201cbb68, 0x7ff262)
/tmp/go/src/github.com/percona/pmm-client/pmm/main.go:427 +0x5a4
main.glob…func39(0xbde460, 0xc4200e56b0, 0x1, 0x1)
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1179 +0xd1
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).execute(0xbde460, 0xc4200e5660, 0x1, 0x1, 0xbde460, 0xc4200e5660)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:654 +0x2a2
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xbdeb20, 0xc4201cbdd0, 0x49b302, 0x0)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).Execute(0xbdeb20, 0xc0263c, 0x92bf0f)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:688 +0x2b
main.main()
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1398 +0x18dc
[root@node002142 fanboshi]# pmm-admin --verbose purge linux:metrics
2018/08/04 12:51:18 request:
GET /qan-api/ping HTTP/1.1
Host: 10.1.2.143:8080
User-Agent: Go-http-client/1.1
Authorization: Basic bWZ3X2RiYTpacWRSSGV2bmE4
Accept-Encoding: gzip
2018/08/04 12:51:18 response:
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: Content-Type,Authorization
< Access-Control-Allow-Methods: GET,PUT,POST,DELETE
< Access-Control-Allow-Origin: *
< Cache-Control: no-store
< Connection: keep-alive
< Content-Type: text/plain; charset=utf-8
< Date: Sat, 04 Aug 2018 04:51:18 GMT
< Pragma: no-cache
< Server: nginx
< Strict-Transport-Security: max-age=63072000; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Percona-Qan-Api-Version: 1.13.0-1807241501.89a7875
< X-Xss-Protection: 1; mode=block
< Content-Length: 0
<
<
2018/08/04 12:51:18 request:
GET /v1/status/leader HTTP/1.1
Host: 10.1.2.143:8080
User-Agent: Go-http-client/1.1
Authorization: Basic bWZ3X2RiYTpacWRSSGV2bmE4
Accept-Encoding: gzip
2018/08/04 12:51:18 response:
< HTTP/1.1 200 OK
< Content-Length: 16
< Connection: keep-alive
< Content-Type: application/json
< Date: Sat, 04 Aug 2018 04:51:18 GMT
< Server: nginx
< X-Remote-Ip: 10.1.2.142
< X-Server-Time: Saturday, 04-Aug-2018 04:51:18 GMT
<
< “127.0.0.1:8300”
2018/08/04 12:51:18 request:
GET /qan-api/ping HTTP/1.1
Host: 10.1.2.143:8080
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip
2018/08/04 12:51:18 response:
< HTTP/1.1 401 Unauthorized
< Content-Length: 188
< Connection: keep-alive
< Content-Type: text/html
< Date: Sat, 04 Aug 2018 04:51:18 GMT
< Server: nginx
< Www-Authenticate: Basic realm=“on”
<
<
< 401 Authorization Required
<
<
401 Authorization Required
<
nginx
<
<
<
2018/08/04 12:51:18 request:
GET /v1/catalog/node/192.168.2.142 HTTP/1.1
Host: 10.1.2.143:8080
User-Agent: Go-http-client/1.1
Authorization: Basic bWZ3X2RiYTpacWRSSGV2bmE4
Accept-Encoding: gzip
2018/08/04 12:51:18 response:
< HTTP/1.1 200 OK
< Content-Length: 170
< Connection: keep-alive
< Content-Type: application/json
< Date: Sat, 04 Aug 2018 04:51:18 GMT
< Server: nginx
< X-Consul-Index: 4680
< X-Consul-Knownleader: true
< X-Consul-Lastcontact: 0
< X-Remote-Ip: 10.1.2.142
< X-Server-Time: Saturday, 04-Aug-2018 04:51:18 GMT
<
< {“Node”:{“ID”:“”,“Node”:“192.168.2.142”,“Address”:“10.1.2.142”,“Datacenter”:“dc1”,“TaggedAddresses”:null,“Meta”:null,“CreateIndex”:4678,“ModifyIndex”:4678},“Services”:{}}
2018/08/04 12:51:18 request:
DELETE /prometheus/api/v1/series?match={job=“linux”,instance=“192.168.2.142”} HTTP/1.1
Host: 10.1.2.143:8080
User-Agent: Go-http-client/1.1
Authorization: Basic bWZ3X2RiYTpacWRSSGV2bmE4
Accept-Encoding: gzip
2018/08/04 12:51:18 response:
< HTTP/1.1 500 Internal Server Error
< Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin
< Access-Control-Allow-Methods: GET, OPTIONS
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: Date
< Connection: keep-alive
< Content-Type: application/json
< Date: Sat, 04 Aug 2018 04:51:18 GMT
< Server: nginx
<
< {“status”:“error”,“errorType”:“internal”,“error”:“not implemented”}
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 1 [running]:
github.com/percona/pmm-client/pmm.(*Admin).PurgeMetrics(0xbe4e60, 0x7ffc91ae58e9, 0xd, 0xc420220648, 0xc4201cbb68, 0x7ff262)
/tmp/go/src/github.com/percona/pmm-client/pmm/main.go:427 +0x5a4
main.glob…func39(0xbde460, 0xc42019d480, 0x1, 0x2)
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1179 +0xd1
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).execute(0xbde460, 0xc42019d440, 0x2, 0x2, 0xbde460, 0xc42019d440)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:654 +0x2a2
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xbdeb20, 0xc4201cbdd0, 0x49b302, 0x0)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).Execute(0xbdeb20, 0xc0263c, 0x92bf0f)
/tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:688 +0x2b
main.main()
/tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1398 +0x18dc
log
[root@node002142 log]# less /var/log/pmm-linux-metrics-42000.log
time=“2018-08-04T12:53:21+08:00” level=info msg=“Starting node_exporter (version=, branch=, revision=)” source=“node_exporter.go:142”
time=“2018-08-04T12:53:21+08:00” level=info msg=“Build context (go=go1.10.1, user=, date=)” source=“node_exporter.go:143”
time=“2018-08-04T12:53:21+08:00” level=info msg=“Enabled collectors:” source=“node_exporter.go:162”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - diskstats" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - filefd" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - filesystem" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - meminfo" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - netdev" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - uname" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - meminfo_numa" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - loadavg" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - netstat" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - stat" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - time" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=" - vmstat" source=“node_exporter.go:164”
time=“2018-08-04T12:53:21+08:00” level=info msg=“HTTP Basic authentication is enabled.” source=“basic_auth.go:105”
time=“2018-08-04T12:53:21+08:00” level=info msg=“Starting HTTPS server for https://10.1.2.142:42000/metrics …” source=“server.go:106”