{"id":37175868,"url":"https://github.com/hsdp/cfprom","last_synced_at":"2026-01-14T20:31:44.815Z","repository":{"id":64307900,"uuid":"130656908","full_name":"hsdp/cfprom","owner":"hsdp","description":"Prometheus metrics for CPU/Memory usage of apps deployed in a Cloud foundry space","archived":true,"fork":false,"pushed_at":"2020-01-21T05:38:42.000Z","size":437,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-18T12:11:27.987Z","etag":null,"topics":["cloudfoundry","prometheus-metrics"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/hsdp.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":"2018-04-23T07:28:08.000Z","updated_at":"2025-10-07T08:49:14.000Z","dependencies_parsed_at":"2023-01-15T11:00:49.118Z","dependency_job_id":null,"html_url":"https://github.com/hsdp/cfprom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hsdp/cfprom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsdp%2Fcfprom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsdp%2Fcfprom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsdp%2Fcfprom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsdp%2Fcfprom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsdp","download_url":"https://codeload.github.com/hsdp/cfprom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsdp%2Fcfprom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cloudfoundry","prometheus-metrics"],"created_at":"2026-01-14T20:31:44.119Z","updated_at":"2026-01-14T20:31:44.806Z","avatar_url":"https://github.com/hsdp.png","language":"Go","readme":"# cfprom\n\nPrometheus metrics for CPU/Memory usage of apps deployed in a Cloud foundry space\n\n# Building\n\n## Requirements\n\n- [Go 1.11 or newer](https://golang.org/doc/install)\n\n## Compiling\n\nClone the repo somewhere (preferably outside your GOPATH):\n\n```\n$ git clone git@github.com:hsdp/cfprom\n$ cd cfprom\n$ go build .\n```\n\nThis produce a logproxy binary exectable read for use\n\n# Docker\n\nAlternatively, you can use the included Dockerfile to build a docker image which can be deployed to CF directly.\n\n```\n$ git clone git@github.com:hsdp/cfprom\n$ cd cfprom\n$ docker build -t cfprom .\n```\n\n## Usage\n\nDeploy cfprom to any CF space and it will create a Prometheus `/metrics` endpoint which can be scraped. It uses the CF API to fetch statistics on all running applications. Currently it requires credentials of a CF account with the `Auditor` role or better. \n\n## Configuration\n\nThe following environment variables are used  \n\n| Variable |  Required | Description |\n|----------|-----------|-------------|\n| CF\\_USERNAME | N     | The CF login to use |\n| CF\\_PASSWORD | N     | The CF password to use |\n| PASSWORD | N | The cfprom password |\n\n## Authentication\nWhen the `PASSWORD` environment is set both the `/metrics` and `/bootstrap` endpoint will be protected by Basic Authentication. The username is always `cfprom`\n\n## Bootstrapping\nIf you do not wish to add `CF_USERNAME` and `CF_PASSWORD` to the environment you can bootstrap cfprom by posting the username and password to the `/bootstrap` endpoint:\n\n```\ncurl -X POST https://cfprom.\u003cyour_cf_domain\u003e/bootstrap -d '{\"username\":\"admin\",\"password\":\"SuperS3cret\"}'\n```\n\nOnly after sending the correct credentials will cfprom be able to start collecting metrics. Note that this a tradeoff between security and convenience. You will have to bootstrap again if cfprom gets restarted or restaged for whatever reason.\n\n## License\n\nApache. Also see the NOTICE file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsdp%2Fcfprom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsdp%2Fcfprom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsdp%2Fcfprom/lists"}