The following components are deployed on each TWC/Cassandra node:
Telegraf - system metrics collector
Dropwizard metrics-graphite-3.1.2.jar - metrics publishing agent for Java
Install Telegraf
Install Telegraf in the TWCloud/Cassandra node
If you have not created the influxdb.repoas in step 1a of the Monitoring Mode, do so at this time.
Install with the command:
Code Block
language
text
sudo yum install telegraf
Edit /etc/telegraf/telegraf.conf as follows
Locate the section titled "[[outputs.influxdb]]"
Edit the line with the urls =tag as follows:
Code Block
language
text
urls = ["http://monitoringnode_ip:8086"] where monitoringnode_ip is the IP address of the node where infuxdb is installed (if it is located on the same machine, you may use 127.0.0.1).
Enable the telegraf Telegraf service on startup the startup:
Copy metrics-graphite-3.1.2.jar to /usr/share/cassandra/lib/
Edit /etc/cassandra/default.conf/cassandra-env.sh, adding the following at the bottom:
Code Block
language
text
# Enable metrics reporting to InfluxDB using the yammer library
METRICS_REPORTER_CFG="metrics-reporter-graphite.yaml"
JVM_OPTS="$JVM_OPTS -Dcassandra.metricsReporterConfigFile=$METRICS_REPORTER_CFG"
Create fie a file /etc/cassandra/default.conf/metrics-reporter-graphite.yaml with the following content:
Replacing HOST_NAMEwith the Cassandra node's host namehostname, and IP_ADDRESSwith the IP address of the monitoring node (where influxdb Influxdb is installed).
Log into http://MONTORINGNODE_IP:3000 - you will be displayed the Grafana Login Screen - default credentials are admin/admin. Upon logging in, you will be prompted to change the admin password.
You will be presented with the following screen, click Add data source: Image RemovedImage Added
Create the data sources, entering enter the information as in the following screenshots, and pressing press Save & Test for each. After the data source gets created, click the Data Sources link to continue adding data sources.
Image RemovedImage AddedImage Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
Image Removed
Image Added
Image AddedImage Removed
Now that the data sources have been added, select the option to import a dashboard: Image RemovedImage Added
To upload .json file, click the Upload .json File File: Image RemovedImage Added
Select the Teamwork Cloud Dashboard to be your Home Dashboard and click Save. Image RemovedImage Added
The admin user has permissions allowing full access. Create Create a limited access user which who will be allowed of viewing to view the dashboard without the ability of making to make modifications.Click Click Users. Image RemovedImage Added
You will be presented with the following screen. Click Invite: Image RemovedImage Added
Create a guest user by entering the information as below, and clicking Invite: Image RemovedImage Added
You will be shown a screen as below. Click the Pending Invitesbutton button: Image RemovedImage Added
Click the Copy Invite button Image RemovedImage Added
Paste the link which was copied to your clipboard on a new browser window, and replace "localhost" with the IP address of the monitoring node. You will be presented with the following screen. Change the email field from "guest" to "guest@localhost", enter a password and click on the Sign Up button. Image RemovedImage Added At this point, you will be redirected to the Grafana dashboard under the new login. Sign out, and sign back in as admin. Image RemovedImage Added
At this point, change the default admin password. Image RemovedImage Added Image RemovedImage Added