{"id":21629734,"url":"https://github.com/harryr/newrelicmonitor","last_synced_at":"2025-03-18T21:22:47.355Z","repository":{"id":4085425,"uuid":"5191706","full_name":"HarryR/NewRelicMonitor","owner":"HarryR","description":"Monitors NewRelic for custom Warning and Critical conditions","archived":false,"fork":false,"pushed_at":"2012-07-26T12:38:10.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-24T23:27:29.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/HarryR.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}},"created_at":"2012-07-26T12:11:26.000Z","updated_at":"2014-04-19T13:22:58.000Z","dependencies_parsed_at":"2022-09-04T12:51:23.331Z","dependency_job_id":null,"html_url":"https://github.com/HarryR/NewRelicMonitor","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/HarryR%2FNewRelicMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryR%2FNewRelicMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryR%2FNewRelicMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarryR%2FNewRelicMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarryR","download_url":"https://codeload.github.com/HarryR/NewRelicMonitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244306708,"owners_count":20431877,"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-25T02:08:36.504Z","updated_at":"2025-03-18T21:22:47.324Z","avatar_url":"https://github.com/HarryR.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"The NewRelic Monitor extends the capability of NewRelic alerts, allowing for custom \nalerts to be triggered for any trackable metric. Notifications are only sent when\nthere are one or more critical alerts.\n\nYou can find out which metrics can be tracked and the values you will want to configure\nalerts for by creating a Custom View. Most graphs allow for warning and critical thresholds \nto be configured, and we highly recommend that you keep a Custom View maintained with \nthe same set of graphs (or more) as are configured in `alerts.ini`.\n\nMore information: https://newrelic.com/docs/docs/custom-view-specification\n\nDeployment\n----------\n\n * Customise `alerts.example.ini` and save as `alerts.ini`\n * Setup `alerts.php` to be called via a cron-job or via Pingdom.\n * We recommend every 5-10 minutes.\n * When there are no alerts the script will output 'OK'.\n\n\nConfiguration File\n------------------\nThe script looks for an ini file called `alerts.ini` which contains the alert conditions, NewRelic API settings and notification methods.\n\n\n**Alerts:**\n\nAlerts specify two thresholds and a time period that the value must be above the threshold to trigger an alert.\n\n```\n[alert:Name Of Alert]\napp=1234                    ; NewRelic Application ID\nmetric=WebTransaction\nfield=requests_per_minute   \nwarn=5000                   ; Put into 'warning' mode when the value is above this\ncritical=10000              ; Critical state when value is above this\ntime=300                    ; Number of seconds that the value has to be above the threshold\n```\n\n\n\n**NewRelic Configuration:**\n\n```\n[newrelic]\naccount_id=1234\napi_key=exampleapikey\n```\n\n\n**E-Mail Notifications:**\n\nThis will send an e-mail containing all the currently active alerts.\n```\n[notify:email]\nfrom_email=alerts@example.com\nfrom_name=NewRelic Alert Monitor\nto_email=pagerduty@example.com\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryr%2Fnewrelicmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharryr%2Fnewrelicmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryr%2Fnewrelicmonitor/lists"}