Git Product home page Git Product logo

squzy's Introduction

Squzy - opensource monitoring system

version codecov GolangCI Join the chat at https://gitter.im/squzyio/community

About

Squzy - is a high-performance open-source monitoring system written in Golang with Bazel and love.

System Health Checks Capabilities

  1. HTTP/HTTPS
  2. TCP
  3. GRPC - https://github.com/grpc/grpc/blob/master/doc/health-checking.md
  4. SiteMap.xml - https://www.sitemaps.org/protocol.html

Usage

API

Squzy server implement GRPC API.

https://github.com/squzy/squzy_proto/blob/master/proto/v1/server.proto

Examples of call from BloomRPC

Http/Https check:

Usually that check used for monitoring web sites

{
  "interval": 10, - 10 second interval
  "http_check": {
    "method": "GET", - method GET/POST/PUT/DELETE/HEAD
    "url": "https://google.com", - url which should call
    "headers": {
      "custom": "yes",
    },
    "statusCode": 200 - expected statusCode
  }
}

Tcp check:

Check good use for monitoring open ports or not

{
  "interval": 10, - 10 second interval
  "tcp_check": {
    "host": "localhost", - host
    "port": 6345 - port
  },
}

SiteMap check:

Supports redirects!

Every route should return 200

That check good usage when you have critical URL in sitemap, if any of URL throw error check will be failed

{
  "interval": 10,
  "sitemap_check": {
    "url": "https://www.sitemaps.org/sitemap.xml", - url of sitemap (https://www.sitemaps.org/sitemap.xml)
    "concurrency": 5 - parallel 5 request  
  },
}

GRPC check:

Check better to use for internal testing of API services

{
  "interval": 10,
  "grpc_check": {
    "service": "Check", - service name
    "host": "localhost", - host
    "port": 9090 - port
  },
}

Storage

By default squzy use stdout for logs, but can be configured by ENV.

Storage should implement that API:

https://github.com/squzy/squzy_proto/blob/master/proto/v1/storage.proto

Environment variables

  • PORT(8080) - on with port run squzy
  • STORAGE_HOST - log storage host(example localhost:9090)
  • STORAGE_TIMEOUT - timeout for connect to log storage

Docker

For current develop branch use tag: latest

Docker Hub

docker pull squzy/squzy_app:v1.1.8

Run locally with docker:

docker run -p 8080:8080 squzy/squzy_app:v1.1.8

Authors

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent!

Add merge request with description.

squzy's People

Contributors

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