It is a project for collecting system matrics by using Topbeat. Purpose of this project is to collect and transfer system metrics ( CPU usage, Memory usage and Disk usage ) in real-time.
For This I am using Topbeats,Elasticsearch,Kibana Dashboard.
https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html
https://www.elastic.co/guide/en/beats/topbeat/current/topbeat-installation.html
https://www.elastic.co/downloads/kibana
####2)Start Elastic search Open Terminal and go to Elasticsearch Directory and run elasticsearch
./bin/elasticsearch
Note the publish address in http row. Genrally it is 127.0.0.1:9200
(localhost:9200
).
we can check elasticsearch by hitting publish address in browser.
####3)Configure and start Topbeat
Configuration file of Topbeat is topbeat.yml Check the host in topbeat.yml. It must be same as publish address of Elasticsearch.
####4)Start Kibana
Go to the Kibana Directory on Terminal
and hit ./bin/kibana
Note the ip at which kibana is running genrally it id http://0.0.0.0:5601
####5)Load Beats dashboard Open Terminal and navigate to beat-dashboards To load the dashboards, execute the script pointing to the Elasticsearch HTTP URL:
# Unix
./load.sh -url "http://localhost:9200"
# Windows
.\load.ps1 -url "http://localhost:9200"`
If you want to use HTTP authentication for Elasticsearch, you can specify the credentials as a second parameter:
`# Unix
./load.sh -url "http://localhost:9200" -user "admin:secret"
# Windows
.\load.ps1 -url "http://localhost:9200" -user "admin:secret"`
Where "http://localhost:9200" is publish address of elasticsearch. If it is different then replace it with appropriate address.
####6)Go To Kibana Dashboard
Go to the ip address of kibana server (http://0.0.0.0:5601
)
Now go to:
Dashboard=>load saved dashboard=>Topbeat Dashboard
Now All the server Metrics will visualize in your browser.