{"id":20225276,"url":"https://github.com/lubrum/alura-prometheus-grafana-java","last_synced_at":"2026-04-07T07:44:07.825Z","repository":{"id":119173595,"uuid":"609669496","full_name":"Lubrum/alura-prometheus-grafana-java","owner":"Lubrum","description":"Observabilidade: coletando métricas de uma aplicação com Prometheus","archived":false,"fork":false,"pushed_at":"2023-08-30T02:54:48.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:25:20.116Z","etag":null,"topics":["docker","docker-compose","grafana","java","maven","mysql","prometheus","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lubrum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-03-04T21:49:39.000Z","updated_at":"2023-05-28T12:51:07.000Z","dependencies_parsed_at":"2024-11-14T12:52:09.867Z","dependency_job_id":null,"html_url":"https://github.com/Lubrum/alura-prometheus-grafana-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lubrum/alura-prometheus-grafana-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lubrum%2Falura-prometheus-grafana-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lubrum%2Falura-prometheus-grafana-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lubrum%2Falura-prometheus-grafana-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lubrum%2Falura-prometheus-grafana-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lubrum","download_url":"https://codeload.github.com/Lubrum/alura-prometheus-grafana-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lubrum%2Falura-prometheus-grafana-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-compose","grafana","java","maven","mysql","prometheus","spring-boot"],"created_at":"2024-11-14T07:12:03.122Z","updated_at":"2026-04-07T07:44:07.805Z","avatar_url":"https://github.com/Lubrum.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alura - Formação/escola DevOps - Trilha DevOps\n\n# 4.1 Observabilidade: coletando métricas de uma aplicação com Prometheus\n\n# 4.2 Monitoramento: Prometheus, Grafana e Alertmanager\n\nA ideia deste projeto foi a de praticar os conceitos de observabilidade e monitoramento de aplicações com o Prometheus, Alertmanager e o Grafana. \n\nTemos uma aplicação de exemplo Spring Boot, com MySQL, para exercitar esses conceitos.\n\nPara gerar as métricas para serem visualizadas foi criado um contâiner com um cliente fictício fazendo requisições na aplicação Spring, incluindo requisições bem sucedidas e de erro. \nEsse cliente está no diretório /client.\n\n\n## Pré-requisitos para execução do projeto: \n\n- docker;\n- docker compose;\n\n## Para execução do projeto e subir os contâiners:\n\n```bash\ndocker compose up -d\n```\n\nURLs:\n- endpoints da aplicação: http://localhost/\n- endpoint do prometheus: http://localhost:9090\n- endpoint do alertmanager: http://localhost:9093\n- endpoint do grafana: http://localhost:3000\n\n### Para visualizar as métricas no Grafana:\n\nAcesse http://localhost:3000. Você deve ver a interface do Grafana.\n\nFaça login com as credenciais padrão: nome de usuário \"admin\" e senha \"admin\".\n\nDepois de fazer login, clique em \"Add data source\" na página inicial do Grafana.\n\nSelecione \"Prometheus\" como o tipo de fonte de dados e configure o endereço do servidor Prometheus como \"http://prometheus:9090\".\n\nClique em \"Save \u0026 Test\".\n\nAgora, você pode criar um novo painel no Grafana com os indicadores desejados.\n\n## Para verificar o estado dos contâiners:\n\n```bash\ndocker compose ps\n# ou\ndocker ps\n```\n\n## Para parar os contâiners:\n\n```bash\ndocker compose down\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flubrum%2Falura-prometheus-grafana-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flubrum%2Falura-prometheus-grafana-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flubrum%2Falura-prometheus-grafana-java/lists"}