遥测

了解遥测报告组件

为持续改善 DC/OS 体验,包含了一个将匿名使用数据报告给 Mesosphere 的遥测组件。此数据用于监控核心 DC/OS 组件、安装、用户界面的可靠性,并了解哪些特性最受欢迎。

核心遥测

DC/OS 信号 组件查询首要管理节点上的诊断服务 /system/health/v1/report 端点,并将此数据发送给 区块,Mesosphere 然后用它来跟踪使用率度量标准和客户支持。

DC/OS 信号报告的信息来自多个组件:DC/OS 诊断、Apache Mesos 和 DC/OS 包管理器 (Cosmos)。

对于每个类别都收集此数据:

类型描述
anonymousId这是在启动时为每个集群创建的匿名 ID。此 ID 在您的集群中持续存在。例如:
  1. anonymousId”: 70b28f00-e38f-41b2-a723-aab344f535b9
clusterId这是在启动时为每个集群创建的 anonymousID 值。此 ID 在您的集群中持续存在。例如:
  1. clusterId”: 70b28f00-e38f-41b2-a723-aab344f535b9
customerKey (DC/OS Enterprise)这是 DC/OS Enterprise 客户密钥。客户密钥通过电子邮件发送给获授权支持联系人。例如:
  1. customerKey”: ab1c23de-45f6-7g8h-9012-i345j6k7lm8n”,
event这是在区块中出现的类别。可能的值为 package_list(包管理器)、health(诊断)和 mesos_track (Mesos)。例如:
  1. event”: package_list
environmentVersion这是 DC/OS 的版本。例如,如果您使用的是 DC/OS 1.11:
  1. environmentVersion”: 1.11”,
provider这是 DC/OS 运行所在的平台。可能的值为 awson-premazure。例如,如果您是在 AWS 上运行:
  1. provider”: aws”,
source这是表示群集的硬编码设置。例如:
  1. source”: cluster”,
variant这表示群集是 DC/OS 还是 DC/OS Enterprise。例如,如果您使用的是 DC/OS Open Source:
  1. variant”: open

诊断

此信息从 DC/OS 诊断 组件收集。对于每一个 systemd 单元收集以下信息,其中 <UNIT_NAME> 是组件名:

  1. "health-unit-dcos-<UNIT_NAME>-total": 3, "health-unit-dcos-<UNIT_NAME>-unhealthy": 0,

Mesos

此信息从 Apache Mesos 组件收集。

类型描述
agents_active活跃代理的数量。例如:
  1. agents_active”: 2,
agents_connected已连接代理的数量。例如:
  1. agents_connected”: 2,
cpu_total可用 CPU 的数量。例如:
  1. cpu_total”: 8,
cpu_used已分配 CPU 的数量。例如:
  1. cpu_used”: 0,
disk_total按 MB 计的可用磁盘空间。例如:
  1. disk_total”: 71154,
disk_used按 MB 计的已分配磁盘空间。例如:
  1. disk_used”: 0,
framework_count已安装 DC/OS 服务的数量。例如:
  1. framework_count”: 2,
frameworks安装了哪些 DC/OS 服务。例如:
  1. frameworks”: [
  2. {
  3. name”: marathon
  4. },
  5. {
  6. name”: metronome
  7. }
  8. ],
mem_total按 MB 计的可用内存。例如:
  1. mem_total”: 28036,
mem_used按 MB 计的已分配内存。例如:
  1. mem_used”: 0,
task_count任务数。例如:
  1. task_count”: 0,

软件包管理器

此信息从 DC/OS 包管理器 (Cosmos) 组件收集。

类型描述
package_list安装了哪些包。例如,如果您有 Kafka 和 Spark:
  1. package_list”: [
  2. {
  3. name”: kafka
  4. },
  5. {
  6. name”: spark
  7. }
  8. ],

