metrics.plugins.json
-
metrics.plugins.json.
export
()¶ Export metrics in the JSON format.
Return: a string containing metrics in the JSON format Rtype: string Важно
The values can also be
+-math.huge
andmath.huge * 0
. In such case:math.huge
is serialized to"inf"
-math.huge
is serialized to"-inf"
math.huge * 0
is serialized to"nan"
.
Example
local json_plugin = require('metrics.plugins.json')
local json_metrics = json_plugin.export()
Example on GitHub: metrics_plugins