Update Prometheus config
Request
- Base URL: https://docs.emqx.com/api/v5
- URL: https://docs.emqx.com/api/v5/prometheus
- Auth: one of:
- HTTP basic
- bearerAuth (a scheme the document does not define)
Request body
URL of Prometheus server
Data reporting interval
A list of HTTP Headers when pushing to Push Gateway.<br/><br/>For example, <code> { Authorization = "some-authz-tokens"}</code>
Job Name that is pushed to the Push Gateway. Available variables:<br/><br/>- ${name}: Name of EMQX node.<br/><br/>- ${host}: Host name of EMQX node.<br/><br/>For example, when the EMQX node name is <code>emqx@127.0.0.1</code> then the <code>name</code> variable takes value <code>emqx</code> and the <code>host</code> variable takes value <code>127.0.0.1</code>.<br/><br/><br/>Default value is: <code>${name}/instance/${name}~${host}</code><br/>
Turn Prometheus data pushing on or off
Enable or disable VM distribution collector, collects information about the sockets and processes involved in the Erlang distribution mechanism.
Enable or disable Mnesia collector, collects Mnesia metrics mainly using mnesia:system_info/1 .
Enable or disable VM statistics collector, collects Erlang VM metrics using erlang:statistics/1 .
Enable or disable VM system info collector, collects Erlang VM metrics using erlang:system_info/1 .
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 .
Enable or disable VM msacc collector, collects microstate accounting metrics using erlang:statistics(microstate_accounting) .
Example request
{
"interval": "32s",
"headers": [
{}
]
}Response
URL of Prometheus server
Data reporting interval
A list of HTTP Headers when pushing to Push Gateway.<br/><br/>For example, <code> { Authorization = "some-authz-tokens"}</code>
Job Name that is pushed to the Push Gateway. Available variables:<br/><br/>- ${name}: Name of EMQX node.<br/><br/>- ${host}: Host name of EMQX node.<br/><br/>For example, when the EMQX node name is <code>emqx@127.0.0.1</code> then the <code>name</code> variable takes value <code>emqx</code> and the <code>host</code> variable takes value <code>127.0.0.1</code>.<br/><br/><br/>Default value is: <code>${name}/instance/${name}~${host}</code><br/>
Turn Prometheus data pushing on or off
Enable or disable VM distribution collector, collects information about the sockets and processes involved in the Erlang distribution mechanism.
Enable or disable Mnesia collector, collects Mnesia metrics mainly using mnesia:system_info/1 .
Enable or disable VM statistics collector, collects Erlang VM metrics using erlang:statistics/1 .
Enable or disable VM system info collector, collects Erlang VM metrics using erlang:system_info/1 .
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 .
Enable or disable VM msacc collector, collects microstate accounting metrics using erlang:statistics(microstate_accounting) .
Example response
{
"interval": "32s",
"headers": [
{}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.