Skip to content

TheGeniesis/metric_blog

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages