Hawkular is a modular systems monitoring suite, that consists of several sub-projects for
storing of metrics, alerting on incoming events and more. Those projects are developed
in their own GitHub repositories and integrated in this project.
In this repository we are assembling the individual pieces, sub projects and UI into
the overall Hawkular instance.
In the root pom.xml you can actually set the particular versions of the components, but we can’t
guarantee the various permutation of component versions to work together.
Building
To build Hawkular, clone this repository and build from the top level.
$ git clone https://github.com/hawkular/hawkular.git
$ cd hawkular
$ mvn install
Once those steps are achieved, .zip and .tgz archives will be available in dist/target directory.
Tip
If you build with mvn install -Pdev, an uncompressed directory will be created in dist/target.
A default user will be created, the username is jdoe and the password is password. This can be convenient
when you are working on the project as you won’t have to unzip/untar and register a new user. The uncompressed directory
can be found in dist/target/hawkular-${version}/hawkular-${version}/ and run with bin/standalone.sh as normally
starting a WildFly server.
Hawkular is released under Apache License, Version 2.0 as described in the LICENSE document.
Copyright 2015-2016 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
is there a particular reason to use that old version of oshi ?
<version.com.github.dblock>1.5</version.com.github.dblock>
v2.6.2 is available but I didn't try it.
(v1.5 complains about my raspberry, nothing blocking for my demo, just the following error in the logs many times)
2016-06-22 14:32:12,488 ERROR [org.hawkular.agent.monitor.protocol.EndpointService](Hawkular WildFly Agent Full Discovery Scan-1) HAWKMONITOR010049: Could not access resources of endpoint [PlatformEndpointService[Endpoint[platform]:[null]]]: org.hawkular.agent.monitor.protocol.ProtocolException: java.lang.IllegalArgumentException: Processor number (4) must be less than the number of CPUs: 4
at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchNodes(PlatformDriver.java:60)
at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchNodes(PlatformDriver.java:38)
at org.hawkular.agent.monitor.protocol.Discovery.discoverChildren(Discovery.java:72)
at org.hawkular.agent.monitor.protocol.Discovery.discoverChildren(Discovery.java:105)
at org.hawkular.agent.monitor.protocol.EndpointService.discoverChildren(EndpointService.java:251)
at org.hawkular.agent.monitor.protocol.EndpointService$1.run(EndpointService.java:204)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.IllegalArgumentException: Processor number (4) must be less than the number of CPUs: 4
at oshi.software.os.linux.proc.CentralProcessor.(CentralProcessor.java:125)
at oshi.software.os.linux.LinuxHardwareAbstractionLayer.getProcessors(LinuxHardwareAbstractionLayer.java:81)
at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getProcessors(OshiPlatformCache.java:187)
at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.discoverResources(OshiPlatformCache.java:438)
at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchNodes(PlatformDriver.java:53)
... 9 more
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2017-04-07T10:29:37+02:00
[INFO] Final Memory: 174M/1143M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (install-agent-module) on project hawkular-wildfly-agent-example-jndi: An exception occured while executing the Java class. null: InvocationTargetException: wildflyHome = /home/extanb/Documents/adnovum/IdeaProjects/hawkular-agent/hawkular-wildfly-agent-itest-parent/hawkular-wildfly-agent-example-jndi/../../../hawkular/dist/target/hawkular-1.0.0.Alpha8/hawkular-1.0.0.Alpha8 is not readable and existing directory -> [Help 1]
Its looking for a project "hawkular" which is not in git. The only checkouts I have are "hawkular-apm" and "hawkular-metrics". A hawkular Alpha version would not be acceptable in production. What should I do ?