遥测

了解遥测报告组件

为持续改善 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”,
licenseId (DC/OS Enterprise)这是 DC/OS Enterprise 许可证 ID。许可证 ID 通过电子邮件发送给获授权支持联系人。例如:
  1. licenseId”: acme-dev-cluster”,
event这是在区块中出现的类别。可能的值为 package_list(包管理器)、health(诊断)和 mesos_track (Mesos)。例如:
  1. event”: package_list
environmentVersion这是 DC/OS 的版本。例如,如果您使用的是 DC/OS 1.12:
  1. environmentVersion”: 1.12”,
提供程序这是 DC/OS 运行所在的平台。可能的值为 awson-premazure。例如,如果您是在 AWS 上运行:
  1. provider”: aws”,
来源这表示群集的硬编码设置。例如:
  1. source”: cluster”,
变量这表示群集是 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. "licenseId": "acme-dev-cluster",
  7. "environmentVersion": "1.8",
  8. package_list”: [
  9. {
  10. name”: kafka
  11. },
  12. {
  13. name”: spark
  14. }
  15. ],
  16. "provider": "aws",
  17. "source": "cluster",
  18. "variant": "open"
  19. },
  20. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  21. "event": "package_list"
  22. },
  23. "diagnostics": {
  24. "properties": {
  25. "clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  26. "customerKey": "",
  27. "licenseId": "acme-dev-cluster",
  28. "environmentVersion": "1.8",
  29. "health-unit-dcos-diagnostics-service-total": 3,
  30. "health-unit-dcos-diagnostics-service-unhealthy": 0,
  31. "health-unit-dcos-diagnostics-socket-total": 2,
  32. "health-unit-dcos-diagnostics-socket-unhealthy": 0,
  33. "health-unit-dcos-adminrouter-agent-service-total": 2,
  34. "health-unit-dcos-adminrouter-agent-service-unhealthy": 0,
  35. "health-unit-dcos-adminrouter-reload-service-total": 3,
  36. "health-unit-dcos-adminrouter-reload-service-unhealthy": 0,
  37. "health-unit-dcos-adminrouter-reload-timer-total": 3,
  38. "health-unit-dcos-adminrouter-reload-timer-unhealthy": 0,
  39. "health-unit-dcos-adminrouter-service-total": 1,
  40. "health-unit-dcos-adminrouter-service-unhealthy": 0,
  41. "health-unit-dcos-cosmos-service-total": 1,
  42. "health-unit-dcos-cosmos-service-unhealthy": 0,
  43. "health-unit-dcos-epmd-service-total": 3,
  44. "health-unit-dcos-epmd-service-unhealthy": 0,
  45. "health-unit-dcos-exhibitor-service-total": 1,
  46. "health-unit-dcos-exhibitor-service-unhealthy": 0,
  47. "health-unit-dcos-gen-resolvconf-service-total": 3,
  48. "health-unit-dcos-gen-resolvconf-service-unhealthy": 0,
  49. "health-unit-dcos-gen-resolvconf-timer-total": 3,
  50. "health-unit-dcos-gen-resolvconf-timer-unhealthy": 0,
  51. "health-unit-dcos-history-service-total": 1,
  52. "health-unit-dcos-history-service-unhealthy": 0,
  53. "health-unit-dcos-logrotate-agent-service-total": 2,
  54. "health-unit-dcos-logrotate-agent-service-unhealthy": 0,
  55. "health-unit-dcos-logrotate-agent-timer-total": 2,
  56. "health-unit-dcos-logrotate-agent-timer-unhealthy": 0,
  57. "health-unit-dcos-logrotate-master-service-total": 1,
  58. "health-unit-dcos-logrotate-master-service-unhealthy": 0,
  59. "health-unit-dcos-logrotate-master-timer-total": 1,
  60. "health-unit-dcos-logrotate-master-timer-unhealthy": 0,
  61. "health-unit-dcos-marathon-service-total": 1,
  62. "health-unit-dcos-marathon-service-unhealthy": 0,
  63. "health-unit-dcos-mesos-dns-service-total": 1,
  64. "health-unit-dcos-mesos-dns-service-unhealthy": 0,
  65. "health-unit-dcos-mesos-master-service-total": 1,
  66. "health-unit-dcos-mesos-master-service-unhealthy": 0,
  67. "health-unit-dcos-mesos-slave-public-service-total": 1,
  68. "health-unit-dcos-mesos-slave-public-service-unhealthy": 0,
  69. "health-unit-dcos-mesos-slave-service-total": 1,
  70. "health-unit-dcos-mesos-slave-service-unhealthy": 0,
  71. "health-unit-dcos-metronome-service-total": 1,
  72. "health-unit-dcos-metronome-service-unhealthy": 0,
  73. "health-unit-dcos-navstar-service-total": 3,
  74. "health-unit-dcos-navstar-service-unhealthy": 0,
  75. "health-unit-dcos-oauth-service-total": 1,
  76. "health-unit-dcos-oauth-service-unhealthy": 0,
  77. "health-unit-dcos-pkgpanda-api-service-total": 3,
  78. "health-unit-dcos-pkgpanda-api-service-unhealthy": 0,
  79. "health-unit-dcos-pkgpanda-api-socket-total": 3,
  80. "health-unit-dcos-pkgpanda-api-socket-unhealthy": 0,
  81. "health-unit-dcos-rexray-service-total": 2,
  82. "health-unit-dcos-rexray-service-unhealthy": 0,
  83. "health-unit-dcos-signal-service-total": 1,
  84. "health-unit-dcos-signal-service-unhealthy": 0,
  85. "health-unit-dcos-signal-timer-total": 3,
  86. "health-unit-dcos-signal-timer-unhealthy": 0,
  87. "health-unit-dcos-spartan-service-total": 3,
  88. "health-unit-dcos-spartan-service-unhealthy": 0,
  89. "health-unit-dcos-spartan-watchdog-service-total": 3,
  90. "health-unit-dcos-spartan-watchdog-service-unhealthy": 0,
  91. "health-unit-dcos-spartan-watchdog-timer-total": 3,
  92. "health-unit-dcos-spartan-watchdog-timer-unhealthy": 0,
  93. "health-unit-dcos-vol-discovery-priv-agent-service-total": 1,
  94. "health-unit-dcos-vol-discovery-priv-agent-service-unhealthy": 0,
  95. "health-unit-dcos-vol-discovery-pub-agent-service-total": 1,
  96. "health-unit-dcos-vol-discovery-pub-agent-service-unhealthy": 0,
  97. "provider": "aws",
  98. "source": "cluster",
  99. "variant": "open"
  100. },
  101. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  102. "event": "health"
  103. },
  104. "mesos": {
  105. "properties": {
  106. "agents_active": 2,
  107. "agents_connected": 2,
  108. "clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  109. "licenseId": "acme-dev-cluster",
  110. "cpu_total": 8,
  111. "cpu_used": 0,
  112. "customerKey": "",
  113. "disk_total": 71154,
  114. "disk_used": 0,
  115. "environmentVersion": "1.8",
  116. "framework_count": 2,
  117. "frameworks": [
  118. {
  119. "name": "marathon"
  120. },
  121. {
  122. "name": "metronome"
  123. }
  124. ],
  125. "mem_total": 28036,
  126. "mem_used": 0,
  127. "provider": "aws",
  128. "source": "cluster",
  129. "task_count": 0,
  130. "variant": "open"
  131. },
  132. "anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
  133. "event": "mesos_track"
  134. }
  135. }

用户界面遥测

DC/OS UI 向 区块 发送两种通知,Mesosphere 然后用它来跟踪使用度量标准和客户支持:

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

选择退出

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