Coder Social home page Coder Social logo

oryagel / synthetic-monitoring-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/synthetic-monitoring-agent

0.0 1.0 0.0 9.53 MB

Synthetic Monitoring Agent

Home Page: https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/

License: Apache License 2.0

Makefile 3.25% Go 81.48% Dockerfile 0.12% Shell 13.92% Jsonnet 1.23%

synthetic-monitoring-agent's Introduction

Build Status go.mod Go version Go Report Card Go Reference License

Synthetic Monitoring Agent

This is the 'worker' for Grafana's Synthetic Monitoring application. The agent provides probe functionality and executes network checks for monitoring remote targets.

Please install Synthetic Monitoring in your Grafana Cloud or local Grafana instance before setting up your own private probe. You may need to generate a new API key to initialize the app.

Probes

Probes run checks from distributed locations around the world and send the resulting metrics and events directly to Grafana Cloud Prometheus and Loki services.

You can select 1 or more public probes to run checks from or run your own private probes from any environment you choose.

To run your own probe

Add Probe

Add a new probe in your Grafana instance

  • Navigate to Synthetic Monitoring -> Probes.
  • Click New
  • Enter a Probe Name, Latitude, Longitude, and Region.
  • Optionally enter up to 3 custom labels to identify your probe.
  • Click Save
  • Copy the "Probe Authentication Token" and save for installing the agent.

Install the agent on Debian based systems

  • Add package repo GPG key

wget -q -O - https://packages-sm.grafana.com/gpg.key | sudo apt-key add -

  • Add Debian package repo

sudo add-apt-repository "deb https://packages-sm.grafana.com/deb stable main"

  • Install synthetic-monitoring-agent package

sudo apt-get install synthetic-monitoring-agent

  • Edit /etc/synthetic-monitoring/synthetic-monitoring-agent.conf and add the token retrieved from Grafana
# Enter API token retrieved from grafana.com here
API_TOKEN='YOUR TOKEN HERE'
  • Restart the agent

sudo service synthetic-monitoring-agent restart

Once the service is running, you will be able to select your new probe exactly the same as any public probe. You will need to manually add the new probe to any previously created checks.

Deploy it using Docker

We publish a docker image on docker hub

Steps:

# pull image
docker pull grafana/synthetic-monitoring-agent:latest
# export configs
# replace YOUR_TOKEN_HERE with your Authentication Token
export API_TOKEN=YOUR_TOKEN_HERE
export API_SERVER="synthetic-monitoring-grpc.grafana.net:443"
# run
docker run grafana/synthetic-monitoring-agent --api-server-address=${API_SERVER} --api-token=${API_TOKEN} --verbose=true

Now you should have the agent reporting as private probe, and running checks (if you have created some) in the logs.

Deploy it using Kubernetes

See examples/kubernetes for the documentation and example yaml files

synthetic-monitoring-agent's People

Contributors

mem avatar woodsaj avatar dependabot[bot] avatar electron0zero avatar brittenhouse avatar rdubrock avatar captncraig avatar julienduchesne 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.