Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 2.1 KB

README.md

File metadata and controls

55 lines (43 loc) · 2.1 KB

Metric application

PHP 7.4 SYMFONY 4,4

This application was created to show an example integration Prometheus with Symfony 4 Framework

The Application logic is created to add some scenarios like many database queries, slow endpoints, etc.

Application has 5 endpoints:

Method Routing Description
GET /example Endpoint to count
POST /example Endpoint to count
GET /second/example Endpoint to count
POST /second/example Endpoint to count
GET /slow/example Endpoint to count
POST /slow/example Endpoint to count
PUT /slow/example Endpoint to count
DELETE /slow/example Endpoint to count
GET /metrics Get metrics for Prometheus

Pre-requirements

The application wasn't tested on Windows

Setup

Kubernetes based version

Installation

  • Run task init

Run application

Docker based version

Installation

  • Run task docker-init

Run application

To see Grafana and prometheus panel you need to use the Kubernetes version

Remove application

  • Run task remove-dev