{"id":18737412,"url":"https://github.com/mikesafonov/spring-boot-starter-prometheus-alerts","last_synced_at":"2025-06-15T02:37:48.059Z","repository":{"id":38777958,"uuid":"204157753","full_name":"MikeSafonov/spring-boot-starter-prometheus-alerts","owner":"MikeSafonov","description":"Spring Boot Starter for handling alerts from Prometheus Alertmanager","archived":false,"fork":false,"pushed_at":"2023-03-06T15:01:43.000Z","size":93,"stargazers_count":10,"open_issues_count":5,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T19:46:55.885Z","etag":null,"topics":["java","prometheus","prometheus-alertmanager","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MikeSafonov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-24T13:01:12.000Z","updated_at":"2024-02-08T03:52:28.000Z","dependencies_parsed_at":"2023-02-12T02:30:24.436Z","dependency_job_id":"99cb767e-5310-49ba-9fc8-77cadae28656","html_url":"https://github.com/MikeSafonov/spring-boot-starter-prometheus-alerts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MikeSafonov/spring-boot-starter-prometheus-alerts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeSafonov%2Fspring-boot-starter-prometheus-alerts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeSafonov%2Fspring-boot-starter-prometheus-alerts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeSafonov%2Fspring-boot-starter-prometheus-alerts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeSafonov%2Fspring-boot-starter-prometheus-alerts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MikeSafonov","download_url":"https://codeload.github.com/MikeSafonov/spring-boot-starter-prometheus-alerts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeSafonov%2Fspring-boot-starter-prometheus-alerts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259913601,"owners_count":22931242,"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":["java","prometheus","prometheus-alertmanager","spring-boot"],"created_at":"2024-11-07T15:25:03.482Z","updated_at":"2025-06-15T02:37:48.010Z","avatar_url":"https://github.com/MikeSafonov.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-boot-starter-prometheus-alerts\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.mikesafonov/spring-boot-starter-prometheus-alerts.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.mikesafonov%22%20AND%20a:%22spring-boot-starter-prometheus-alerts%22)\n[![codecov](https://codecov.io/gh/MikeSafonov/spring-boot-starter-prometheus-alerts/branch/master/graph/badge.svg)](https://codecov.io/gh/MikeSafonov/spring-boot-starter-prometheus-alerts)\n[![Travis-CI](https://travis-ci.com/MikeSafonov/spring-boot-starter-prometheus-alerts.svg?branch=master)](https://travis-ci.com/MikeSafonov/spring-boot-starter-prometheus-alerts)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=MikeSafonov_spring-boot-starter-prometheus-alerts\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=MikeSafonov_spring-boot-starter-prometheus-alerts)\n\nThis is a starter for spring boot application witch catch alerts from [Prometheus Alertmanager](https://prometheus.io/docs/alerting/alertmanager/).\n\nThe starter is available at `https://repo1.maven.org/maven2/` repository.\n\nUsing gradle: \n    \n    repositories {\n        maven {url \"https://repo1.maven.org/maven2/\"}\n    }\n    dependencies {\n        implementation 'com.github.mikesafonov:spring-boot-starter-prometheus-alerts:1.0.0'\n    }\n\nThe only thing you need to do after adding the dependency is to create a bean with implementation of `NotificationService` interface:\n\n    @Serivce\n    public class MyNotificationService implementation NotificationService {\n    ...\n    } \n\n## Configuration\n\nThe following properties can be configured:\n\n| property | description |\n| -------- | ----------- |\n| prometheus.alertmanager.endpoint.base | base url for POST request mapping for prometheus alert (default `/alert`) |\n    \n## Build\n\n### Build from source\n\nYou can build application using following command:\n\n    ./gradlew clean build -x signArchives\n    \n#### Requirements:\n\nJDK \u003e= 1.8\n\n### Unit tests\n\nYou can run unit tests using following command:\n\n    ./gradlew test\n\n### Alertmanager configuration\n\n```\nroute:\n  receiver: 'my-application'\nreceivers:\n- name: 'my-application'\n  webhook_configs:\n    - url: http://\u003capplication-host\u003e:\u003capplication-port\u003e/alert\n```\n\n## Usage example\n\n- [prometheus-telegram-alert](https://github.com/MikeSafonov/prometheus-telegram-alert)\n\n## Contributing\n\nFeel free to contribute. \nNew feature proposals and bug fixes should be submitted as GitHub pull requests. \nFork the repository on GitHub, prepare your change on your forked copy, and submit a pull request.\n\n**IMPORTANT!**\n\u003eBefore contributing please read about [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) / [Conventional Commits RU](https://www.conventionalcommits.org/ru/v1.0.0-beta.2/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikesafonov%2Fspring-boot-starter-prometheus-alerts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikesafonov%2Fspring-boot-starter-prometheus-alerts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikesafonov%2Fspring-boot-starter-prometheus-alerts/lists"}