遥测
了解遥测报告组件
为持续改善 DC/OS 体验,包含了一个将匿名使用数据报告给 Mesosphere 的遥测组件。此数据用于监控核心 DC/OS 组件、安装、用户界面的可靠性,并了解哪些特性最受欢迎。
核心遥测
DC/OS 信号 组件查询领导管理节点上的诊断服务 /system/health/v1/report
端点,并将此数据发送给 区块,Mesosphere 然后用它来跟踪使用率度量标准和客户支持。
DC/OS 信号报告的信息来自多个组件:DC/OS 诊断、Apache Mesos 和 DC/OS 包管理器 (Cosmos)。
此数据针对每个类别进行收集:
类型 | 描述 |
---|---|
anonymousId | 这是在启动时为每个群集创建的匿名 ID。此 ID 在您的群集中持续存在。例如:
|
clusterId | 这是在启动时为每个群集创建的 anonymousID 值。此 ID 在您的群集中持续存在。例如:
|
customerKey (DC/OS Enterprise) | 这是 DC/OS Enterprise 客户密钥。客户密钥通过电子邮件发送给获授权支持联系人。例如:
|
event | 这是在区块中出现的类别。可能的值为 package_list (包管理器)、health (诊断)和 mesos_track (Mesos)。例如:
|
environmentVersion | 这是 DC/OS 的版本。例如,如果您使用的是 DC/OS 1.12:
|
提供程序 | 这是 DC/OS 运行所在的平台。可能的值为 aws 、on-prem 和 azure 。例如,如果您是在 AWS 上运行:
|
来源 | 这表示群集的硬编码设置。例如:
|
变量 | 这表示群集是 DC/OS 还是 DC/OS Enterprise。例如,如果您使用的是 DC/OS Open Source:
|
诊断
此信息从 DC/OS 诊断 组件收集。对于每个 systemd
单元,将收集以下信息,其中 <UNIT_NAME>
是组件名称:
"health-unit-dcos-<UNIT_NAME>-total": 3, "health-unit-dcos-<UNIT_NAME>-unhealthy": 0,
Mesos
此信息从 Apache Mesos 组件收集。
类型 | 描述 |
---|---|
agents_active | 活动代理的数量。例如:
|
agents_connected | 连接的代理数量。例如:
|
cpu_total | 可用的 CPU 数量。例如:
|
cpu_used | 已分配的 CPU 数量。例如:
|
disk_total | 可用磁盘空间(MB)。例如:
|
disk_used | 已分配磁盘空间(MB)。例如:
|
framework_count | 已安装的 DC/OS 服务数量。例如:
|
frameworks | 安装了哪些 DC/OS 服务。例如:
|
mem_total | 可用内存(MB)。例如:
|
mem_used | 分配的内存(MB)。例如:
|
task_count | 任务数量。例如:
|
包管理器
此信息从 DC/OS 包管理器 (Cosmos) 组件收集。
类型 | 描述 |
---|---|
package_list | 安装了哪些包。例如,如果您有 Kafka 和 Spark:
|
以下是收集的 JSON 遥测报告的示例:
{
"cosmos": {
"properties": {
"clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"customerKey": "",
"environmentVersion": "1.8",
“package_list”: [
{
“name”: “kafka”
},
{
“name”: “spark”
}
],
"provider": "aws",
"source": "cluster",
"variant": "open"
},
"anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"event": "package_list"
},
"diagnostics": {
"properties": {
"clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"customerKey": "",
"environmentVersion": "1.8",
"health-unit-dcos-diagnostics-service-total": 3,
"health-unit-dcos-diagnostics-service-unhealthy": 0,
"health-unit-dcos-diagnostics-socket-total": 2,
"health-unit-dcos-diagnostics-socket-unhealthy": 0,
"health-unit-dcos-adminrouter-agent-service-total": 2,
"health-unit-dcos-adminrouter-agent-service-unhealthy": 0,
"health-unit-dcos-adminrouter-reload-service-total": 3,
"health-unit-dcos-adminrouter-reload-service-unhealthy": 0,
"health-unit-dcos-adminrouter-reload-timer-total": 3,
"health-unit-dcos-adminrouter-reload-timer-unhealthy": 0,
"health-unit-dcos-adminrouter-service-total": 1,
"health-unit-dcos-adminrouter-service-unhealthy": 0,
"health-unit-dcos-cosmos-service-total": 1,
"health-unit-dcos-cosmos-service-unhealthy": 0,
"health-unit-dcos-epmd-service-total": 3,
"health-unit-dcos-epmd-service-unhealthy": 0,
"health-unit-dcos-exhibitor-service-total": 1,
"health-unit-dcos-exhibitor-service-unhealthy": 0,
"health-unit-dcos-gen-resolvconf-service-total": 3,
"health-unit-dcos-gen-resolvconf-service-unhealthy": 0,
"health-unit-dcos-gen-resolvconf-timer-total": 3,
"health-unit-dcos-gen-resolvconf-timer-unhealthy": 0,
"health-unit-dcos-history-service-total": 1,
"health-unit-dcos-history-service-unhealthy": 0,
"health-unit-dcos-logrotate-agent-service-total": 2,
"health-unit-dcos-logrotate-agent-service-unhealthy": 0,
"health-unit-dcos-logrotate-agent-timer-total": 2,
"health-unit-dcos-logrotate-agent-timer-unhealthy": 0,
"health-unit-dcos-logrotate-master-service-total": 1,
"health-unit-dcos-logrotate-master-service-unhealthy": 0,
"health-unit-dcos-logrotate-master-timer-total": 1,
"health-unit-dcos-logrotate-master-timer-unhealthy": 0,
"health-unit-dcos-marathon-service-total": 1,
"health-unit-dcos-marathon-service-unhealthy": 0,
"health-unit-dcos-mesos-dns-service-total": 1,
"health-unit-dcos-mesos-dns-service-unhealthy": 0,
"health-unit-dcos-mesos-master-service-total": 1,
"health-unit-dcos-mesos-master-service-unhealthy": 0,
"health-unit-dcos-mesos-slave-public-service-total": 1,
"health-unit-dcos-mesos-slave-public-service-unhealthy": 0,
"health-unit-dcos-mesos-slave-service-total": 1,
"health-unit-dcos-mesos-slave-service-unhealthy": 0,
"health-unit-dcos-metronome-service-total": 1,
"health-unit-dcos-metronome-service-unhealthy": 0,
"health-unit-dcos-navstar-service-total": 3,
"health-unit-dcos-navstar-service-unhealthy": 0,
"health-unit-dcos-oauth-service-total": 1,
"health-unit-dcos-oauth-service-unhealthy": 0,
"health-unit-dcos-pkgpanda-api-service-total": 3,
"health-unit-dcos-pkgpanda-api-service-unhealthy": 0,
"health-unit-dcos-pkgpanda-api-socket-total": 3,
"health-unit-dcos-pkgpanda-api-socket-unhealthy": 0,
"health-unit-dcos-rexray-service-total": 2,
"health-unit-dcos-rexray-service-unhealthy": 0,
"health-unit-dcos-signal-service-total": 1,
"health-unit-dcos-signal-service-unhealthy": 0,
"health-unit-dcos-signal-timer-total": 3,
"health-unit-dcos-signal-timer-unhealthy": 0,
"health-unit-dcos-spartan-service-total": 3,
"health-unit-dcos-spartan-service-unhealthy": 0,
"health-unit-dcos-spartan-watchdog-service-total": 3,
"health-unit-dcos-spartan-watchdog-service-unhealthy": 0,
"health-unit-dcos-spartan-watchdog-timer-total": 3,
"health-unit-dcos-spartan-watchdog-timer-unhealthy": 0,
"health-unit-dcos-vol-discovery-priv-agent-service-total": 1,
"health-unit-dcos-vol-discovery-priv-agent-service-unhealthy": 0,
"health-unit-dcos-vol-discovery-pub-agent-service-total": 1,
"health-unit-dcos-vol-discovery-pub-agent-service-unhealthy": 0,
"provider": "aws",
"source": "cluster",
"variant": "open"
},
"anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"event": "health"
},
"mesos": {
"properties": {
"agents_active": 2,
"agents_connected": 2,
"clusterId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"cpu_total": 8,
"cpu_used": 0,
"customerKey": "",
"disk_total": 71154,
"disk_used": 0,
"environmentVersion": "1.8",
"framework_count": 2,
"frameworks": [
{
"name": "marathon"
},
{
"name": "metronome"
}
],
"mem_total": 28036,
"mem_used": 0,
"provider": "aws",
"source": "cluster",
"task_count": 0,
"variant": "open"
},
"anonymousId": "70b28f00-e38f-41b2-a723-aab344f535b9",
"event": "mesos_track"
}
}
用户界面遥测
DC/OS UI 向 区块 发送两种通知,Mesosphere 然后用它来跟踪使用度量标准和客户支持:
- 登录信息
- 在浏览 UI 时查看的页面
选择退出
您也可选择退出遥测功能。如需更多信息,请参阅 退出