Skip to content

emicklei/hazana-grafana-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hazana-grafana-monitoring

install

go get github.com/emicklei/hazana-grafana-monitoring

example

package main

import (
    "github.com/emicklei/hazana"
    monitoring "github.com/emicklei/hazana-grafana-monitoring"
)

func main() {
    attack := NewZombieAttack("zombies.com:50051")
    hazana.Run(monitoring.WithMonitor(attack), hazana.ConfigFromFlags())
}

grafana local

docker run -d -p 8181:80 -p 8125:8125/udp -p 8126:8126 --publish=2003:2003 --name kamon-grafana-dashboard kamon/grafana_graphite
  • Login http://localhost:8181 with admin:admin
  • Add new Datasource type Graphite, leave URL empty!
  • Add new Dashboard, call it Hazana
  • Add Graph Panel, select datasource

Sample graph

run load test

  • Pass the -m flag to enable sending of metrics to Graphite (default is false).

  • Using the -g flag to specifcy the host:port of Graphite (default is :2003).

  • Using the -p flag to add a prefix to the metrics sent to Graphite (default is hazana).

About

Hazana extension that sends metrics to Graphite during the execution of the load test

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages