Академический Документы
Профессиональный Документы
Культура Документы
Installation Document
1. Introduction...................................................................................................................... 3
2. Installation Manual...........................................................................................................3
2.1 Prerequisites........................................................................................................... 3
2.2 Server Configuration..............................................................................................3
Update the OS...................................................................................................... 3
Install Graphite.....................................................................................................3
Configure a Database for Django.........................................................................3
Configure the Graphite Web Application.............................................................3
Sync the Database................................................................................................ 4
Configure Carbon.................................................................................................4
Install and Configure Apache...............................................................................4
2.3 Installation Procedure.............................................................................................4
Install and configure program dependencies........................................................4
Install and Configure Collectd............................................................................. 5
3. Additional Information.................................................................................................... 5
3.1 Clearing data history.............................................................................................. 5
3.2 References.............................................................................................................. 6
1. Introduction
Monitorino is used alongside Graphite and Collectd to track JVM metrics. All running
JVM processes are automatically searched and analyzed. Stats tracked are heap size,
thread statuses, and context switches.
2. Installation Manual
2.1 Prerequisites
Operating System: Linux ubuntu 14.04
Install Graphite
TIME_ZONE = '[timezone]'
Change to your timezone, example: TIME_ZONE = Asia/Jakarta
USE_REMOTE_USER_AUTHENTICATION = True
The areas in red are values you need to change. Make sure that you modify
the password to the one you selected for the graphite user in Postgres.
Sync the Database
Configure Carbon
sudo cp /usr/share/doc/graphite-carbon/examples/storage-aggregation.conf.example
/etc/carbon/storage-aggregation.conf
sudo service carbon-cache start
Install openJDK
sudo visudo
Add a line after root ALL=(ALL:ALL) ALL
Containing:
username
ALL=(ALL) ALL
Username is your username, for example
andy
ALL=(ALL) ALL
Exec should be followed by your username and then the path to monitorino
executable.
Find and change the write_graphite plugin to something like this
Node name can be changed to anything you like. Change host to the IP address of
target server (or localhost on the server itself). Make sure to add the dot . on the
prefix.
Other plugins are recommended to be disabled (commented) to minimize
warnings and errors, and so the CollectD only collect the stats we wanted.
Restart the collectD service
sudo service collectd restart
3. Additional Information
3.1 Clearing data history
Saved statistics in Graphite are saved in /var/lib/graphite/whisper. Should you need to
clear all data, go there and delete the folders you want.
3.2 References
CollectD Installation
https://www.digitalocean.com/community/tutorials/how-to-configure-collectd-to-gather-s
ystem-metrics-for-graphite-on-ubuntu-14-04
Exec formatting
https://collectd.org/wiki/index.php/Plain_text_protocol
Graphite
http://graphite.readthedocs.org/en/latest/
Graphite Installation
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an