Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
None
-
2
-
Yes
-
Yes
-
[obsolete] Server Features
Description
An external-exporter service when added on one node where pmm2-client is running will also add the same exact service in another node where that service is not supposed to be seen.
How to repeat:
- setup PMM2 latest
- add a mysql instance to PMM2
pmm-admin config --server-insecure-tls --server-url=https://admin:[email protected]:443
pmm-admin add mysql --username=root
- setup a cassandra instance (did not try any other example)
- install criteo/cassandra_exporter
- setup pmm2-client
pmm-admin config --server-insecure-tls --server-url=https://admin:[email protected]:443
pmm-admin add external --service-name=cassandra_service --listen-port=8080 --metrics-path=/metrics --scheme=http
check output of pmm-admin list on the two servers:
[root@cassandra ~]# pmm-admin list Service type Service name Address and port Service ID External:external cassandra_service /service_id/0836b295-d787-4d8e-bcaa-8b4c2aa994d1 Agent type Status Metrics Mode Agent ID Service ID pmm_agent Connected /agent_id/54a64ba0-4097-4da9-8eb5-557343c3c41d node_exporter Running push /agent_id/f9fb334f-f146-4447-aef0-f43b5147a8a0 external-exporter Unknown push /agent_id/793842e7-3d60-4a6a-835b-91cce7887ba6 /service_id/0836b295-d787-4d8e-bcaa-8b4c2aa994d1 vmagent Running push /agent_id/a7c9e68b-5433-4fdd-ada5-bdbb4adfa2f5
[root@psmysql57 ~]# pmm-admin list
Service type Service name Address and port Service ID
MySQL psmysql57-mysql 127.0.0.1:3306 /service_id/1a8db2fe-fffa-4e21-bec4-a6202e3172dc
Agent type Status Metrics Mode Agent ID Service ID
pmm_agent Connected /agent_id/ff0608dd-7050-4183-b0c0-25fcc8fc1cae
node_exporter Running push /agent_id/a18bfd9a-bf7b-4fce-9045-db68e05052a2
mysqld_exporter Running push /agent_id/360209ef-10a7-4f2b-af86-462dc62e2850 /service_id/1a8db2fe-fffa-4e21-bec4-a6202e3172dc
mysql_slowlog_agent Waiting /agent_id/4810525d-8b95-4c0d-ac19-e4c7732a7172 /service_id/1a8db2fe-fffa-4e21-bec4-a6202e3172dc
external-exporter Unknown push /agent_id/793842e7-3d60-4a6a-835b-91cce7887ba6 /service_id/0836b295-d787-4d8e-bcaa-8b4c2aa994d1 <<< this should not have been added
vmagent Running push /agent_id/c25c4ba6-bec4-4cd1-b6f4-ea88e79c9a32
I know cassandra is not supported but the issue here is external exporter service should not be seen in another node where it was not added from at least from pmm-admin list command.