Coder Social home page Coder Social logo

hawkingrei / sysutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pingcap/sysutil

0.0 1.0 0.0 85 KB

sysutil is a library which implementats the gRPC service Diagnostics and shares the diagnostics functions between TiDB and PD.

License: Apache License 2.0

Go 100.00%

sysutil's Introduction

sysutil

sysutil is a library which implementats the gRPC service Diagnostics and shares the diagnostics functions between TiDB and PD.

Search log

The semantics of the log search service is: search for local log files, and filter using predicates, and then return the matched results.

The following are the predicates that the log interface needs to process:

  • start_time: start time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default is 0.
  • end_time:: end time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default is int64::MAX.
  • pattern: filter pattern determined by the keyword. For example, SELECT * FROM tidb_cluster_log WHERE "%gc%" %gc% is the filtered keyword.
  • level: log level; can be selected as DEBUG/INFO/WARN/WARNING/TRACE/CRITICAL/ERROR
  • limit: the maximum of logs items to return, preventing the log from being too large and occupying a large bandwidth of the network.. If not specified, the default limit is 64k.

System information collect

Hardware

  • CPU
  • NIC
  • Disk
  • Memory

System

  • sysctl
  • process list

Load

  • CPU
  • Memory
  • NIC
  • Disk IO

sysutil's People

Contributors

crazycs520 avatar lonng avatar baurine avatar defined2014 avatar max-cheng avatar deardrops avatar breezewish avatar sunxiaoguang avatar reafans avatar tisonkun 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.