Giter VIP home page Giter VIP logo

f5-telemetry-analytics's Introduction

F5 Telemetry Analytics

This project works on Visualization and Analytics On BIG-IP Data Traffic.

It is powered by docker based BigData Engine Tools: EFK. The scaling-out is an another story, so performance improving work is on the way.

** Quick Glance On The Samples **: docs/screenshots/README.md

Program Architecture

image

Running Dependencies

  • docker
  • docker-compose

Note:

  • Docker Release and Version

    We recommend to use Docker CE instead of the OS-built docker version, like: docker x86_64 2:1.13.1-162.git64e9980.el7.centos.

    Use ./scripts/helpers/install-dockerce-centos.sh for DockerCE installation on CentOS.

    *Important*: It will remove OS prebuilt docker version and install DockerCE.

  • SELinux

    Check SELinux status and config if necessary when there are some network issues.

    For test, you can close SELinux. However that is not good practice in product environment.

Usage and Workflow

  1. Run start-all.sh: For the first time of running start-all.sh, docker command will pull or build images, so it may take a few minutes to finish, depends on the downloading speed of docker images.

    The start-all.sh process do the following 3 things in sequence:

    1. Starts the containers: ELASTICSEARCH FLUENTD .. KIBANA and CTRLBOX.
    2. Imports kibana dashboards to KIBANA.
    3. Creates indexs and mappings in ELASTICSEARCH.
  2. Setup BIG-IP request logging profile and HSL pool.

    More details about Request Logging Profile configuration(or optional using iRules) on BIG-IP, see docs/BIG-IP_Configuration_for_BDE.docx.

    To collect logs from BIG-IP virtual servers to EFK, manually, BIG-IP admin needs to

    1. Create HSL pool.

      The pool member is the host where EFK program starts.

      The port is 20001.

    2. Create request logging profile using the HSL pool and bind it to the specific virtual server.

      On the request logging profile creation page, left all configuration as default except Response Setting -> Template: Use the content of docs/bigip-settings/http.logging.profile.

  3. Discover and View in Dashboard.

    Open EntryPage: http://<hostname>:80, or

    Open Kibana webpage: http://localhost:5601:

    1. Navigate to Discover tab, to view if there are logs comming in.

    2. Navigate to Dashboard tab for visualization.

      The dashboards can be shared thus embedded in customers' web application via iframe.

      Click share to find it.

    3. OpNavigate to Machine Learning tab for data analytics(required BYOL).

BIG-IP Configuration Template

As the "Get Start", there are 3 options for configuring BIG-IP for logging.

  1. Request Logging Profile + HSL (Recommended)

    Copy the content of docs/bigip-settings/http.logging.profile to the request logging profile as mentioned above. A standard content may be like:

       {
       "timestamp": "$DATE_YYYY-$DATE_MM-${DATE_DD}T${TIME_HMS}.000${TIME_OFFSET}",
       "client-ip": "${X-Forwarded-For}", 
       "host": "$Host", 
       "user-agent": "${User-agent}", 
       "cookie": "$Cookie", 
       "method": "$HTTP_METHOD", 
       "uri": "$HTTP_URI", 
       "username": "$Username", 
       "content-type": "${Content-Type}", 
       "server-ip": "$SERVER_IP", 
       "latency": $RESPONSE_MSECS, 
       "status": "$HTTP_STATCODE"
       }
    

    Users can customize this configuration based on their own business purpose.

    The profile way has least performance impact to data traffic.

  2. iRules + HSL

    There is an example: docs/bigip-settings/http.logging.irule.

    Also users can define their own logic and metrics for information collecting.

    The iRule way is more flexible to business scenario. However, users should consider the performance impact during to add (one more) irule for BIG-IP VS configuration.

  3. Automation Telemetry Streaming

    This is a new way for metrics collection.

    Users need to install the iControlLX extention to BIG-IP for telemetry streaming.

    More information, see here: https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.