Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rulanugrh/cressida
Visualization with Grafana based on Metrics taken by Prometheus and Tracing with OpenTelemtry implementation in Golang and use PostgreSQL as Database
https://github.com/rulanugrh/cressida
Last synced: 21 days ago
JSON representation
Visualization with Grafana based on Metrics taken by Prometheus and Tracing with OpenTelemtry implementation in Golang and use PostgreSQL as Database
- Host: GitHub
- URL: https://github.com/rulanugrh/cressida
- Owner: rulanugrh
- License: mit
- Created: 2024-06-19T17:49:04.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T18:39:32.000Z (5 months ago)
- Last Synced: 2024-08-29T20:57:03.865Z (5 months ago)
- Language: Go
- Homepage:
- Size: 1.15 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cressida
![banner](.github/banner.png)## Description
Cressida about a project, where this project create API service transporter. In this project has implementation opentelemetry for tracing endpoint / function and collect some metric ( gauge, summary, histogram ) per endpoint. This project use golang with [gorilla](https://github.com/gorilla/mux) for route HTTP endpoint. Go to `http://[ip]:[port]/swagger/` for detail documentation API## Requirements
- [Go](https://golang.org/) 1.18 or higher
- [Docker](https://www.docker.com/) 20.10.17 or higher
- [Docker Compose](https://docs.docker.com/compose/) 1.29.
- [Make](https://www.gnu.org/software/make/) 4.3 or higher
- [Prometheus](https://prometheus.io/) latest version
- [Grafana](https://grafana.com/) latest version
- [Jaeger](https://www.jaegertracing.io/) latest version
- [OpenTelemetry](https://opentelemetry.io/) latest version## Library
- [Mux](https://github.com/gorilla/mux)
- [Prometheus Client Go](https://github.com/prometheus/client_golang)
- [OpenTelemetry Client Go](https://github.com/open-telemetry/opentelemetry-go)
- [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector)## Installation
first, clone this repository
```bash
$ git clone https://github.com/rulanugrh/cressida.git
```after that you can running `make install_depedency_[YOUR-OS]`
```bash
$ make install_depedency_mac# linux
$ make install_depedency_linux
```
and then, you can run this command
```bash
$ make up
```## Load Test
#### Vehicle
```bash
# for load test vehicle by id
$ make load_test_get_vehicle_by_id# for load test get all vehicle
$ make load_test_get_all_vehicle# for load test post vehicle
$ make load_test_post_vehicle
```#### Transporter
```bash
# for load test transporter by id
$ make load_test_get_transporter_by_id# for load test get all transporter
$ make load_test_get_all_transporter# for load test post transporter
$ make load_test_post_transporter
```#### User
```bash
# for load test user register
$ make load_test_user_register
```