{"id":19096579,"url":"https://github.com/sapcc/k8s-secrets-certificate-exporter","last_synced_at":"2025-09-17T15:44:18.473Z","repository":{"id":57508930,"uuid":"180373608","full_name":"sapcc/k8s-secrets-certificate-exporter","owner":"sapcc","description":"Exports expiry metrics for certificates found in kubernetes secrets.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:57:10.000Z","size":19,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-30T14:16:55.664Z","etag":null,"topics":[],"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/sapcc.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":"2019-04-09T13:30:25.000Z","updated_at":"2022-11-23T12:14:10.000Z","dependencies_parsed_at":"2024-06-20T18:49:13.977Z","dependency_job_id":null,"html_url":"https://github.com/sapcc/k8s-secrets-certificate-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sapcc/k8s-secrets-certificate-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fk8s-secrets-certificate-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fk8s-secrets-certificate-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fk8s-secrets-certificate-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fk8s-secrets-certificate-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapcc","download_url":"https://codeload.github.com/sapcc/k8s-secrets-certificate-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fk8s-secrets-certificate-exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265872067,"owners_count":23842121,"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":[],"created_at":"2024-11-09T03:37:08.335Z","updated_at":"2025-09-17T15:44:13.429Z","avatar_url":"https://github.com/sapcc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Secret Certificate Exporter\n\nExports expiry metrics for certificates found in kubernetes secrets.\n\n## Features\n\n  - Automatically discovers secrets via Kubernetes API\n  - Exposes Prometheus metrics\n\n## Requirements\n\n  - go 1.11\n\n## Usage\n\n```\nUsage of certificate-exporter:\n      --kubeconfig string           Path to kube config (optional).\n      --metric-port int             Port for Prometheus metrics. (default 9091)\n      --namespace string            Limit exporter to this namespace.\n      --recheck-interval duration   Interval to check secrets. (default 30m0s)\n      --resync-interval duration    Interval to resync secrets. (default 15m0s)\n      --threadiness int             Exporter threadiness. (default 1)\n```\n\n## Example metrics\n\n```\n# HELP secrets_exporter_certificate_not_after How long the certificate is valid.\n# TYPE secrets_exporter_certificate_not_after gauge\n\nsecrets_exporter_certificate_not_after{host=\"\",name=\"ca.crt\",secret=\"default/my-secret\"} 1.806907249e+09\nsecrets_exporter_certificate_not_after{host=\"\",name=\"tls.crt\",secret=\"default/my-secret\"} 1.806907249e+09\n\n# HELP secrets_exporter_certificate_not_before How long the certificate is valid.\n# TYPE secrets_exporter_certificate_not_before gauge\nsecrets_exporter_certificate_not_before{host=\"\",name=\"ca.crt\",secret=\"default/my-secret\"} 1.491547249e+09\nsecrets_exporter_certificate_not_before{host=\"\",name=\"tls.crt\",secret=\"default/my-secret\"} 1.491547249e+09\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fk8s-secrets-certificate-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapcc%2Fk8s-secrets-certificate-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fk8s-secrets-certificate-exporter/lists"}