{"id":18553285,"url":"https://github.com/namshi/stackdriver-pushgateway","last_synced_at":"2025-04-09T23:30:39.581Z","repository":{"id":33828655,"uuid":"138465011","full_name":"namshi/stackdriver-pushgateway","owner":"namshi","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-08T11:22:44.000Z","size":52,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-24T13:21:21.744Z","etag":null,"topics":["monitoring","nodejs","stackdriver","stackdriver-monitoring"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/namshi.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":"2018-06-24T08:14:38.000Z","updated_at":"2025-01-23T00:49:26.000Z","dependencies_parsed_at":"2022-07-15T20:00:36.835Z","dependency_job_id":null,"html_url":"https://github.com/namshi/stackdriver-pushgateway","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fstackdriver-pushgateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fstackdriver-pushgateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fstackdriver-pushgateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/namshi%2Fstackdriver-pushgateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/namshi","download_url":"https://codeload.github.com/namshi/stackdriver-pushgateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129509,"owners_count":21052584,"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":["monitoring","nodejs","stackdriver","stackdriver-monitoring"],"created_at":"2024-11-06T21:16:38.284Z","updated_at":"2025-04-09T23:30:39.261Z","avatar_url":"https://github.com/namshi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stackdriver-pushgateway\n\nThe Stackdriver Pushgateway exists to allow jobs to expose their metrics to Stackdriver.\nIt is compatible with the [prometheus gateway](https://github.com/prometheus/pushgateway#command-line):\n\n```\necho \"some_metric 3.14\" | curl --data-binary @- http://stackgateway.domain.com/metrics/label1/value1/label2/value2\n```\n\n\u003e only pushing metrics is really compatible to prometheus (not deleting etc)\n\n# healthcheckio-integration\n\nWe faced some issues triggerring alerts when stackdriver time series metrics is absent for morethan 24 hours and added support for healthchecks.io api.\nCurrently we are adding healthchecks.io only for last_run metrics when interval is daily, which can be extended later if needed\n\nyou can customize alerting thresholds for a particular job by adding an entry in the config.js file under node `healthcheckio.alertConfig.thresholds` (replaces \u003cjob_name\u003e with name of the job in the push url)\n```\n\"\u003cjob_name\u003e\": {\n    \"timeOut\": 300, // 5 minutes - minimum 60 (one minute), maximum: 2592000 (30 days).\n    \"grace\": 60 // 1 minutes - Minimum: 60 (one minute), maximum: 2592000 (30 days)\n}\n```\n\n## Installation\n\nWe provide a bare Dockerfile to run the pushgateway, but it essentially simply does\nand `npm install` and run the `index.js`, so feel free to run this however you prefer :)\n\nThe environment variables needed by the pushgateway are:\n\n* `PROJECT_ID`: name of the GCP project you want to send metrics to\n* `HTTP_PORT`: port the server is going to listen on (default is `8080`)\n* `GOOGLE_APPLICATION_CREDENTIALS`: path to your Google application credentials (default `/credentials/credentials.json`)\n\n...start the app and have fun monitoring on StackDriver!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamshi%2Fstackdriver-pushgateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamshi%2Fstackdriver-pushgateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamshi%2Fstackdriver-pushgateway/lists"}