GithubHelp home page GithubHelp logo

fossabot / datakit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guancecloud/datakit

0.0 1.0 0.0 110.07 MB

DataKit is collection agent for Guance Cloud.

License: MIT License

Shell 0.35% Python 0.24% Go 97.55% PowerShell 0.01% OpenEdge ABL 0.04% Makefile 0.28% Smarty 0.08% Yacc 0.31% Dockerfile 0.02% Starlark 0.13% Mustache 0.97%

datakit's Introduction

datakit logo

Slack Status MIT License FOSSA Status

Website Doc

Read this in other languages.

中文 (Simplified)

DataKit is an open source, integrated data collection agent, which provides full platform (Linux/Windows/macOS) support and has comprehensive data collection capability, covering various scenarios such as host, container, middleware, tracing, logging and security inspection.

Key Features

Changelog

All DataKit changelog refers to here.

Minimal Requirements

OS Arch Install Path
Linux Kernel 2.6.23+ amd64/386/arm/arm64 /usr/local/datakit
macOS 10.12+(Why) amd64 /usr/local/datakit
Windows 7+/Server 2008R2+ amd64/386 64-bit:C:\Program Files\datakit
32-bit:C:\Program Files(32)\datakit

Install DataKit

We can directly obtain the DataKit installation command from guance cloud. Most of the installation commands seems like that:

  • Linux & Mac
DK_DATAWAY="https://openway.guance.com?token=<YOUR-TOKEN>" bash -c "$(curl -L https://static.guance.com/datakit/install.sh)"
  • Windows
$env:DK_DATAWAY="https://openway.guance.com?token=<YOUR-TOKEN>";Set-ExecutionPolicy Bypass -scope Process -Force; Import-Module bitstransfer; start-bitstransfer -source https://static.guance.com/datakit/install.ps1 -destination .install.ps1; powershell .install.ps1;

For more documentations about DataKit installation, see here.

Build From Source

DataKit building relies on some external tools/libs, we must install them all before compile the source code.

  • We recommend to build source on Ubuntu 20.04+, other linux distribition may failed to install these dependencies. We do not support build DataKit on Windows.
  • Please build the project with make, we haven't testing with Golang/VSCode IDEs

Setup Golang

Install and setup Golang(1.18.3+):

export GOPRIVATE=gitlab.jiagouyun.com/*
export GOPROXY=https://goproxy.cn,direct
export GOPATH=~/go            # depends on your local settings
export GOROOT=~/golang-1.18.3 # depends on your local settings
export PATH=$GOROOT/bin:~/go/bin:$PATH

Install other tools

!!! Do not install these dependencies under datakit source code dir.

  • make: apt-get install make
  • gcc: apt-get install gcc
  • gcc-multilib: apt-get install -y gcc-multilib
  • tree: apt-get install tree
  • packr2: go install github.com/gobuffalo/packr/v2/[email protected]
  • goyacc: go install golang.org/x/tools/cmd/goyacc@latest
  • lint related:
  • eBPF related:
    • clang 10.0+: apt-get install clang
    • llvm 10.0+: apt-get install llvm
    • apt install go-bindata
    • kernel headers
      • apt: apt-get install -y linux-headers-$(uname -r)
  • Documentation exporting:

Build

  1. Clone code
$ mkdir -p $GOPATH/src/gitlab.jiagouyun.com/cloudcare-tools
$ cd $GOPATH/src/gitlab.jiagouyun.com/cloudcare-tools

$ git clone https://github.com/GuanceCloud/datakit.git   # may be blocked by GFW
$ git clone https://jihulab.com/guance-cloud/datakit.git # jihulab mirror

$ cd datakit
  1. Building
make

If building ok, all binaries are generated under dist:

dist
├── [4.0K]  datakit-linux-amd64
│   ├── [ 72M]  datakit
│   └── [4.0K]  externals
│       ├── [ 14M]  logfwd
│       └── [10.0M]  oracle
├── [4.0K]  local
│   ├── [ 26M]  installer-linux-amd64
│   └── [ 228]  version
└── [4.0K]  standalone
    └── [4.0K]  datakit-ebpf-linux-amd64
		        └── [ 38M]  datakit-ebpf

We can build all platforms(Linux/Mac/Windows) with following command:

make testing

Basic Usage

We can use help command to see more usage of DataKit:

datakit help

# Or

./dist/datakit-linux-amd64/datakit help

Contributing

Before contributing, check out some guideline of DataKit:

Full Documentation

For full documents of DataKit, see

License

FOSSA Status

datakit's People

Contributors

coanor avatar codapewild avatar vircoys avatar hywqc avatar leecha avatar pyh4 avatar songlonqi-java avatar cryptonmorf avatar iswarrens avatar meteormatt avatar stevenliu2020 avatar derrickball avatar livesiteme avatar fossabot avatar wendy1129 avatar

Watchers

 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.