Monitor servers using Grafana, Influxdb, telegraf
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
In order to run this project you have to install docker and docker-compose on your system.
- Clone this repo to you machine:
git clone https://github.com/hassanjuniedi/sysmon.git
- after cloning you will have a sysmon directory, cd into that directory:
cd sysmon
- create new directory to hold data for grafana container:
mkdir grafana && sudo chown -R 472:472 grafana
- Export a hostname variable (this will be used in grafana dashboard)
export HOSTNAME='youhostname'
- Run docker-compose up command to run all the services :
sudo -E docker-compose up -d
- Visit http://localhost:3030 to open grafana web view you can sign in using the following credentials:
username: admin
password: admin
- on the left side menu hover over the
cog
icon and selectdata sources
from the menu.
- select the
InfluxDB
from available options and enter the following:
URL: http://influxdb:8086
Database: telegraf
then click save and test
button.
-
on the left side menu hover over the plus
+
icon and press onimport
. -
past the following url into text input with assosiated label
Grafana.com Dashboard
https://grafana.com/dashboards/5955
and press load button.
- In the import view select the influxDB source and press
import
button.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Hassan Juniedi - Initial work - Hassan Juniedi
This project is licensed under the MIT License - see the LICENSE.md file for details