{"id":29272764,"url":"https://github.com/dodevops/sonarqube-usertoken-exporter","last_synced_at":"2026-02-04T01:36:59.276Z","repository":{"id":302794880,"uuid":"1013646259","full_name":"dodevops/sonarqube-usertoken-exporter","owner":"dodevops","description":"A prometheus exporter that exports currently issued user tokens of a Sonarqube instance and when they expire","archived":false,"fork":false,"pushed_at":"2025-08-01T10:45:20.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-26T12:20:37.103Z","etag":null,"topics":["prometheus-exporter","sonarqube"],"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/dodevops.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T08:32:47.000Z","updated_at":"2025-08-01T10:45:10.000Z","dependencies_parsed_at":"2025-08-01T07:11:03.844Z","dependency_job_id":"3ef9932f-a3b8-4e5a-bc6d-126ede66dd0c","html_url":"https://github.com/dodevops/sonarqube-usertoken-exporter","commit_stats":null,"previous_names":["dodevops/sonarqube-usertoken-exporter"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dodevops/sonarqube-usertoken-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fsonarqube-usertoken-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fsonarqube-usertoken-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fsonarqube-usertoken-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fsonarqube-usertoken-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/sonarqube-usertoken-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fsonarqube-usertoken-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29063967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T00:26:14.114Z","status":"ssl_error","status_checked_at":"2026-02-04T00:23:06.435Z","response_time":96,"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":["prometheus-exporter","sonarqube"],"created_at":"2025-07-05T01:10:39.776Z","updated_at":"2026-02-04T01:36:59.267Z","avatar_url":"https://github.com/dodevops.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonarqube usertoken exporter\n\nA prometheus exporter that exports currently issued user tokens of a Sonarqube instance\nand when they expire.\n\n## Usage\n\nStart the container (e.g. using podman or docker) to launch the exporter locally.\n\n    podman run --rm -p 8081:8081 -e EXPORTER_URL=https://sonarqube.company.com -e EXPORTER_TOKEN=verysecretadmintoken ghcr.io/dodevops/sonarqube-usertoken-exporter:latest\n\nAfter that, the metrics can be retrieved using http://localhost:8081/metrics\n\nThe following environment variables are required to configure the exporter:\n\n* EXPORTER_URL: URL to the sonarqube instance\n* EXPORTER_TOKEN: A user token with admin privileges\n\nAnd these are optional for further configuration:\n\n* EXPORTER_LOGLEVEL: Level to use when logging out information [INFO]\n* EXPORTER_PORT: Port to listen on [8081]\n* EXPORTER_INTERVAL: Interval to sleep between metric gathering in minutes [60]\n\n## Metrics\n\nThe following metrics are exporter:\n\n### sonarqube_user_tokens_expiration_date_seconds\n\nThe expiration of a user token as a unix epoch.\n\nThe following labels are provided:\n\n* user: The username that the token is bound to\n* token: Name of the token\n* type: User token type. Can be USER_TOKEN, GLOBAL_ANALYSIS_TOKEN or PROJECT_ANALYSIS_TOKEN\n* project_key: Assigned project key if the key is of the PROJECT_ANALYSIS_TOKEN type\n* is_expired: A boolean \"true\"/\"false\" whether the user token has expired\n\n### sonarqube_user_tokens_creation_date_seconds\n\nThe creation date of a user token as a unix epoch\n\nThe following labels are provided:\n\n* user: The username that the token is bound to\n* token: Name of the token\n* type: User token type. Can be USER_TOKEN, GLOBAL_ANALYSIS_TOKEN or PROJECT_ANALYSIS_TOKEN\n* project_key: Assigned project key if the key is of the PROJECT_ANALYSIS_TOKEN type\n* is_expired: A boolean \"true\"/\"false\" whether the user token has expired\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fsonarqube-usertoken-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fsonarqube-usertoken-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fsonarqube-usertoken-exporter/lists"}