Skip to content

Commit

Permalink
rename rabbitmq_nodes_up to rabbitmq_node_up, fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
deadtrickster committed Feb 27, 2017
1 parent a39349d commit 6be163d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Disk space occupied by the table (DCL + DCD).

Cluster/nodes metrics.

* `rabbitmq_nodes_running`<br />
* `rabbitmq_node_up`<br />
Type: boolean.<br />
Labels: name, type.<br />
Node running status.
Expand Down
7 changes: 3 additions & 4 deletions src/collectors/prometheus_rabbitmq_nodes_collector.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ deregister_cleanup(_) -> ok.

collect_mf(_Registry, Callback) ->
Nodes = all_nodes_raw(),
[Callback(create_untyped(rabbitmq_nodes_up, "Node runnning status", Node)) || Node <- Nodes],

Callback(create_untyped(rabbitmq_node_up, "Node runnning status", Nodes)),
ok.

collect_metrics(rabbitmq_nodes_up, Node) ->
untyped_metric(labels(Node), node_running(Node)).
collect_metrics(rabbitmq_node_up, Nodes) ->
[untyped_metric(labels(Node), node_running(Node)) || Node <- Nodes].

%%====================================================================
%% Private Parts
Expand Down

0 comments on commit 6be163d

Please sign in to comment.