{"id":17086970,"url":"https://github.com/ncabatoff/script-exporter","last_synced_at":"2025-03-22T18:32:47.601Z","repository":{"id":57588009,"uuid":"91755273","full_name":"ncabatoff/script-exporter","owner":"ncabatoff","description":"Prometheus exporter to invoke scripts and parse their output as metrics.","archived":false,"fork":false,"pushed_at":"2019-07-27T16:22:21.000Z","size":414,"stargazers_count":37,"open_issues_count":8,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T13:51:21.723Z","etag":null,"topics":["prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncabatoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-19T02:05:00.000Z","updated_at":"2024-06-19T03:20:28.000Z","dependencies_parsed_at":"2022-09-26T19:42:42.187Z","dependency_job_id":null,"html_url":"https://github.com/ncabatoff/script-exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncabatoff%2Fscript-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncabatoff%2Fscript-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncabatoff%2Fscript-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncabatoff%2Fscript-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncabatoff","download_url":"https://codeload.github.com/ncabatoff/script-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245003094,"owners_count":20545555,"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":["prometheus-exporter"],"created_at":"2024-10-14T13:29:55.664Z","updated_at":"2025-03-22T18:32:46.972Z","avatar_url":"https://github.com/ncabatoff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# script-exporter\nPrometheus exporter to invoke scripts and parse their output as metrics.\n\n[![Release](https://img.shields.io/github/release/ncabatoff/script-exporter.svg?style=flat-square\")](https://github.com/ncabatoff/script-exporter/releases/latest)\n[![Build Status](https://travis-ci.org/ncabatoff/script-exporter.svg?branch=master)](https://travis-ci.org/ncabatoff/script-exporter)\n[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?branch=master)](https://github.com/goreleaser)\n\n## Usage\n\n```\nscript-exporter -script.path /path/to/my/scripts -web.listen-address :9661\n```\n\nCreate e.g. `/path/to/my/scripts/script1`, an executable which emits on stdout metrics in the [Prometheus text exposision format](https://prometheus.io/docs/instrumenting/exposition_formats/).\n\nThen configure your prometheus.yml to add a target like\n\n```\n  - job_name: 'script1'\n    metrics_path: /metrics/script1\n    static_configs:\n      - targets: ['localhost:9661']\n```\n\nIf you add another script, you'll need another job, because the metrics path will be different.\n\nYou also want to add a job for the script_exporter internal metrics (errors, process stats, etc) as the above job will only yield metrics emitted by script1 itself:\n\n```\n  - job_name: 'script-exporter'\n    metrics_path: /metrics\n    static_configs:\n      - targets: ['localhost:9661']\n```\n\n## Docker\nBuild the image running: `docker build .`  Or just run\n\n```\ndocker pull ncabatoff/script-exporter\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncabatoff%2Fscript-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncabatoff%2Fscript-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncabatoff%2Fscript-exporter/lists"}