{"id":18266298,"url":"https://github.com/ssube/ovh-exporter","last_synced_at":"2025-04-09T02:19:46.722Z","repository":{"id":42715677,"uuid":"391970413","full_name":"ssube/ovh-exporter","owner":"ssube","description":"Prometheus exporter for the OVH cloud API","archived":false,"fork":false,"pushed_at":"2023-10-09T11:40:24.000Z","size":19,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T20:40:29.130Z","etag":null,"topics":["ovh","ovh-api","ovhcloud","prometheus","prometheus-exporter","prometheus-metrics"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ssube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-08-02T14:01:37.000Z","updated_at":"2022-03-27T14:08:14.000Z","dependencies_parsed_at":"2025-02-14T20:37:43.697Z","dependency_job_id":"6e2fc383-0203-4e52-8efc-208f2004c530","html_url":"https://github.com/ssube/ovh-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssube%2Fovh-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssube%2Fovh-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssube%2Fovh-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssube%2Fovh-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssube","download_url":"https://codeload.github.com/ssube/ovh-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247962731,"owners_count":21024890,"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":["ovh","ovh-api","ovhcloud","prometheus","prometheus-exporter","prometheus-metrics"],"created_at":"2024-11-05T11:22:46.348Z","updated_at":"2025-04-09T02:19:46.694Z","avatar_url":"https://github.com/ssube.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OVH Exporter\n\nThis is a Prometheus exporter for the OVH cloud API.\n\n## API Auth\n\nThe OVH API uses a signed token, generated by their SDK, using an app key/secret and consumer secret.\nThe full process is described in https://docs.ovh.com/gb/en/api/first-steps-with-ovh-api/#advanced-usage-pair-ovhcloud-apis-with-an-application_2.\n\n1. Sign up as a new app using the `/createToken` endpoint for your selected API, such as https://api.us.ovhcloud.com/createToken/\n2. Put the resulting secrets in an `.env` file or k8s secret\n3. Mount or source those secrets before running `node index.js`\n\n## Configuration\n\nThe following environment variables must be set:\n\n- `OVH_ENDPOINT`\n  - the name of the API endpoint to be used\n  - like `ovh-ca`, `ovh-eu`, `ovh-us`\n- `OVH_APP`\n  - the application key, AK in the docs\n- `OVH_SECRET`\n  - the secret application key, AS in the docs\n- `OVH_CONSUMER`\n  - the secret consumer key, CK in the docs\n- `OVH_PROJECT`\n  - the ID of your public cloud project\n\n## Metrics\n\nThe API has a number of GET endpoints that expose project usage and quota information. Some of these are\ncollected and exposed as Prometheus metrics.\n\n- `ovh_project_quota_max`\n  - `region`\n    - name\n  - `resource`\n    - `cores`\n    - `instances`\n    - `memory`\n- `ovh_project_quota_used`\n  - `region`\n    - name\n  - `resource`\n    - `cores`\n    - `instances`\n    - `memory`\n- `ovh_swift_bucket_bytes_total`\n  - `bucket`\n    - name\n  - `region`\n    - name\n- `ovh_swift_bucket_objects_total`\n  - `bucket`\n    - name\n  - `region`\n    - name\n\nMetrics are fetched once on startup, then on a scheduled interval, by default every 10 minutes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssube%2Fovh-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssube%2Fovh-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssube%2Fovh-exporter/lists"}