All Projects → yanc0 → Beeping

yanc0 / Beeping

Licence: mit
HTTP Monitoring via API - Measure the performance of your servers

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Beeping

Swagger Stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
Stars: ✭ 559 (+109.36%)
Mutual labels:  api, monitoring
Rabbitmq http api client
RabbitMQ HTTP API client for Ruby
Stars: ✭ 70 (-73.78%)
Mutual labels:  api, monitoring
Opentelemetry Js
OpenTelemetry JavaScript Client
Stars: ✭ 700 (+162.17%)
Mutual labels:  api, monitoring
Ceph Dash
Flask based api / dashboard for viewing a ceph clusters overall health status
Stars: ✭ 398 (+49.06%)
Mutual labels:  api, monitoring
Memo
The memo elastic and resilient key-value store.
Stars: ✭ 111 (-58.43%)
Mutual labels:  api, distributed
Urlooker
enterprise-level websites monitoring system
Stars: ✭ 469 (+75.66%)
Mutual labels:  api, monitoring
Graphql Inspector
🕵️‍♀️ Validate schema, get schema change notifications, validate operations, find breaking changes, look for similar types, schema coverage
Stars: ✭ 1,059 (+296.63%)
Mutual labels:  api, monitoring
Maze
Maze Applied Reinforcement Learning Framework
Stars: ✭ 85 (-68.16%)
Mutual labels:  monitoring, distributed
Micro
Micro is a distributed cloud operating system
Stars: ✭ 10,778 (+3936.7%)
Mutual labels:  api, distributed
Miraql
GraphQL performance monitoring & error-handling tool
Stars: ✭ 97 (-63.67%)
Mutual labels:  api, monitoring
Diplomat
A HTTP Ruby API for Consul
Stars: ✭ 358 (+34.08%)
Mutual labels:  api, distributed
Shiny geoip
IP to location API service
Stars: ✭ 172 (-35.58%)
Mutual labels:  api, geoip
Cat
CAT 作为服务端项目基础组件,提供了 Java, C/C++, Node.js, Python, Go 等多语言客户端,已经在美团点评的基础架构中间件框架(MVC框架,RPC框架,数据库框架,缓存框架等,消息队列,配置系统等)深度集成,为美团点评各业务线提供系统丰富的性能指标、健康状况、实时告警等。
Stars: ✭ 16,236 (+5980.9%)
Mutual labels:  monitoring, distributed
Swell
Swell: API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, and gRPC.
Stars: ✭ 517 (+93.63%)
Mutual labels:  api, monitoring
9volt
A modern, distributed monitoring system written in Go
Stars: ✭ 160 (-40.07%)
Mutual labels:  monitoring, distributed
Telize
High performance JSON IP and GeoIP REST API (IP Geolocation)
Stars: ✭ 774 (+189.89%)
Mutual labels:  api, geoip
Pcp
Performance Co-Pilot
Stars: ✭ 716 (+168.16%)
Mutual labels:  monitoring, distributed
Health Checks Api
Standardize the way services and applications expose their status in a distributed application
Stars: ✭ 78 (-70.79%)
Mutual labels:  api, monitoring
Nanny
Nanny is a monitoring tool that monitors the absence of activity.
Stars: ✭ 157 (-41.2%)
Mutual labels:  api, monitoring
Orange
OpenResty/Nginx Gateway for API Monitoring and Management.
Stars: ✭ 2,208 (+726.97%)
Mutual labels:  api, monitoring

BeePing v0.5.0

Build Status

previously named pingmeback

It forages the servers and brings the metrics back to the hive

BeePing is a distant http check as a Service. Call the very simple API, BeePing will measure website for you.

🇺🇸💚 200 OK - 119 ms - (http_status_code, http_request_time)

📖 DNS - 9 ms - (dns_lookup)

🔄 TCP - 6 ms - (tcp_connection)

🔒 TLS - 52 ms - (tls_handshake)

🖥 Server Processing - 43 ms - (server_processing)

🔽 Transfer - 6 ms - (content_transfer)

Other attributes :

  • cert_expiry_days_left
  • http_body_pattern

Features:

  • Very simple JSON API
  • Lot of metrics
  • Timeline of HTTP request
  • SSL Expiration check
  • Server SSL/TLS version and Ciphers
  • Pattern check (search for text in response)
  • GeoIP resolution
  • Single binary

