wesupport

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How we Install Skyline on CentOS 7

by | Sep 24, 2020

Wondering how to install the skyline on centos 7? Then take a peek at this blog.

Here at Bobcares, we have seen several such CentOS related installations as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at how to install skyline.

 

A few facts about Skyline

Skyline is a real-time anomaly detection system. It has the ability to analyze a set of metrics in real time without setting or adjusting the thresholds for each one. Moreover, it has the ability to add your own algorithms for anomaly detection.

It is designed in such a way that it can be used wherever there is a large number of time series (hundreds of thousands) that need constant monitoring.

Skyline comprises of 3 components. They are Horizon Agent, Analyzer Agent, and Webapp.

  • The Horizon Agent collects data. It has Listeners, which listen for incoming data.
  • Analyzer Agent analyzes the data received. Then all the abnormal metrics are written to a file.
  • Webapp will provide a small web application to display the abnormal metrics.

 

How we install skyline on CentOS 7

Now let’s see how our Support Engineers install Skyline.

1. As a first step, we install some necessary applications including some Python-related tools and the Apache webserver:

sudo yum install httpd gcc gcc-c++ git pycairo mod_wsgi python-pip python-devel blas-devel lapack-devel libffi-devel

2. Also, get the latest source files for Skyline from GitHub:

cd /opt
sudo git clone https://github.com/etsy/skyline.git

3. Next, we install a few necessary Python packages:

cd /opt/skyline
sudo pip install -U six
sudo pip install -r requirements.txt

4. Then, we install these Python packages in this specified order. Make a note that this installation might take some time.

sudo pip install numpy
sudo pip install scipy
sudo pip install pandas
sudo pip install patsy
sudo pip install statsmodels
sudo pip install msgpack-python

5. To correct the file location, copy the example Skyline settings

sudo cp /opt/skyline/src/settings.py.example /opt/skyline/src/settings.py

6. Then we create the following directories:

sudo mkdir /var/log/skyline
sudo mkdir /var/run/skyline
sudo mkdir /var/log/redis
sudo mkdir /var/dump/

7. Since the Skyline stores all the metrics in a Redis database, we also install it by running the below command.

sudo yum install redis

8. Then we start the Skyline and Redis services by running these commands:

cd /opt/skyline/bin
sudo redis-server redis.conf
sudo ./horizon.d start
sudo ./analyzer.d start
sudo ./webapp.d start

9. Finally, we test the installation by running the included test script:

python /opt/skyline/utils/seed_data.py

As a result, the below output is received.

Loading data over UDP via Horizon...
Connecting to Redis...
Congratulations! The data made it in. The Horizon pipeline seems to be working.

[Need any further assistance with CentOS queries? – We are here to help you.]

 

Conclusion

In today’s writeup, we saw discussed Skyline. Also, we saw how our Support Engineers install Skyline and Redis databases.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags