Giter Club home page Giter Club logo

net-monitor-pinger's Introduction

About

net-monitor-pinger is used in conjunction with Hasura GraphQL Engine, hasura-ad-webhook, and net-monitor-ui to form a network monitoring service.

Install

go get github.com/korylprince/net-monitor-pinger

Configuration

Hasura GraphQL Engine should be set up with the SQL schema and metadata.json in the schema folder.

The service is configured with environment variables:

DNSWorkers="8"
DNSLookupInterval="30" # in minutes
PingWorkers="16"
PingBufferSize="1024"
PingInterval="15" # in seconds
PingTimeout="1000" # in milliseconds
PurgeInterval="60" # in minutes
PurgeOlderThan="1440" # in minutes
GraphQLEndpoint="ws://example.com/v1/graphql"
GraphQLAPISecret="really long key"

For more information see config.go.

Docker

You can use the pre-built Docker container, korylprince/net-monitor-pinger.

The Docker container supports Docker Secrets by appending _FILE to any variable, e.g. GRAPHQLAPISECRET_FILE=/run/secrets/<secret_name>.

Example

docker run -d --name="net-monitor-pinger" \
    -e GRAPHQLENDPOINT="ws://example.com/v1/graphql" \
    -e GRAPHQLAPISECRET_FILE="/run/secrets/api_secret" \
    --restart="always" \
    korylprince/net-monitor-pinger:latest

net-monitor-pinger's People

Contributors

korylprince avatar

Stargazers

Doru Carastan avatar

Watchers

James Cloos 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.