{"id":13587208,"url":"https://github.com/lhns/prometheus-bash-exporter","last_synced_at":"2025-03-18T17:31:19.613Z","repository":{"id":39802672,"uuid":"315110172","full_name":"lhns/prometheus-bash-exporter","owner":"lhns","description":"Prometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout","archived":false,"fork":false,"pushed_at":"2024-05-17T01:15:12.000Z","size":280,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-17T23:29:13.117Z","etag":null,"topics":["bash","exporter","prometheus","prometheus-exporter","script"],"latest_commit_sha":null,"homepage":"https://github.com/users/lhns/packages/container/package/prometheus-bash-exporter","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lhns.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-22T18:56:29.000Z","updated_at":"2024-06-04T01:44:43.286Z","dependencies_parsed_at":"2023-11-29T23:25:52.487Z","dependency_job_id":"db337c0c-a8dc-4f04-9eee-5b65d9f1a461","html_url":"https://github.com/lhns/prometheus-bash-exporter","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fprometheus-bash-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fprometheus-bash-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fprometheus-bash-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fprometheus-bash-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhns","download_url":"https://codeload.github.com/lhns/prometheus-bash-exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243941079,"owners_count":20372180,"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":["bash","exporter","prometheus","prometheus-exporter","script"],"created_at":"2024-08-01T15:06:06.100Z","updated_at":"2025-03-18T17:31:19.347Z","avatar_url":"https://github.com/lhns.png","language":"Scala","funding_links":[],"categories":["Scala"],"sub_categories":[],"readme":"# prometheus-bash-exporter\n\n[![Docker Workflow](https://github.com/lhns/prometheus-bash-exporter/workflows/build/badge.svg)](https://github.com/lhns/prometheus-bash-exporter/actions?query=workflow%3Abuild)\n[![Release Notes](https://img.shields.io/github/release/lhns/prometheus-bash-exporter.svg?maxAge=3600)](https://github.com/lhns/prometheus-bash-exporter/releases/latest)\n[![Apache License 2.0](https://img.shields.io/github/license/lhns/prometheus-bash-exporter.svg?maxAge=3600)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)\n\nPrometheus metric exporter that executes a bash script on every scrape and returns the metrics from stdout.\n`$@` in the executed script will always contain the request path segments.\n\n## Environment variables\n- **LOG_LEVEL**: log level (default: ERROR)\n- **SERVER_HOST**: listen host (default: 0.0.0.0)\n- **SERVER_PORT**: listen port (default: 8080)\n- **SCRIPT_METRICS**: script that is executed on `GET /metrics`\n- **SCRIPT_TEST**: script that is executed on `GET /test`\n- **CACHE_TEST**: cache the output of `GET /test` for 10 seconds\n\n## Scripts\n\nHead over to the [wiki](https://github.com/lhns/prometheus-bash-exporter/wiki) to see our collection of scripts.\n\n## Docker builds\nhttps://github.com/users/lhns/packages/container/package/prometheus-bash-exporter\n\n## License\nThis project uses the Apache 2.0 License. See the file called LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhns%2Fprometheus-bash-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhns%2Fprometheus-bash-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhns%2Fprometheus-bash-exporter/lists"}