Skip to content

Commit

Permalink
fix in orchestrator for gauge metrics; updated sliderule node applica…
Browse files Browse the repository at this point in the history
…tion metrics grafana page
  • Loading branch information
jpswinski committed Nov 1, 2023
1 parent 334d5c4 commit 1b718e3
Show file tree
Hide file tree
Showing 2 changed files with 2,062 additions and 111 deletions.
2 changes: 1 addition & 1 deletion targets/orchestrator-haproxy/orchestrator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ local function api_metric(applet)
applet:set_status(200)
elseif metric_type == 1 then
StatData.gaugeAppMetrics[metric_name] = metric_value
StatData.gaugeAppMetrics[metric_name .. "_sum"] = (StatData.countAppMetrics[metric_name .. "_sum"] or 0.0) + metric_value
StatData.gaugeAppMetrics[metric_name .. "_sum"] = (StatData.gaugeAppMetrics[metric_name .. "_sum"] or 0.0) + metric_value
StatData.countAppMetrics[metric_name .. "_count"] = (StatData.countAppMetrics[metric_name .. "_count"] or 0) + 1
applet:set_status(200)
else
Expand Down
Loading

0 comments on commit 1b718e3

Please sign in to comment.