{"id":15610359,"url":"https://github.com/awcodify/ssl_chain_exporter","last_synced_at":"2026-06-10T20:31:32.113Z","repository":{"id":42392765,"uuid":"478666928","full_name":"awcodify/ssl_chain_exporter","owner":"awcodify","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-09T10:41:32.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T15:15:55.995Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awcodify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-06T17:46:04.000Z","updated_at":"2022-04-07T08:03:20.000Z","dependencies_parsed_at":"2023-01-21T09:02:36.640Z","dependency_job_id":null,"html_url":"https://github.com/awcodify/ssl_chain_exporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/awcodify/ssl_chain_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fssl_chain_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fssl_chain_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fssl_chain_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fssl_chain_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awcodify","download_url":"https://codeload.github.com/awcodify/ssl_chain_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2Fssl_chain_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T06:01:21.293Z","updated_at":"2026-06-10T20:31:32.088Z","avatar_url":"https://github.com/awcodify.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SSL Chain Exporter for Prometheus\n\n![GitHub release](https://img.shields.io/github/release/awcodify/ssl_chain_exporter.svg?style=for-the-badge)\n![GitHub Downloads](https://img.shields.io/github/downloads/awcodify/ssl_chain_exporter/total.svg?style=for-the-badge)\n\nHelp on flags:\n\n\u003cpre\u003e\n  -domains string\n        Which domain will be collected. Comma separated.\n  -domains-from-csv string\n        Which domain will be collected from csv file. Header required.\n  -web.listen-address string\n        Address to listen on for web interface. (default \":9102\")\n  -web.metrics-path string\n        Path under which to expose metrics. (default \"/metrics\")\n\u003c/pre\u003e\n\nBuild your binary\n```\ngo mod tidy\nCGO_ENABLED=0 go build\n```\n\nCheck your domains by runnning\n```\n./ssl_chain_exporter --domains=github.com,gist.github.com\n./ssl_chain_exporter --domains-from-csv=list-domains.csv\n```\n## Collectors\n\nSSL Chain metrics:\n\n| Metric                                | Description                                                                       | Type    | Label                 |\n|---------------------------------------|-----------------------------------------------------------------------------------|---------|-----------------------|\n| ssl_chain_up                          | Is the provided domain can be reached or not.                                     | Gauge   | domain                |\n| ssl_chain_expiry                      | The date after which a peer certificate expires. Expressed as a Unix Epoch Time.  | Gauge   | domain, chain, issuer |\n| ssl_chain_exporter_scrape_error_total | Number of errors while scraping SSL chain.                                        | Counter | domain                |\n\nSample:\n```\n# HELP ssl_chain_collector_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which ssl_chain_collector was built.\n# TYPE ssl_chain_collector_build_info gauge\nssl_chain_collector_build_info{branch=\"\",goversion=\"go1.17.3\",revision=\"\",version=\"\"} 1\n# HELP ssl_chain_expiry expiration of certification\n# TYPE ssl_chain_expiry gauge\nssl_chain_expiry{chain=\"intermediate\",domain=\"google.co.id\",issuer=\"CN=GTS Root R1,O=Google Trust Services LLC,C=US\"} 1.822262442e+09\nssl_chain_expiry{chain=\"root\",domain=\"google.co.id\",issuer=\"CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE\"} 1.832630442e+09\nssl_chain_expiry{chain=\"server\",domain=\"google.co.id\",issuer=\"CN=GTS CA 1C3,O=Google Trust Services LLC,C=US\"} 1.654776441e+09\n# HELP ssl_chain_exporter_scrape_error_total Number of errors while scraping SSL chain.\n# TYPE ssl_chain_exporter_scrape_error_total counter\nssl_chain_exporter_scrape_error_total{domain=\"asdasd.as\"} 3\nssl_chain_exporter_scrape_error_total{domain=\"hasldklaskdlaslda.asa\"} 3\n# HELP ssl_chain_up Could the server be reached\n# TYPE ssl_chain_up gauge\nssl_chain_up{domain=\"asdasd.as\"} 0\nssl_chain_up{domain=\"google.co.id\"} 1\nssl_chain_up{domain=\"hasldklaskdlaslda.asa\"} 0\n```\n\n## Debugging\n\n1. if /metrics cannot be access check your domain name list\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fssl_chain_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawcodify%2Fssl_chain_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fssl_chain_exporter/lists"}