Giter Site home page Giter Site logo

ebpf_exporter's Introduction

ebpf-exporter를 활용한 AWS EKS 네트워크 모니터링

프로젝트 설명

https://lunalight.im/2024/05/03/monitoring-eks-network-with-ebpf.html

Dashboard

Dashboard Image

How to Deploy

이 코드가 테스트된 환경 정보는 아래와 같습니다. 환경이 다를 경우 실행이 원활하지 않을 수도 있습니다.

k8s
 - Client: v1.29.0
 - Server: v1.29.3-eks-adc7111
Node
 - OS: Amazon Linux 2
 - Kernel: 5.10.205-195.807.amzn2.x86_64

소스 코드를 다운 받습니다.

git clone https://github.com/MoonHyuk/ebpf_exporter.git
cd ebpf_exporter

필요한 helm repo를 추가합니다. 이 대시보드는 prometheus-community/kube-prometheus-stackkubeservice-stack/kubeservice-ebpf-exporter 차트를 사용합니다.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add kubeservice-stack https://kubeservice-stack.github.io/kubservice-charts
helm repo update

monitoring 네임스페이스를 생성하고, 해당 네임스페이스의 default ServiceAccount에 pods와 nodes를 읽을 수 있는 권한을 부여합니다.

kubectl apply -f clusterrole.yaml

helm 차트를 설치합니다.

helm install ebpf-exporter kubeservice-stack/kubeservice-ebpf-exporter -n monitoring -f ebpf-exporter-values.yaml
helm install kube-prometheus prometheus-community/kube-prometheus-stack -n monitoring -f prometheus-values.yaml

기본으로는 사전에 빌드한 이미지 (moonhyuk/ebpf-tcp-exporter:lastest)를 사용합니다. 만약 수정된 소스 코드로 직접 빌드하고 싶으시다면 아래 명령어로 빌드한 후,

docker build --tag <IMAGE_REPO:IMAGE_TAG> --target ebpf_exporter_with_examples .
docker push <IMAGE_REPO:IMAGE_TAG>

ebpf-exporter-values.yaml 파일을 수정합니다.

image:
  # Docker image pull policy.
  pullPolicy: Always
  # Docker image registry.
  registry: <REGISTRY>
  # Docker image repository.
  repository: <IMAGE_REPO>
  tag: <IMAGE_TAG>

ebpf_exporter's People

Contributors

bobrik avatar dependabot[bot] avatar moonhyuk avatar alebsys avatar netoptimizer avatar superq avatar jasonk000 avatar zuzzas avatar alexzzz avatar siebenmann avatar mtbentley avatar dqminh avatar huseyinsaatci avatar aibor avatar kenju avatar wenlxie avatar richardelling avatar alexforster avatar mjtrangoni avatar epk avatar ntnx-aleksa avatar bwplotka avatar daviddetorres avatar hiiirad avatar mic92 avatar lmb avatar 0mp avatar maxenglander avatar ozanuslan avatar mqasimsarfraz avatar

Stargazers

asbubam 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.