{"id":28243963,"url":"https://github.com/ololx/spring-boot-metrics-instances","last_synced_at":"2025-06-25T03:34:56.138Z","repository":{"id":48502414,"uuid":"382532061","full_name":"ololx/spring-boot-metrics-instances","owner":"ololx","description":"This project presents instances of how to collect and display statistics on the use of micro-services and their logs, as well as distributed request tracing.","archived":false,"fork":false,"pushed_at":"2021-08-23T17:13:15.000Z","size":259,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T03:35:17.159Z","etag":null,"topics":["example-project","grafana-example","grafana-sample","loki-example","loki-sample","prometheus-example","prometheus-sample","promtail-example","promtail-sample","sample-project","spring-boot-example","spring-boot-metrics-example","spring-boot-metrics-sample","spring-boot-sample"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ololx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-03T05:19:55.000Z","updated_at":"2022-07-22T14:38:26.000Z","dependencies_parsed_at":"2022-08-31T08:20:11.057Z","dependency_job_id":null,"html_url":"https://github.com/ololx/spring-boot-metrics-instances","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ololx/spring-boot-metrics-instances","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ololx%2Fspring-boot-metrics-instances","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ololx%2Fspring-boot-metrics-instances/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ololx%2Fspring-boot-metrics-instances/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ololx%2Fspring-boot-metrics-instances/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ololx","download_url":"https://codeload.github.com/ololx/spring-boot-metrics-instances/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ololx%2Fspring-boot-metrics-instances/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261799412,"owners_count":23211383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example-project","grafana-example","grafana-sample","loki-example","loki-sample","prometheus-example","prometheus-sample","promtail-example","promtail-sample","sample-project","spring-boot-example","spring-boot-metrics-example","spring-boot-metrics-sample","spring-boot-sample"],"created_at":"2025-05-19T07:08:13.365Z","updated_at":"2025-06-25T03:34:56.130Z","avatar_url":"https://github.com/ololx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-boot-metrics-instances\n\nThis project presents instances of how to collect and display statistics on the use of micro-services and their logs, as well as distributed request tracing.\n\n[![status](https://img.shields.io/badge/status-active-active?style=flat-square)](BADGES_GUIDE.md#status) [![last commit](https://img.shields.io/badge/last_commit-August_23,_2021-informational?style=flat-square)](BADGES_GUIDE.md#commit-date)\n\n[![license](https://img.shields.io/badge/license-UNLICENCE-informational?style=flat-square)](LICENSE)\n\n---\n\n[![Java](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge\u0026logo=java\u0026logoColor=white)](#built-with) [![Spring Boot](https://img.shields.io/badge/Spring_Boot-6DB33F?style=for-the-badge\u0026logo=spring-boot\u0026logoColor=white)](#built-with) [![Swagger](https://img.shields.io/badge/Swagger-2C3239?style=for-the-badge\u0026logo=swagger\u0026labelColor=2C3239)](#built-with)\n\n[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)](#built-with)\n\n[![RabbitMQ](https://img.shields.io/badge/rabbitmq-%23FF6600.svg?\u0026style=for-the-badge\u0026logo=rabbitmq\u0026logoColor=white)](#built-with)\n\n[![Grafana](https://img.shields.io/badge/Grafana-F2F4F9?style=for-the-badge\u0026logo=grafana\u0026logoColor=orange\u0026labelColor=F2F4F9)](#built-with) [![Prometheus](https://img.shields.io/badge/Prometheus-000000?style=for-the-badge\u0026logo=prometheus\u0026labelColor=000000)](#built-with) [![Loki](https://img.shields.io/badge/grafana_loki-F2F4F9?style=for-the-badge\u0026labelColor=2C3239\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpMwidZAAAFFUlEQVRIDc2WzWtcZRTGn/s9M0knySRtPhsXgVJa0UYKal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E1UqOy42qi6CgzFlH0U0MTt4pI1avXCU235PHj1z0DvvlwnmHTtzoheerqt+XMt/fh7lJmqjlSVbVc1lKlhqirDo4q7d1skCGgH8IC6P1hHGNpmTK89OdvTWy/W9dUPOV1eCrNmb8LWx6GL1yPaxVGNWi6tBvpkgVpyr8sZ6XE/z3k5xPibGo81Ohxr8mRPXywO6LNKQSEKPAZodr9eDvTl1ZxuLIcEdvTRwgBZ7kn27a+h2kyBPIZodgI9MdXTLJ8xhkGJo8vMEsLI+rQJO6qg0hCzd5/kY4A+Zri54mvhl2jvZerjeI6ev9ikPo7Wtzy9/2ZNt9d8Xb0Z6dnzbZXGYtWRdBvWyxuOtqndfdxu9bPvG7eDA1kfA7RMrCXeebWuWRz4GyzPzHb13HxLy8u+bi4HulUJtLzuZVb/dLGQ9VrlvqdNALYAqALegFqXHo4xkanmEdOWAe6TzX5nvWKF3qLw/paPcVJ9dy2k+QcwSqi1TVcffFwksJvN3s8BTGzGUkNzuQXn6N67pgdtah1ezvmLl64c3nhwffFsJ5PwjzuBdjiJLaD9aWGZdulD+yvOXPy/X38Dy2M5JJe3rzYAAAAASUVORK5CYII=)](#built-with)  [![Jaeger](https://img.shields.io/badge/Jaeger-F2F4F9?style=for-the-badge\u0026labelColor=F2F4F9\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sb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FCmAxuf8gIuFDBn0jTqE7UrYoQHNExWqc59FeqVeUFkaMgoXf3j6aBT7tY3bOEYGLkISQXE1yKLBpgYHvIlIU38ta5o4Ubh2bH5/qyJLf6YhEucdYmaPGsBLQDjQzB2fEyvQhIt6tA1FJsigxCfnhL3RveFmvUMsPvkbh0bH+TQbscVFfZwg97DH9YsVTrNfX7prsDhKNCIQng+12qKKvsuF/zp10XydhImxZrLGSS0BqkNxhoNlUbLRTYrEpzBloWdXMYpVfKD0WScz4AmiVUpfd3DYE+VFT9Bn2nd/BQYHsolwTY+edZMbWSEpxc3gBwCxWDGRNMoBH2QdVgfLvGwJYZJ04E5naYpUGCNtd64F5dW5O6+fuz01VQ6+XrOsu9vZ4tYDhmzHSbKcb1NHx0xCegr59XMje/j9MWztVAS7TA9x3H0Cw1xhGg6hDDBguCnG5mThMiywJqe7vcjjbhpNSgCLxxd82byiQXHYe7C0jmO801t/XQ+DEjHKVBor38vWwNdakHF+gY2MZ3Ky+18ef1b2ukfbYn23byWq4ZkVfEOSZ2XLrGvtogrbPq+h/KkY1NT/N69G6gX/6By+87ox8vK5+QWlGZS7dSckd4V6SL6JCcxnmTGx3wxucNOnzl2f7Ibyk4vbuo+A2GRZ2OYmBCBzL649p+6nnribFMmrboXEc/HUW5KXb16m+v4ySdV/8TrBPAIjWQSaOoKGt7fdt3qqHpgLtLWQ13EEEbOzs4WQVGW0hOtpC1VRkcD5tEf6Sfa1lAo1G91OlUas1BGaup8+vo/gzTtJi0dPwqFOlEgMN7t9bqp1YhnKAJl2p8wYHl5Oe/s6ZmrIfQYIohVlY421rVuR89n/7SWFdf/RX8HamKwc2H8JvoAAAAASUVORK5CYII=)](#built-with) [![Promtail](https://img.shields.io/badge/Promtail-F2F4F9?style=for-the-badge\u0026labelColor=F2F4F9)](#built-with)\n\n[![Docker](https://img.shields.io/badge/Docker-2CA5E0?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](#built-with)\n\n## 📇 Table of Contents\n\n- [About](#about)\n- [Features](#feature)\n- [Getting Started](#getting-started)\n- [Built With](#built-with)\n- [Authors](#authors)\n- [Licensing](#licensing)\n\n##  📖 About\n\nThis is a collection of small and focused instances, each of which covers a single and defined approach to Java application development and an required technologies implementation. This project presents instances of how to collect and display statistics on the use of micro-services and their logs, as well as distributed request tracing. A strong focus of these instances is the different cases of the `micro-services distributed tracing`, `micro-services logs collecting` and `analytics and interactive visualization web application`  realizations.\n\n## 🎚 Features\n\nThe project with instances of:\n\n- the `micro-services distributed tracing` technology implementation via `Jaeger`\n- the `micro-services logs collecting` technology implementation via `loki` \u0026 `promtail`\n- the `analytics and interactive visualization web application` technology implementation via `Graphana` \u0026 `Prometheus`\n\n### Changelog\n\n- For more information on a releases, a features and a changes, please read the [changelog](CHANGELOG.md) notes.\n\n## 🚦 Getting Started\n\nThese instructions allow to get a copy of this project and run it on a local machine.\n\n### Prerequisites\n\nBefore using it, make sure that follows software are installed on the local machine:\n\n- **Docker Compose** - tool for defining and running multi-container `Docker` applications.\n\nIf any of the listed software is not installed, then it can be installed by instruction as described below.\n\n#### Docker Compose\n\n   - Install Docker Compose according to instructions from an [official](https://docs.docker.com/compose/install/) source.\n\n### Installing\n\nIn order to install it is quite simple to clone or download this repository.\n\n### Cloning\n\nFor the cloning this repository to a local machine, just use the follows link:\n\n```http\nhttps://github.com/ololx/spring-boot-metrics-instances\n```\n\n### Using\n\nTo run and try out each instance is required to: \n1. Launch containers with services\n\nTo do the launching some incstance, go to the instance directory and execute the following command:\n\n```bash\ndocker-compose up --build\n```\n\n2. Open sevices GUI\n\nWhen all services will start, you could open your browser and go to the services endpoints:\n\n- Graphana endpont (user `admin`, password `admin`):\n```http\nhttp://localhost:3000/\n```\n\n- Jaeger endpont:\n```http\nhttp://localhost:16686/\n```\n\n- Prometheus endpont:\n```http\nhttp://localhost:9090/\n```\n\n- PostgreSQL Exporter endpont:\n```http\nhttp://localhost:9187/\n```\n\n- Some Api Client endpoint (with specs):\n```http\nhttp://localhost:8082/swagger-ui.html\n```\n\n- Some Api endpoint (with specs):\n```http\nhttp://localhost:8081/swagger-ui.html\n```\n\n3. [OPTIONAL] Send requests to instance service. Because the `some-api-executing` ervice will do the requests to `some-api-client` automatically every  30 seconds.\n\n### Launching\n\nTo do the launching some incstance, go to the instance directory and execute the following command:\n\n```bash\ndocker-compose up --build\n```\n\n## 🛠 Built With\n\n- **JDK** - the  java development kit;\n- **Maven** - the dependency management;\n- **PostgreSQL 10.6** - the database management system;\n- **Swagger** - documentation and form generator;\n- **Docker Compose** - tool for defining and running multi-container `Docker` applications.\n\n## ©️ Authors\n\n* **Alexander A. Kropotin** - *Initial work* - [ololx](https://github.com/ololx).\n\n## 🔏 Licensing\n\nThis project is unlicensed - see the [lisence](LICENSE) document for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fololx%2Fspring-boot-metrics-instances","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fololx%2Fspring-boot-metrics-instances","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fololx%2Fspring-boot-metrics-instances/lists"}