Skip to content

Latest commit

 

History

History
91 lines (71 loc) · 1.99 KB

README.md

File metadata and controls

91 lines (71 loc) · 1.99 KB

Go Observability Elastic

  • APM Server

    • Web requests
    • SQL queries
    • Outgoing HTTP requests
    • Panic tracking
    • Custom spans
  • Metricbeat

    • Golang Metrics
    • Docker Metrics
    • System Metrics
    • Redis Metrics
  • Heartbeat

    • Uptime Metrics

Step by step

  • Start Kibana, Elasticsearch, APM-Server, Postgres, Redis and Heartbeat
make up

go-info

  • Start app
make up-go-info
  • listen port 3001
  • depends_on: postgres
Endpoint HTTP Method Description
/info GET Info network
/health GET Healthcheck
/query/{name} GET Query in Postgres
/http-external GET HTTP request for app go-app
/debug/vars GET Metrics for golang metrics

go-app

  • Start app
make up-go-info
  • listen port 3000
  • depends_on: redis
Endpoint HTTP Method Description
/ping GET Pong response
/health GET Healthcheck
/query/{name} GET Query in MySQL
/cache/{key} GET Find in Redis
/http-external GET HTTP request for app go-info
/debug/vars GET Metrics for golang metrics
  • Start Metricbeat after starting others containers
make up-metric

Others commands

  • Build app go-info
make up-go-info-build
  • Build app go-app
make up-go-app-build
  • Send request
##make request n=100 p=3001 r=/query/test
make request NUM_REQUESTS PORT RESOURCE
  • Kill all containers
make down