以下是获得的 JSON 遥测报告的示例:

  1. {
  2. "cosmos": {
  3. "properties": {
  4. "clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  5. "customerKey": "",
  6. "environmentVersion": "1.8",
  7. package_list”: [
  8. {
  9. name”: kafka
  10. },
  11. {
  12. name”: spark
  13. }
  14. ],
  15. "provider": "aws",
  16. "source": "cluster",
  17. "variant": "open"
  18. },
  19. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  20. "event": "package_list"
  21. },
  22. "diagnostics": {
  23. "properties": {
  24. "clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  25. "customerKey": "",
  26. "environmentVersion": "1.8",
  27. "health-unit-dcos-diagnostics-service-total": 3,
  28. "health-unit-dcos-diagnostics-service-unhealthy": 0,
  29. "health-unit-dcos-diagnostics-socket-total": 2,
  30. "health-unit-dcos-diagnostics-socket-unhealthy": 0,
  31. "health-unit-dcos-adminrouter-agent-service-total": 2,
  32. "health-unit-dcos-adminrouter-agent-service-unhealthy": 0,
  33. "health-unit-dcos-adminrouter-reload-service-total": 3,
  34. "health-unit-dcos-adminrouter-reload-service-unhealthy": 0,
  35. "health-unit-dcos-adminrouter-reload-timer-total": 3,
  36. "health-unit-dcos-adminrouter-reload-timer-unhealthy": 0,
  37. "health-unit-dcos-adminrouter-service-total": 1,
  38. "health-unit-dcos-adminrouter-service-unhealthy": 0,
  39. "health-unit-dcos-cosmos-service-total": 1,
  40. "health-unit-dcos-cosmos-service-unhealthy": 0,
  41. "health-unit-dcos-epmd-service-total": 3,
  42. "health-unit-dcos-epmd-service-unhealthy": 0,
  43. "health-unit-dcos-exhibitor-service-total": 1,
  44. "health-unit-dcos-exhibitor-service-unhealthy": 0,
  45. "health-unit-dcos-gen-resolvconf-service-total": 3,
  46. "health-unit-dcos-gen-resolvconf-service-unhealthy": 0,
  47. "health-unit-dcos-gen-resolvconf-timer-total": 3,
  48. "health-unit-dcos-gen-resolvconf-timer-unhealthy": 0,
  49. "health-unit-dcos-history-service-total": 1,
  50. "health-unit-dcos-history-service-unhealthy": 0,
  51. "health-unit-dcos-logrotate-agent-service-total": 2,
  52. "health-unit-dcos-logrotate-agent-service-unhealthy": 0,
  53. "health-unit-dcos-logrotate-agent-timer-total": 2,
  54. "health-unit-dcos-logrotate-agent-timer-unhealthy": 0,
  55. "health-unit-dcos-logrotate-master-service-total": 1,
  56. "health-unit-dcos-logrotate-master-service-unhealthy": 0,
  57. "health-unit-dcos-logrotate-master-timer-total": 1,
  58. "health-unit-dcos-logrotate-master-timer-unhealthy": 0,
  59. "health-unit-dcos-marathon-service-total": 1,
  60. "health-unit-dcos-marathon-service-unhealthy": 0,
  61. "health-unit-dcos-mesos-dns-service-total": 1,
  62. "health-unit-dcos-mesos-dns-service-unhealthy": 0,
  63. "health-unit-dcos-mesos-master-service-total": 1,
  64. "health-unit-dcos-mesos-master-service-unhealthy": 0,
  65. "health-unit-dcos-mesos-slave-public-service-total": 1,
  66. "health-unit-dcos-mesos-slave-public-service-unhealthy": 0,
  67. "health-unit-dcos-mesos-slave-service-total": 1,
  68. "health-unit-dcos-mesos-slave-service-unhealthy": 0,
  69. "health-unit-dcos-metronome-service-total": 1,
  70. "health-unit-dcos-metronome-service-unhealthy": 0,
  71. "health-unit-dcos-navstar-service-total": 3,
  72. "health-unit-dcos-navstar-service-unhealthy": 0,
  73. "health-unit-dcos-oauth-service-total": 1,
  74. "health-unit-dcos-oauth-service-unhealthy": 0,
  75. "health-unit-dcos-pkgpanda-api-service-total": 3,
  76. "health-unit-dcos-pkgpanda-api-service-unhealthy": 0,
  77. "health-unit-dcos-pkgpanda-api-socket-total": 3,
  78. "health-unit-dcos-pkgpanda-api-socket-unhealthy": 0,
  79. "health-unit-dcos-rexray-service-total": 2,
  80. "health-unit-dcos-rexray-service-unhealthy": 0,
  81. "health-unit-dcos-signal-service-total": 1,
  82. "health-unit-dcos-signal-service-unhealthy": 0,
  83. "health-unit-dcos-signal-timer-total": 3,
  84. "health-unit-dcos-signal-timer-unhealthy": 0,
  85. "health-unit-dcos-spartan-service-total": 3,
  86. "health-unit-dcos-spartan-service-unhealthy": 0,
  87. "health-unit-dcos-spartan-watchdog-service-total": 3,
  88. "health-unit-dcos-spartan-watchdog-service-unhealthy": 0,
  89. "health-unit-dcos-spartan-watchdog-timer-total": 3,
  90. "health-unit-dcos-spartan-watchdog-timer-unhealthy": 0,
  91. "health-unit-dcos-vol-discovery-priv-agent-service-total": 1,
  92. "health-unit-dcos-vol-discovery-priv-agent-service-unhealthy": 0,
  93. "health-unit-dcos-vol-discovery-pub-agent-service-total": 1,
  94. "health-unit-dcos-vol-discovery-pub-agent-service-unhealthy": 0,
  95. "provider": "aws",
  96. "source": "cluster",
  97. "variant": "open"
  98. },
  99. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  100. "event": "health"
  101. },
  102. "mesos": {
  103. "properties": {
  104. "agents_active": 2,
  105. "agents_connected": 2,
  106. "clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  107. "cpu_total": 8,
  108. "cpu_used": 0,
  109. "customerKey": "",
  110. "disk_total": 71154,
  111. "disk_used": 0,
  112. "environmentVersion": "1.8",
  113. "framework_count": 2,
  114. "frameworks": [
  115. {
  116. "name": "marathon"
  117. },
  118. {
  119. "name": "metronome"
  120. }
  121. ],
  122. "mem_total": 28036,
  123. "mem_used": 0,
  124. "provider": "aws",
  125. "source": "cluster",
  126. "task_count": 0,
  127. "variant": "open"
  128. },
  129. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  130. "event": "mesos_track"
  131. }
  132. }

用户界面遥测

DC/OS UI 向 [区块] 发送两种通知(https://segment.com/docs/),Mesosphere 然后用它来跟踪使用度量标准和客户支持:

  • 登录信息
  • 在浏览 UI 时查看的页面

选择退出

您也可选择退出遥测功能。如需更多信息,请参阅 文档