A tool to get Linux system data via /proc
refer more detail on spec.
go get -u -x github.com/LinkerNetworks/linkerConnector
TBD
linkerConnector (-server=XXX) (-dest=XXX) ...
## Check all command destription
linkerConnector --help
## optional: using make
make compile-static-amd64: static compile
make docker-build: build a docker image whose name is linkerrepository/linker_connector
make container-run: run the image built above
make container-stop: stop container
make container-clean: remove container
make clean: clean binary file
readProcPath
/r
: File path of proc for linkerConnector to read from.cAdvisorAddr
/c
: Http Url for cAdvisor REST API.server
/s
: The comma separated list of server could be brokers in the Kafka cluster or spark address.topic
/t
: The topic to kafka produce.interval
/i
: Time interval(second) to retrieval data , default 0 is not repeat.dest
/d
: Destination tokafka
,spark
,cassandra
andstdout
.pipe
/p
: Using pipe mode to forward data. usagecat data.txt | linkerConnector -p true
dsiableFileSave
/d
: Disable local file save.--help
: Display detail command help.
- Disk I/O
/proc/{PID}/io
- Process Status: (Zombie, VM Data)
/proc/{PID}/status
.state
(R is running, S is sleeping, D is sleeping in an uninterruptible wait, Z is zombie, T is traced or stopped).- Zombie: No parent process.
- How to find parent process:
ps axjf
(Linux only)
- Hardware Infomation Dump:
dmidecode
, only dump memorydmidecode -- type memory
- DataCollect
- ProcessInfo
- Proc Information
- File Info
- Host's all Container Info
- MachineIndo
- CPUInfo
- MemInfo
- DMIINFO- Bios Information
- DMIINFO- System Information
- NetInfo
- DiskInfo
- Last Login history
- Syslog
- ProcessInfo
- Data Forwarding
- Kafka
- Spark Streaming
- Stdout
- Pipe mode
- Cassandra
- TBC
- Data Generator
- Randomize data generator