Giter Site home page Giter Site logo

bharath-b-rh / node-observability-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/node-observability-agent

0.0 0.0 0.0 1.31 MB

CRI-O (container runtime interface) and Kubelet (service on each node) scripts to support node-observability-operator.

License: Apache License 2.0

Dockerfile 0.57% Makefile 1.54% Go 62.60% Shell 2.79% HTML 32.50%

node-observability-agent's Introduction

Node Observability Agent

The agent exposes port 9000 by default, unless a --port parameter is passed to it.

List of requrired parameters to be passed to the agent:

  • node : IP address of the node on which to perform the profiling
  • storageFolder : folder to which the pprof files are saved
  • tokenFile : file containing token to be used for kubelet profiling http request
  • crioSocket : file referring to the unix socket to be used for CRIO profiling

It accepts requests for the following endpoints:

  • Kubelet + CRIO Profiling: /pprof
  • Status update: /status

The agent doesn't accept concurrent requests: only one profiling request can run at a time. Therefore, /status as well as /pprof will return a 409 error if the agent is already running a profiling request. In case of error, /status and /pprof will return a 500 error. The agent will remain in error until an admin has cleared the agent.err file that is stored in the storageFolder.

Run the agent

Running

The agent can be run locally but is best run in a pod on a Kubernetes cluster.

$ IMG=quay.io/user-xyz/node-observability-agent make deploy
$ kubectl port-forward svc/node-observability-agent 9000:80

To run locally:

NODE_IP=$NODE_IP./bin/node-observability-agent --tokenFile /var/run/secrets/kubernetes.io/serviceaccount/token --storage /host/tmp/pprofs/

node-observability-agent's People

Contributors

sherine-k avatar lmzuccarelli avatar openshift-merge-robot avatar alebedev87 avatar bharath-b-rh avatar coverprice 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.