IBMStreams/streamsx.jmxclients

Handle PE move to a different resource

Closed this issue · 2 comments

Expected Behavior

When a PE moves to a different resource, the cooresponding label (resource) for metrics for that peid should change.

Actual Behavior

Currently this does not happen. In the case of most pe metrics, they just get the values updated but the resource label does not change to reflect to new resource. In the case of launchCount which is not a metric but comes from the PE JMX Object, it creates a new metric with the resource label but does not delete the old metric with the old resource label

Steps to Reproduce the Problem

  1. Look at metrics
  2. Move a pe via console
  3. Look at metrics for the pe (launchCount and nCpuMilliseconds)

Specifications

  • Version of Application: current / all
  • Version of IBM Sterams: 4.3.x

Solution direction: Need to look for and handle PE relocation.
When detected, delete metrics with the old label combination.
New metrics should be created with the new combinations

Will be in new 3.x release