Metrics not showing in the Operational Intelligence Insight Explorer.


Description

Metrics not showing in the Operational Intelligence Insight Explorer.

Steps to Reproduce

  1. Send metrics for CI
  2. Confirm the new metric cannot be found in Insight Explorer
  3. Check node logs for errors like:
    MetricDataWriter : Failed to write data for Subject <some subject id> - cmdb_ci_win_server - java.lang.IndexOutOfBoundsException: Index: 187, Size: 31..

Workaround

  1. Import attached script "MetricSchemaDefinitionCorrector"
    • The script has a "dryMode" flag to allow to run without any changes. Hardcoded default is false.
  2. First run script via scripts - background, or fix script, with dryMode = true to see how many schemas should be fixed
  3. Next run the script not in dryMode, set dryMode = false, to fix the schemas
  4. Example script call:
    var corrector = new MetricSchemaDefinitionCorrector();
    corrector.process();

Related Problem: PRB1424165