Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arturmareknowak/elastickibanagrafana
Implementation of middlewares which scrap logs and metrics about endpoint usage to Kibana and Grafana
https://github.com/arturmareknowak/elastickibanagrafana
elasticsearch filebeat go grafana kibana prometheus
Last synced: 19 days ago
JSON representation
Implementation of middlewares which scrap logs and metrics about endpoint usage to Kibana and Grafana
- Host: GitHub
- URL: https://github.com/arturmareknowak/elastickibanagrafana
- Owner: ArturMarekNowak
- License: mit
- Created: 2024-03-18T17:45:13.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T19:31:16.000Z (9 months ago)
- Last Synced: 2024-11-05T11:27:56.656Z (2 months ago)
- Topics: elasticsearch, filebeat, go, grafana, kibana, prometheus
- Language: Go
- Homepage:
- Size: 831 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElasticKibanaGrafana
[![Build](https://github.com/ArturMarekNowak/ElasticKibanaGrafana/actions/workflows/workflow.yml/badge.svg)](https://github.com/ArturMarekNowak/ElasticKibanaGrafana/actions/workflows/workflow.yml/badge.svg) [![Trivy and dockler](https://github.com/ArturMarekNowak/ElasticKibanaGrafana/actions/workflows/image-scan.yml/badge.svg)](https://github.com/ArturMarekNowak/ElasticKibanaGrafana/actions/workflows/image-scan.yml/badge.svg) [![CodeFactor](https://www.codefactor.io/repository/github/arturmareknowak/elastickibanagrafana/badge)](https://www.codefactor.io/repository/github/arturmareknowak/elastickibanagrafana)
This project is a PoC of monitoring and metrics gathering in go
## Table of contents
* [General info](#general-info)
* [Technologies](#technologies)
* [Setup](#setup)
* [Status](#status)
* [Inspiration](#inspiration)## General info
After docker compose is run the project should be ready to go. Project consists of six docker containers:
Pic.1 Visualization of the project
Go app implements only one endpoint - _GET /helloWorld_. Each should be seen in kibana and be visualized in grafana. In kibana after the index is setup one can use filter with _path_ selector to extract API call from log:
Pic.2 Usage of filter
Pic.3 Filtered result
In grafana with usage of simple promQL query such as `rate(http_requests_count[1m])`, data can be visualized:
Pic.4 Number of calls to the specific endpoint
## Technologies
* Go 1.22
* Docker## Setup
1. Run docker compose in src folder: `docker-compose up`## Status
Project is: _finished_## Inspiration
Its good to have such small PoC