Skip to content

Latest commit

 

History

History
158 lines (101 loc) · 2.47 KB

README.md

File metadata and controls

158 lines (101 loc) · 2.47 KB

netsimon (NET Speed Index MONitoring) v1.0

Netsimon is an application that monitors the speed index of a web pages.

Kibana Dashborad Image Screenshot

Make Docker container

QuickStart

ubuntu

1. Install netsimon

git clone https://github.com/bashow0316/netsimon.git

2. APT install app

sudo apt install chromium-browser
sudo apt install npm

3. npm install

cd dir

Install puppeteer & speedline

cd netsimon/script
npm i puppeteer
npm i speedline

4. docker-compose

cd netsimon
sudo mkdir elastic01-data && sudo chown -R 1000:1000 elastic01-data
sudo docker-compose up -d

5. Testing

cd netsimon/script
./speedline.sh

Access kibana

http://localhost:5601

Check elasticsearch index

Management > Index patterns > Create index pattern

Index pattern

index-*

Click Discover

6. cron.d

Change user at cron.d/netsimon

cd netsimon/cron.d
vi netsimon
(Change user)

Move cron.d/netsimon

cd netsimon/cron.d
sudo cp netsimon /etc/cron.d/
sudo systemctl restart cron.service

7. Kibana dashboard

Make kibana dashboard

Sample dashboard

netsimon/kibana-object/export.ndjson

Option

Change Web page list

Chage file

netsimon/script/speedline.conf

Sample

name URL

Speed Index

Use application

  • Docker
  • Docker-compose
  • puppeteer
  • speedline
  • Elasticsearch
  • Kibana

Docker

Docker-compose

puppeteer

Page tracing

speedline

Respect applications