Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.314 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.412 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.415 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream, cpu.system.sum.stream]
13:22:50.417 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 2.0
    }
  ]
}
13:22:50.420 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.system.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":2.0}
13:22:50.423 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 3.0
    }
  ]
}
13:22:50.426 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":3.0}
13:22:50.431 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.432 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:3.0 cpu.system.sum.stream:2.0 }
13:22:50.475 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 5.0
13:22:50.476 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 5.0
    }
  ]
}
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.486 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream, cpu.system.sum.stream]
13:22:50.487 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.490 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.system.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":1.0}
13:22:50.492 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 2.0
    }
  ]
}
13:22:50.494 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.system.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":2.0}
13:22:50.496 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 90.0
    }
  ]
}
13:22:50.499 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":90.0}
13:22:50.501 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.501 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:90.0 cpu.system.sum.stream:2.0 }
13:22:50.509 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 92.0
13:22:50.509 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 92.0
    }
  ]
}
13:22:50.512 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:11.000Z",
      "value": 10.0
    }
  ]
}
13:22:50.515 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.system.sum","tags":{},"time":"2017-01-01T12:00:11.000Z","value":10.0}
13:22:50.517 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 11000 ms apart (too far apart to run join script)
13:22:50.517 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:11.000Z",
      "value": 20.0
    }
  ]
}
13:22:50.521 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:11.000Z","value":20.0}
13:22:50.523 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.524 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:20.0 cpu.system.sum.stream:10.0 }
13:22:50.527 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 30.0
13:22:50.527 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:11.000Z",
      "value": 30.0
    }
  ]
}
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.550 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.551 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.554 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 2.0
    }
  ]
}
13:22:50.557 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 3.0
    }
  ]
}
13:22:50.563 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 2.0
    }
  ]
}
13:22:50.568 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":2.0}
13:22:50.570 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.570 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:2.0 }
13:22:50.579 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 200.0
13:22:50.579 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 200.0
    }
  ]
}
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.606 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.607 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": []
}
13:22:50.610 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.612 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":1.0}
13:22:50.614 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.614 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:1.0 }
13:22:50.624 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 100.0
13:22:50.625 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 100.0
    }
  ]
}
13:22:50.628 [main] DEBUG [ResizeTriggerListener:onAlert:28] - resize trigger on event bus: RESIZE_ITERATION
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.645 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.646 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.648 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":1.0}
13:22:50.649 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.650 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:1.0 }
13:22:50.658 [main] DEBUG [AlertListener:onAlert:26] - alert on event bus: {"topic":"/monitoringSubsystem/metricStreamJoiner/joinScript/FAILURE","severity":"ERROR","timestamp":"2017-01-01T12:00:00.000Z","message":"total.cpu.stream: join script failed","details":"total.cpu.stream: joinScript returned a value of type class java.lang.String (must return a number)","metadata":{"metricStream":"total.cpu.stream"}}
13:22:50.664 [main] ERROR [JoiningMetricStream:onMetricEvent:165] - total.cpu.stream: joinScript returned a value of type class java.lang.String (must return a number)
com.elastisys.autoscaler.metricstreamers.streamjoiner.stream.JoinScriptException: joinScript returned a value of type class java.lang.String (must return a number)
	at com.elastisys.autoscaler.metricstreamers.streamjoiner.stream.JoiningMetricStream.runJoinScript(JoiningMetricStream.java:207)
	at com.elastisys.autoscaler.metricstreamers.streamjoiner.stream.JoiningMetricStream.onMetricEvent(JoiningMetricStream.java:152)
	at jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.elastisys.scale.commons.eventbus.impl.SubscriberMethod.call(SubscriberMethod.java:62)
	at com.elastisys.scale.commons.eventbus.impl.Dispatchers$SyncDispatcher.dispatch(Dispatchers.java:78)
	at com.elastisys.scale.commons.eventbus.impl.BaseEventBus.post(BaseEventBus.java:115)
	at com.elastisys.scale.commons.eventbus.impl.SynchronousEventBus.post(SynchronousEventBus.java:14)
	at com.elastisys.autoscaler.metricstreamers.streamjoiner.stream.TestJoiningMetricStream.postMetricValues(TestJoiningMetricStream.java:337)
	at com.elastisys.autoscaler.metricstreamers.streamjoiner.stream.TestJoiningMetricStream.alertOnScriptFailure(TestJoiningMetricStream.java:291)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.677 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.678 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": []
}
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.686 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream, cpu.system.sum.stream]
13:22:50.687 [main] DEBUG [JoiningMetricStream:stop:114] - stopping metric stream total.cpu.stream
13:22:50.688 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.system.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.system.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
13:22:50.689 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 1.0
    }
  ]
}
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.719 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.725 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T11:59:59.990Z",
      "value": 1.0
    }
  ]
}
13:22:50.730 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T11:59:59.990Z","value":1.0}
13:22:50.738 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.739 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:1.0 }
13:22:50.745 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 100.0
13:22:50.746 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 100.0
    }
  ]
}
13:22:50.748 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T11:59:59.980Z",
      "value": 2.0
    }
  ]
}
13:22:50.750 [main] DEBUG [JoiningMetricStream:onMetricEvent:139] - total.cpu.stream: ignoring metric {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T11:59:59.980Z","value":2.0} (older than the most recent observation for input stream cpu.user.sum.stream)
Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release
13:22:50.769 [main] DEBUG [JoiningMetricStream:start:104] - metric stream total.cpu.stream now listening for input metric streams [cpu.user.sum.stream]
13:22:50.770 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "cpu.user.sum.stream",
  "metricValues": [
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T11:59:59.998Z",
      "value": 0.0
    },
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T11:59:59.999Z",
      "value": 1.0
    },
    {
      "metric": "cpu.user.sum",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 2.0
    }
  ]
}
13:22:50.772 [main] DEBUG [JoiningMetricStream:onMetricEvent:145] - total.cpu.stream: received observation {"metric":"cpu.user.sum","tags":{},"time":"2017-01-01T12:00:00.000Z","value":2.0}
13:22:50.781 [main] DEBUG [JoiningMetricStream:sufficientlyCloseObservations:240] - total.cpu.stream: observations are 0 ms apart
13:22:50.783 [main] DEBUG [JoiningMetricStream:onMetricEvent:151] - total.cpu.stream: running join-script on { cpu.user.sum.stream:2.0 }
13:22:50.803 [main] DEBUG [JoiningMetricStream:onMetricEvent:153] - total.cpu.stream: produced joined metric value 200.0
13:22:50.804 [main] DEBUG [MetricListener:onMetricBatch:27] - metrics message on event bus: {
  "id": "total.cpu.stream",
  "metricValues": [
    {
      "metric": "cpu_busy",
      "tags": {},
      "time": "2017-01-01T12:00:00.000Z",
      "value": 200.0
    }
  ]
}
