{"id":18090849,"url":"https://github.com/klml/paw2mail","last_synced_at":"2026-03-19T03:13:28.834Z","repository":{"id":139145834,"uuid":"471308841","full_name":"klml/paw2mail","owner":"klml","description":"paw2mail","archived":false,"fork":false,"pushed_at":"2022-05-16T11:45:48.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T08:40:54.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/klml.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":"2022-03-18T09:34:19.000Z","updated_at":"2022-03-22T11:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"3715bc21-1c2e-4ba0-bf32-9d75a1c9d73a","html_url":"https://github.com/klml/paw2mail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fpaw2mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fpaw2mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fpaw2mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fpaw2mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klml","download_url":"https://codeload.github.com/klml/paw2mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427048,"owners_count":20937197,"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-10-31T18:08:09.077Z","updated_at":"2026-03-19T03:13:28.799Z","avatar_url":"https://github.com/klml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus alertreceiver webhook2mail\n\n[Openshift alert receivers](https://docs.openshift.com/container-platform/4.9/monitoring/managing-alerts.html#configuring-alert-receivers_managing-alerts) can only be managed by cluster admins in the secret `alertmanager-main` in the namespace `openshift-monitoring`.  \n__paw2mail__ is a webservice that accepts alerts and sends them to an email address.\n\n## deprecated\n\nSo alert routing for user-defined is in Technology Preview.\n\n\u003e In OpenShift Container Platform 4.10, a cluster administrator can enable alert routing for user-defined projects.\n\nfrom [enabling-alert-routing-for-user-defined-projects](https://docs.openshift.com/container-platform/4.10/monitoring/enabling-alert-routing-for-user-defined-projects.html)\n\nSo paw2mail is not needed anymore.\n\n## config\n\nThe receiver email adress is defined in `label paw2mail`:\n\n```\napiVersion: monitoring.coreos.com/v1\nkind: PrometheusRule\nmetadata:\n  name: foo\nspec:\n  groups:\n    - name: bar\n      rules:\n        - alert: foobar_is_bigger_42\n          expr: 'example_count_total{item_type=\"/count\"} \u003e 42'\n          labels:\n            severity: Info\n            paw2mail: jon@example.net\n```\n\n## Setup\n\nNeeded environments\n\n```\nexport smtp_from=cluster@example.net\nexport smtp_host=mail.example.net\nexport smtp_port=25\n```\n\nOptional\n```\nexport smtp_user=clustermailer\nexport smtp_pass=xxxxxxxxxxxxx\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fpaw2mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklml%2Fpaw2mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fpaw2mail/lists"}