{"id":39005516,"url":"https://github.com/virtualtam/ccache_exporter","last_synced_at":"2026-01-17T17:16:40.761Z","repository":{"id":50702942,"uuid":"151873693","full_name":"virtualtam/ccache_exporter","owner":"virtualtam","description":"ccache exporter for Prometheus","archived":false,"fork":false,"pushed_at":"2025-03-25T21:45:57.000Z","size":446,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-30T06:45:17.204Z","etag":null,"topics":["ccache","grafana-dashboard","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","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/virtualtam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-10-06T19:17:58.000Z","updated_at":"2025-03-25T21:45:59.000Z","dependencies_parsed_at":"2024-06-19T04:12:22.975Z","dependency_job_id":"5eae0daa-dbb5-4cb4-9c15-c8c094591718","html_url":"https://github.com/virtualtam/ccache_exporter","commit_stats":{"total_commits":98,"total_committers":1,"mean_commits":98.0,"dds":0.0,"last_synced_commit":"ada3a31d6515c54ebfdcf67dcb26859677f2af35"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/virtualtam/ccache_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualtam%2Fccache_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualtam%2Fccache_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualtam%2Fccache_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualtam%2Fccache_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virtualtam","download_url":"https://codeload.github.com/virtualtam/ccache_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualtam%2Fccache_exporter/sbom","scorecard":{"id":923321,"data":{"date":"2025-08-11","repo":{"name":"github.com/virtualtam/ccache_exporter","commit":"4b4d622ea1df0625bd2a1bf6062e2b6742192228"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/docker.yaml:24","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yaml:13","Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Warn: no topLevel permission defined: .github/workflows/copywrite.yaml:1","Warn: no topLevel permission defined: .github/workflows/docker.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/vulncheck.yaml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/copywrite.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/copywrite.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/copywrite.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/copywrite.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yaml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/docker.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/vulncheck.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/virtualtam/ccache_exporter/vulncheck.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:5","Warn: containerImage not pinned by hash: Dockerfile:17: pin your Docker image by updating debian:bookworm-slim to debian:bookworm-slim@sha256:b1a741487078b369e78119849663d7f1a5341ef2768798f7b7406c4240f86aef","Warn: containerImage not pinned by hash: internal/generate-testdata/Dockerfile:7","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v4.1.0 not signed: https://api.github.com/repos/virtualtam/ccache_exporter/releases/208249572","Warn: release artifact v4.0.0 not signed: https://api.github.com/repos/virtualtam/ccache_exporter/releases/195473969","Warn: release artifact v3.1.0 not signed: https://api.github.com/repos/virtualtam/ccache_exporter/releases/142470244","Warn: release artifact v3.0.0 not signed: https://api.github.com/repos/virtualtam/ccache_exporter/releases/74246405","Warn: release artifact v3.0.0-alpha.2 not signed: https://api.github.com/repos/virtualtam/ccache_exporter/releases/74245418","Warn: release artifact v4.1.0 does not have provenance: https://api.github.com/repos/virtualtam/ccache_exporter/releases/208249572","Warn: release artifact v4.0.0 does not have provenance: https://api.github.com/repos/virtualtam/ccache_exporter/releases/195473969","Warn: release artifact v3.1.0 does not have provenance: https://api.github.com/repos/virtualtam/ccache_exporter/releases/142470244","Warn: release artifact v3.0.0 does not have provenance: https://api.github.com/repos/virtualtam/ccache_exporter/releases/74246405","Warn: release artifact v3.0.0-alpha.2 does not have provenance: https://api.github.com/repos/virtualtam/ccache_exporter/releases/74245418"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/docker.yaml:21"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-25T06:54:39.632Z","repository_id":50702942,"created_at":"2025-08-25T06:54:39.632Z","updated_at":"2025-08-25T06:54:39.632Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["ccache","grafana-dashboard","prometheus","prometheus-exporter"],"created_at":"2026-01-17T17:16:40.639Z","updated_at":"2026-01-17T17:16:40.732Z","avatar_url":"https://github.com/virtualtam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccache parser and Prometheus exporter\n\n\u003cimg src=\"https://github.com/virtualtam/ccache_exporter/actions/workflows/ci.yaml/badge.svg?branch=main\" alt=\"CI workflow status\"\u003e\n\u003cimg src=\"https://github.com/virtualtam/ccache_exporter/actions/workflows/docker.yaml/badge.svg?branch=main\" alt=\"Docker image workflow status\"\u003e\n\n\nA [Prometheus](https://prometheus.io/) exporter for the [ccache](https://ccache.dev/)\ncompiler cache statistics, and its companion Go parser.\n\n## Exposed Metrics\n### Internal\n| Metric                                  | Type    | Labels                                         |\n| --------------------------------------- | ------- | ---------------------------------------------- |\n| `ccache_collector_parsing_errors_total` | Counter | -                                              |\n| `ccache_exporter_version`               | Untyped | committed_at_seconds,is_dirty,revision,version |\n| `ccache_version`                        | Untyped | version                                        |\n\n### ccache\n\u003e [!TIP]\n\u003e For details about each metric, see the [Cache statistics](https://ccache.dev/manual/latest.html#_cache_statistics)\n\u003e section of the [ccache(1) manual](https://ccache.dev/manual/latest.html).\n\n\u003e [!WARNING]\n\u003e Depending on the version of the local `ccache` binary, some metrics may not be available.\n\u003e See the [ccache release notes](https://ccache.dev/releasenotes.html) for more information.\n\n\n| Metric                                    | Type    | Labels |\n| ----------------------------------------- | ------- | ------ |\n| `ccache_call_total`                       | Counter | -      |\n| `ccache_call_hit_total`                   | Counter | mode   |\n| `ccache_called_for_link_total`            | Counter | -      |\n| `ccache_called_for_preprocessing_total`   | Counter | -      |\n| `ccache_cleanups_performed_total`         | Counter | -      |\n| `ccache_compilation_failed_total`         | Counter | -      |\n| `ccache_no_input_file_total`              | Counter | -      |\n| `ccache_preprocessing_failed_total`       | Counter | -      |\n| `ccache_remote_storage_errors_total`      | Counter | -      |\n| `ccache_remote_storage_hit_total`         | Counter | -      |\n| `ccache_remote_storage_miss_total`        | Counter | -      |\n| `ccache_remote_storage_read_hit_total`    | Counter | -      |\n| `ccache_remote_storage_read_miss_total`   | Counter | -      |\n| `ccache_remote_storage_timeout_total`     | Counter | -      |\n| `ccache_remote_storage_write_total`       | Counter | -      |\n| `ccache_unsupported_code_directive_total` | Counter | -      |\n| `ccache_cache_hit_ratio`                  | Gauge   | -      |\n| `ccache_cache_size_bytes`                 | Gauge   | -      |\n| `ccache_cache_size_max_bytes`             | Gauge   | -      |\n| `ccache_cached_files`                     | Gauge   | -      |\n\n\n## Parser usage\n\nFor ccache 3.7 and above:\n\n```shell\n$ ccache --print-stats | ccacheparser | jq\n```\n\n```json\n{\n  \"stats_time\": \"2022-07-31T20:39:33Z\",\n  \"stats_zero_time\": \"2022-07-29T17:04:53Z\",\n  \"cache_hit_direct\": 192,\n  \"cache_hit_preprocessed\": 2,\n  \"cache_miss\": 535,\n  \"cache_miss_direct\": 276,\n  \"cache_miss_preprocessed\": 259,\n  \"cache_hit_rate\": 26.611796982167352,\n  \"cache_hit_ratio\": 0.2661179698216735,\n  \"called_for_link\": 132,\n  \"called_for_preprocessing\": 0,\n  \"unsupported_code_directive\": 0,\n  \"no_input_file\": 13,\n  \"cleanups_performed\": 0,\n  \"files_in_cache\": 508,\n  \"cache_size\": \"8MB\",\n  \"cache_size_bytes\": 8159232\n}\n```\n\n## Running the demo with Docker Compose\n\nThe provided `docker-compose.yml` script defines the following monitoring\nstack:\n\n- `ccache-exporter` service bind-mounted on the user's `$HOME` directory;\n- `node-exporter` service to gather system metrics;\n- `prometheus` database, preconfigured to scrap exported `ccache` metrics;\n- `grafana` dashboard, preconfigured to use `prometheus` as a data source\n  and display `ccache` metrics in the corresponding dashboard.\n\n\nTo pull Docker images and start the services:\n\n```shell\n$ docker-compose pull\n$ docker-compose up -d\n```\n\nOnce the stack is up, the following services will be exposed:\n\n- http://localhost:19508: `ccache-exporter`\n- http://localhost:19100: `node-exporter`\n- http://localhost:19090: `prometheus`\n- http://localhost:13000: `grafana`\n\n\nThen, login to Grafana with the default credentials (`admin/admin`) and load\nthe `ccache` dashboard:\n\n\u003cimg src=\"./dashboard.jpg\" alt=\"Grafana dashboard for ccache_exporter metrics\"\u003e\n\n## Change Log\nSee [CHANGELOG](./CHANGELOG.md)\n\n## Contributing\nSee [CONTRIBUTING](./CONTRIBUTING.md)\n\n## License\n`ccache_exporter` is licenced under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualtam%2Fccache_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtualtam%2Fccache_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualtam%2Fccache_exporter/lists"}