Skip to content

williampsena/kong-prometheus-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository demonstrates how to retrieve metrics from the loved Api Gateway (Kong) using the default Grafana Dashboards.

On a daily basis, this is useful for capturing real-time data in your production environment.

How to run tests?

A number of containers will be running concurrently:

  • Kong
  • Prometheus
  • Grafana
  • Nginx (local server)
  • Traefik Whoami (used for upstream metric generation)
  • Seed (used to produce metrics by making queries)
docker compose up -d

Kong

Kong runs in DBLess mode, and all functionalities are described in kong.yml.

Prometheus

Prometheus is in charge of scraping metrics from Kong every specified number of seconds, checkout file prometheus.yml

Grafana

Grafana is in charge of converting data sources metrics (prometheus, statsd, and others) into stunning Dashboards and Alerts, such as this:

dashboard

How run seeds ?

# if you want to send more requests:
docker compose run --rm seed --env REQUESTS=11

Importing Kong Official Dash.

You should import kong_official.json on Dashboard > Manager > Import.

References:

Grafana

Default and secure credentials 🤣:

  • admin/admin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published