Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
metrics-3.0.0
Description
Host apps metadata is not synced to other collectors when multiple metrics collectors are installed.
Steps to reproduce the issue:
- Install ambari metrics with two collector C1 and C2
- Submit following metrics through collector C1
{ "metrics": [ { "metricname": "cpu", "appid": "skywalking", "hostname": "hostXYZ", "starttime": 1687849289558, "metrics": { "1687849289558": 100, "1687849295558": 200 } } ] }
- http://COLLECTOR_C1_HOST:6188/ws/v1/timeline/metrics/hosts API call returns
{ "hostXYZ": [ "datanode", "HOST", "namenode", "skywalking", "ams-hbase" ], ... }
This is as expected.
- http://COLLECTOR_C2_HOST:6188/ws/v1/timeline/metrics/hosts API call returns
{ "hostXYZ": [ "datanode", "HOST", "namenode", "ams-hbase" ], ... }
This output indicates that new appid skywalking is not getting synced to other collector C2. This new appid is not getting synced even after 5 minutes which is the default ambari metrics metadata sync interval.
Attachments
Issue Links
- links to