Giter Club home page Giter Club logo

pshealthz's Introduction

license pkg goreportcard workflow workflow workflow codecov sourcegraph

Overview

pshealthz is a tool to check the health of a process.

Example

$ pshealthz

other terminal:

$ curl -i http://localhost:8080 -d '{"regex":"^/usr/sbin/chronyd"}'
HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 15 Nov 2023 09:38:24 GMT
Content-Length: 74

{"ok":true,"processes":[{"pid":"10","cmdline":"/usr/sbin/chronyd -F -1"}]}

Installation

pre-built binary

VERSION=v0.0.1

# download
curl -fLROSs https://github.com/kunitsucom/pshealthz/releases/download/${VERSION}/pshealthz_${VERSION}_linux_amd64.zip

# unzip
unzip -j pshealthz_${VERSION}_linux_amd64.zip '*/pshealthz'

go install

go install github.com/kunitsucom/pshealthz/cmd/pshealthz@latest

Usage

$ pshealthz --help
Usage:
    pshealthz [options]

Description:
    check process health via http

options:
    --version (default: false)
        show version information and exit
    --addr (env: PSHEALTHZ_ADDR, default: localhost:8888)
        listen address for http server
    --help (default: false)
        show usage

pshealthz's People

Contributors

ginokent avatar

Stargazers

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