Giter Site home page Giter Site logo

hecg119 / kmon-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelligentdds/kmon

0.0 0.0 0.0 16.19 MB

An In-kernel Transparent Monitoring System for Microservice Systems with eBPF

License: Apache License 2.0

Dockerfile 0.03% Makefile 0.55% Shell 3.15% C 85.32% Go 10.95%

kmon-1's Introduction

Kmon

Implementation of paper Kmon: An In-kernel Transparent Monitoring System for Microservice Systems with eBPF

Kmon support some in-kernel indicator with different granularity.

Screenshot

Tcpdrop Snapshot This exmample shows information such as packet details, socket state, and kernel packets/segments stack trace for dropped via tcp_drop(See tcpdrop in BCC). Kmon collect these infomation from program and export them to database.

The configuration of this example is like this.

exporter:
  influxdb:
    - name: influx
      host: http://192.168.199.123:8086

collector:
  tcpdrop:
    - name: tcp_drop
      # ~1: drop_event
      # 2 : drop_event, user_stack
      # 3~: drop_event, user_stack, kernel_stack
      verbose: 3

      listen:
        # Regular expression to filter container
        # With format:[namespace]/[container name]
        k8s:
          - ".+/*"

      export:
        period: 1000
        data_name: tcpdrop
        exporter:
          - name: influx
            database: metrics

User can chose different verbose level, and configuration can be change dynamically by replace config file(not support add new and delete collector temporary).

See Config Examples for more configuration example.

Collector

biostat: Trace latency and throughput of container and device. fcount: Count the number of specific kernel function execution. offcpu: Summarize off-CPU time by kernel stack or user stack trace. tcpdrop: Trace kernel-based TCP packet drops with details. tcpreq: Trace request by TCP packet for each container.

Compile

Docker

docker build .

Folder deployment/kubernetes shows an example to deploy Kmon in kubernetes.

Binary

You should install BCC and golang befor compile.

make

kmon-1's People

Contributors

a595859893 avatar

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.