{"id":21427966,"url":"https://github.com/redhat-developer-demos/ansible-eda-alertmanager","last_synced_at":"2025-10-19T18:16:29.519Z","repository":{"id":178685666,"uuid":"662220620","full_name":"redhat-developer-demos/ansible-eda-alertmanager","owner":"redhat-developer-demos","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-10T21:56:55.000Z","size":199,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T07:47:50.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/redhat-developer-demos.png","metadata":{"files":{"readme":"README.adoc","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-07-04T16:07:20.000Z","updated_at":"2024-10-07T11:40:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c68cf578-2ad0-450d-a57d-414d26658b8f","html_url":"https://github.com/redhat-developer-demos/ansible-eda-alertmanager","commit_stats":null,"previous_names":["lordofthejars/ansible-eda-alertmanager","redhat-developer-demos/ansible-eda-alertmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fansible-eda-alertmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fansible-eda-alertmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fansible-eda-alertmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fansible-eda-alertmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/ansible-eda-alertmanager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933854,"owners_count":20371076,"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":[],"created_at":"2024-11-22T22:09:10.606Z","updated_at":"2025-10-19T18:16:24.479Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Ansible AlertManager\n\nThis example runs Ansible EDA listening for AlertManager/Prometheus events and scaling a deployment automatically when getting out of memory.\n\n== Deploy\n\nTo run this demo, first you need the Prometheus Operator installed in the `default` namespace.\n\nIn the case of OpenShift, you can install it as any other operator (being in default namespace). \n\nIn the case of other Kubernetes implementations, follow https://prometheus-operator.dev/\n\nWith operator and up running, deploy all the pieces.\nGo to `kubernetes` folder and run:\n\nFirst the application that is monitored:\n\n[source, bash]\n----\nkubectl apply -f 1-quarkus-monitor-kubernetes.yml\n----\n\nSecond configure the application to be monitored:\n\n[source, bash]\n----\nkubectl apply -f 2-quarkus-monitor-servicemonitor.yaml\n----\n\nThen deploy the Ansible EDA:\n\n[source, bash]\n----\nkubectl apply -f 3-ansible-eda-debug-kubernetes.yaml\n----\n\nFinally, deploy AlertManager and Prometheus:\n\n[source, bash]\n----\nkubectl apply -f 4-alertmanager.yaml\nkubectl apply -f 5-prometheus.yaml\n----\n\n== Demo\n\nDeployments creates also an OpenShift Route to access the service outside the cluster.\n\nIf you are using another Kubernetes implementation, just adapt the YAMLs to access the service.\n\nBy default, there is an alarm configured but not triggered until an endpoint on `quarkus-monitor` app is called.\n\n[source, bash]\n----\ncurl http://quarkus-monitor-default.apps.openshift.sotogcp.com/hello/consume/50\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fansible-eda-alertmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fansible-eda-alertmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fansible-eda-alertmanager/lists"}