Telemetry Node
Downloads
Download the twc-scripts-<version>-linux-monitoring-stack.zip here.
The following components are deployed on each Teamwork Cloud/Cassandra node:
- Telegraf - system metrics collector
- jolokia-agent-jvm, version 2.3.0 - a metrics publishing agent for Java
Installing Telegraf
To install and configure Telegraf
- Install Telegraf
- Create yum repo entry, if needed. Refer to Step 1a from Monitoring node installation.
- Install with the command:
sudo yum install -y telegrafBASH
- Use a custom configuration file:
- Locate /etc/telegraf/telegraf.conf. Make a note of the file ownership and permission.
- Locate telegraf.conf.template from the extracted Telemetry-Node-Install folder and replace the existing file in /etc/telegraf/telegraf.conf; be sure to reset ownership and permission after replacement.
- Edit telegraf.conf and replace HOST_NAME with the monitoring node address.
- Enable the Telegraf service for startup with the command:
sudo systemctl enable telegrafBASH - Start Telegraf:
sudo systemctl start telegrafSHELL - Proceed with installing Jolokia for Cassandra on nodes with Cassandra, and Jolokia for Teamwork Cloud on nodes with Teamwork Cloud.
Installing Jolokia
Nodes with Teamwork Cloud
To install Jolokia
- Run the following:
wget -c https://repo1.maven.org/maven2/org/jolokia/jolokia-agent-jvm/2.3.0/jolokia-agent-jvm-2.3.0-javaagent.jar cp ./jolokia-agent-jvm-2.3.0-javaagent.jar /opt/local/CATIANoMagicServices/TeamworkCloud/lib/TEXT - Backup JVM.options in /opt/local/CATIANoMagicServices/TeamworkCloud/
- Append the following at the end of jvm.options:
-javaagent:/opt/local/CATIANoMagicServices/TeamworkCloud/lib/jolokia-agent-jvm-2.3.0-javaagent.jar=port=8779,host=127.0.0.1,protocol=httpTEXT - Restart twcloud:
systemctl restart twcloudSHELL
Nodes with Cassandra
To install Jolokia
- Run the following:
wget -c https://repo1.maven.org/maven2/org/jolokia/jolokia-agent-jvm/2.3.0/jolokia-agent-jvm-2.3.0-javaagent.jar cp ./jolokia-agent-jvm-2.3.0-javaagent.jar /usr/share/cassandra/lib/TEXT - Backup jvm17-server.options in /etc/cassandra/default.conf/
- Append the following at the end of jvm17-server.options:
-javaagent:/usr/share/cassandra/lib/jolokia-agent-jvm-2.3.0-javaagent.jar=port=8778,host=127.0.0.1,protocol=httpTEXT - Backup jvm11-server.options in /etc/cassandra/default.conf/
- Append the following at the end of jvm11-server.options:
-javaagent:/usr/share/cassandra/lib/jolokia-agent-jvm-2.3.0-javaagent.jar=port=8778,host=127.0.0.1,protocol=httpTEXT - Reboot Cassandra:
systemctl restart cassandraSHELL - Continue to configure Grafana.
Ports
The following are the default ports used by services running on the telemetry node. These ports are only for internal communication between Telegraf and Cassandra/Teamwork Cloud and therefore are blocked by the local firewall operating on the system.
Service | Default Port |
Cassandra | 8778 |
Teamwork Cloud | 8779 |