Big hugs to :

  • Dave Cheney for his inspirational work on httpstat
  • Taichi Nakashima for his work on httpstat lib go-httpstat

Install

Download latest version on releases page

  • chmod +x beeping
  • sudo mv beeping /usr/bin
  • beeping
$ ./beeping -h
Usage of ./beeping:
  -geodatfile string
        geoIP database path (default "/opt/GeoIP/GeoLite2-City.mmdb")
  -instance string
        beeping instance name (default hostname)
  -listen string
        The host to bind the server to (default "127.0.0.1")
  -port string
        The port to bind the server to (default "8080")
  -tlsmode
        Activate SSL/TLS versions and Cipher support checks (slow)
  -validatetarget
          Perform some security checks on the target provided (default true)

Notes

  • If no GeoIP database is found, BeePing omit geo response silently
  • TLSMode returns more infos on SSL object. It tries the more ciphers and TLS version Golang can test but the checks can be way slower.

Optional

You can plug MaxMind GeoIP file to know on which country the pings goes.

See: http://dev.maxmind.com/geoip/geoip2/geolite2/

Build

Beeping is known to only compile with Golang 1.8.x + (see #14 )

go get -u github.com/golang/dep
go get -u github.com/yanc0/beeping
cd $GOPATH/src/github.com/yanc0/beeping
dep ensure
go build

API Usage

$ curl -XPOST http://localhost:8080/check -d '{"url": "https://google.fr", "pattern": "find me", "header": "Server:GitHub.com", "insecure": false, "timeout": 20}'
{
  "http_status": "200 OK",
  "http_status_code": 200,
  "http_body_pattern": true,
  "http_header": true,
  "http_request_time": 716,
  "instance_name": "X250",
  "dns_lookup": 14,
  "tcp_connection": 101,
  "tls_handshake": 228,
  "server_processing": 168,
  "content_transfer": 203,
  "timeline": {
    "name_lookup": 14,
    "connect": 115,
    "pretransfer": 344,
    "starttransfer": 512
  },
  "geo": {
    "country": "US",
    "ip": "192.30.253.112"
  },
  "ssl": {
    "ciphers": [
      "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
      "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
      "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
      "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
      "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
      "TLS_RSA_WITH_RC4_128_SHA",
      "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
      "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
      "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
      "TLS_ECDHE_RSA_WITH_RC4_128_SHA",
      "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"
    ],
    "protocol_versions": [
      "TLS12",
      "TLS10",
      "TLS11"
    ],
    "cert_expiry_date": "2018-05-17T12:00:00Z",
    "cert_expiry_days_left": 374,
    "cert_signature": "SHA256-RSA"
  }
}
  • If pattern is not filled http_body_pattern is always true
  • If header is not filled http_header is always true
  • ssl is omitted when http://. The same for the tls_handshake field
  • geo is omitted if geoip is not set

Beeping Clients

Error Handling

beeping returns HTTP 500 when check fail. The body contains the reason of the failure.

{
  "message": "Get https://mysite.com/health: net/http: request canceled (Client Timeout exceeded while awaiting headers)"
}

HTTP Basic Auth

Just add the 'auth' option in your JSON.

$ curl -XPOST http://localhost:8080/check -d '{"url":"http://127.0.0.1:3000","auth":"john:secret"}'

Changelog

0.6.0 - UNRELEASED

0.5.0 - 2017-05-07

  • Add TLS Mode, now show server supported ciphers and SSL/TLS versions
  • Add listen / Port options (breaking change)
  • Modify JSON response structure (breaking change)
  • Add proper logging
  • Set proper User-Agent
  • Add header check

0.4.0 - 2017-04-24

  • Pingmeback is now BeePing
  • Add BeePing logo
  • Adapt documentation
  • Change Travis build info

0.3.0 - 2017-04-21

  • pingmeback now returns geoip informations
  • Add Instance name in results
  • Add vendoring system

To Do

  • [x] Add HTTP Auth
  • [ ] Add tests
  • [ ] More metrics
  • [ ] Packaging

Contributing

Feel free to make a pull request.

Contributors

  • Aaron Hnatiw
  • Aimof
  • Brice Colucci
  • Yann Coleu

Licence

The MIT License (MIT)

Copyright (c) 2016 Yann Coleu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].