Skip to content

Commit

Permalink
Implement ExecutionStatisticsDynamicBean.getAttributes
Browse files Browse the repository at this point in the history
Implementation was missing. Needed in order to use this bean with generic JMX collector from Prometheus: https://github.com/prometheus/jmx_exporter.

Signed-off-by: Trond Marius Øvstetun <[email protected]>
  • Loading branch information
ovstetun authored and senivam committed Sep 24, 2020
1 parent f5caafb commit 0197f23
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ public void setAttribute(Attribute attribute)

@Override
public AttributeList getAttributes(String[] attributes) {
// TODO: implement
return null;
AttributeList x = new AttributeList();
for (String k : attributes) {
Attribute a = new Attribute(k, attributeValues.get(k).get());
x.add(a);
}
return x;
}

@Override
Expand Down

0 comments on commit 0197f23

Please sign in to comment.