All components for collecting metrics from the Atoms and transmitting data to Eyer can be deployed to a separate host (for test-setups, all components can be deployed to the Atom host).
This setup consist of three different components listed below:
Influx Telegraf is one of the most used open source agents to collect metrics from sensors and systems. See https://www.influxdata.com/time-series-platform/telegraf/ for more information. Make sure you download the version corresponding to your OS.
Jetty provides a web server and servlet container, additionally providing support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and are freely available for commercial use and distribution. See The Eclipse Jetty Project for more information.
Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors. See Jolokia.org for more information.
We highly recommend that you register the Influx Telegraf agent as a service, so it will automatically start on a reboot or after an outage.
Log in to your Boomi AtomSphere account at https://platform.boomi.com/
in “Integration” -> “Atom management” -> select atom -> “Properties” then select “Advanced” properties to add/ expose JMX Remote Port (5002), JMX Remote RMI Port (5002), JMX Remote SSL (disabled) and JMX Remote Authentication (disabled)
Repeat a) for all your Atoms
Download the 3 components needed for the setup
Deploy Jetty using this guide. Jetty should be deployed to a separate VM or container (if you run a test setup, you can deploy to the host of the Atom).
We recommend that you install the demo applications with the
java -jar $JETTY_HOME/start.jar --add-module=demos
command to automatically set environment variables. The demo applications can be deleted later.Copy the Jolokia .war file to the
$JETTY_BASE/webapps
folder, and rename the .war file tojolokia.war
Start Jetty with
java -jar $JETTY_HOME/start.jar
Test that Jetty is running by pointing your browser to
http://localhost:8080/jolokia
For the server or container hosting Telegraf (can be the same VM/docker as Jetty, or separate)
download and install the Influx Telegraf agent that corresponds to your OS athttps://portal.influxdata.com/downloads/
Copy the eyer_agentless_telegraf.conf file into the Influx Telegraf folder. You can download the configuration file at the bottom of this guide.
Open the config file in a text editor, and search for / find the section
[outputs.http.headers]
Below this section there is a field with the name authenticate. Place your Eyer agent API token here
In the config file, copy the
[[inputs.jolokia2_proxy]]
section including all the metrics and paste it x number of times to accommodate the number of atoms you are monitoring. If you only monitor a single atom, there is no need to do this.
Change every
[[inputs.jolokia2_proxy.target]] url = "service:jmx:rmi:///jndi/rmi://atom_ip_address:5002/jmxrmi"
section to reflect the IPs where your atoms are hosted. If you only monitor a single atom, and if your Telegraf agent is hosted in the same location as the Jolokia agent, useurl = "service:jmx:rmi:///jndi/rmi://localhost:5002/jmxrmi"
Change the
[[inputs.jolokia2_proxy]] url = "http://jetty_ip:8080/jolokia"
to reflect the IP where you deployed the Jetty / Jolokia.
Save the config file
Register the Telegraf agent as a service and start it(see instructions per OS). With Linux use
sudo systemctl start telegraf
Start the Telegraf service.