emqx_prometheus_schema {
prometheus {
desc {
en: """Settings for reporting metrics to Prometheus"""
zh: """Prometheus 监控数据推送"""
}
label {
en: """Prometheus"""
zh: """Prometheus"""
}
}
push_gateway_server {
desc {
en: """URL of Prometheus server"""
zh: """Prometheus 服务器地址"""
}
}
interval {
desc {
en: """Data reporting interval"""
zh: """数据推送间隔"""
}
}
headers {
desc {
en: """A list of HTTP Headers when pushing to Push Gateway.
For example, { Authorization = "some-authz-tokens"}
"""
zh: """推送到 Push Gateway 的 HTTP Headers 列表。
例如, { Authorization = "some-authz-tokens"}
"""
}
}
job_name {
desc {
en: """Job Name that is pushed to the Push Gateway. Available variables:
- ${name}: Name of EMQX node.
- ${host}: Host name of EMQX node.
For example, when the EMQX node name is emqx@127.0.0.1
then the name
variable takes value emqx
and the host
variable takes value 127.0.0.1
.
Default value is: ${name}/instance/${name}~${host}
"""
zh: """推送到 Push Gateway 的 Job 名称。可用变量为:
- ${name}: EMQX 节点的名称。
- ${host}: EMQX 节点主机名。
例如,当 EMQX 节点名为 emqx@127.0.0.1
则 name 变量的值为 emqx
,host 变量的值为 127.0.0.1
。
默认值为: ${name}/instance/${name}~${host}
"""
}
}
enable {
desc {
en: """Turn Prometheus data pushing on or off"""
zh: """开启或关闭 Prometheus 数据推送"""
}
}
vm_dist_collector {
desc {
en: """Enable or disable VM distribution collector, collects information about the sockets and processes involved in the Erlang distribution mechanism."""
zh: """开启或关闭 VM 分布采集器,收集 Erlang 分布机制中涉及的套接字和进程的信息。"""
}
}
mnesia_collector {
desc {
en: """Enable or disable Mnesia collector, collects Mnesia metrics mainly using mnesia:system_info/1 ."""
zh: """开启或关闭 Mnesia 采集器, 使用 mnesia:system_info/1 收集 Mnesia 相关指标"""
}
}
vm_statistics_collector {
desc {
en: """Enable or disable VM statistics collector, collects Erlang VM metrics using erlang:statistics/1 ."""
zh: """开启或关闭 VM 统计采集器, 使用 erlang:statistics/1 收集 Erlang VM 相关指标"""
}
}
vm_system_info_collector {
desc {
en: """Enable or disable VM system info collector, collects Erlang VM metrics using erlang:system_info/1 ."""
zh: """开启或关闭 VM 系统信息采集器, 使用 erlang:system_info/1 收集 Erlang VM 相关指标"""
}
}
vm_memory_collector {
desc {
en: """Enable or disable VM memory collector, collects information about memory dynamically allocated by the Erlang emulator using erlang:memory/0 , also provides basic (D)ETS statistics ."""
zh: """开启或关闭 VM 内存采集器, 使用 erlang:memory/0 收集 Erlang 虚拟机动态分配的内存信息,同时提供基本的 (D)ETS 统计信息"""
}
}
vm_msacc_collector {
desc {
en: """Enable or disable VM msacc collector, collects microstate accounting metrics using erlang:statistics(microstate_accounting) ."""
zh: """开启或关闭 VM msacc 采集器, 使用 erlang:statistics(microstate_accounting) 收集微状态计数指标"""
}
}
}