Skip to content

Latest commit

 

History

History
 
 

golang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Go Metric Registrar Example

Running

  1. cd metric-registrar-examples/golang/src/metric_registrar_examples
  2. go get ./...
  3. go run main.go

Endpoints

  • / - frontend to trigger endpoints
  • /simple - Returns OK and increments a counter.
  • /high_latency - Delays 2 seconds before responding.
  • /custom_metric - Increments or decrements a custom gauge.
  • /metrics - Displays Prometheus metrics

Running Tests

  1. cd metric-registrar-examples/golang/src/metric_registrar_examples
  2. go get -t ./...
  3. go test ./... or ginkgo -r