{"id":28074367,"url":"https://github.com/projectcapsule/cortex-proxy","last_synced_at":"2025-05-12T23:34:39.680Z","repository":{"id":280060283,"uuid":"940866944","full_name":"projectcapsule/cortex-proxy","owner":"projectcapsule","description":"Proxy Cortex/Mimir organisations based on namespace ownership ","archived":false,"fork":false,"pushed_at":"2025-05-06T20:06:59.000Z","size":356,"stargazers_count":0,"open_issues_count":23,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T21:23:37.321Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectcapsule.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-01T00:13:32.000Z","updated_at":"2025-03-08T04:49:54.000Z","dependencies_parsed_at":"2025-03-01T01:24:24.632Z","dependency_job_id":"5307116c-bec1-4cba-b712-6f757a11d3a0","html_url":"https://github.com/projectcapsule/cortex-proxy","commit_stats":null,"previous_names":["projectcapsule/cortex-proxy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectcapsule%2Fcortex-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectcapsule%2Fcortex-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectcapsule%2Fcortex-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectcapsule%2Fcortex-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectcapsule","download_url":"https://codeload.github.com/projectcapsule/cortex-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253842455,"owners_count":21972830,"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":"2025-05-12T23:34:36.420Z","updated_at":"2025-05-12T23:34:39.672Z","avatar_url":"https://github.com/projectcapsule.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capsule ❤️ Cortex\n\n\u003e [!IMPORTANT]\n\u003e This project is a permanent hard-fork of the [origin project](https://github.com/blind-oracle/cortex-tenant).\n\n![Capsule Cortex](docs/images/logo.png)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/projectcapsule/cortex-proxy/releases/latest\"\u003e\n  \u003cimg alt=\"GitHub release (latest SemVer)\" src=\"https://img.shields.io/github/v/release/projectcapsule/cortex-proxy?sort=semver\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fprojectcapsule%2Fcortex-proxy?ref=badge_small\" alt=\"FOSSA Status\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fprojectcapsule%2Fcortex-proxy.svg?type=small\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://artifacthub.io/packages/search?repo=cortex-proxy\"\u003e\n  \u003cimg src=\"https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/cortex-proxy\" alt=\"Artifact Hub\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/projectcapsule/cortex-proxy\" \u003e\n \u003cimg src=\"https://codecov.io/gh/projectcapsule/cortex-proxy/graph/badge.svg?token=HER3gBKdqU\"/\u003e\n \u003c/a\u003e\n\u003c/p\u003e\n\nPrometheus remote write proxy which marks timeseries with a Cortex/Mimir tenant ID based on labels.\n\n## Overview\n\n![Architecture](docs/images/capsule-cortex.gif)\n\nCortex/Mimir tenants (separate namespaces where metrics are stored to and queried from) are identified by `X-Scope-OrgID` HTTP header on both writes and queries.\n\nThis software solves the problem using the following logic:\n\n- Receive Prometheus remote write\n- Search each timeseries for a specific label name and extract a tenant ID from its value.\n  If the label wasn't found then it can fall back to a configurable default ID.\n  If none is configured then the write request will be rejected with HTTP code 400\n- Optionally removes this label from the timeseries\n- Groups timeseries by tenant\n- Issues a number of parallel per-tenant HTTP requests to Cortex/Mimir with the relevant tenant HTTP header (`X-Scope-OrgID` by default)\n\n## Documentation\n\nSee the [Documentation](docs/README.md) for more information on how to use this addon.\n\n## Support\n\nThis addon is developed by the community. For enterprise support (production ready setup,tailor-made features) reach out to [Capsule Supporters](https://projectcapsule.dev/support/)\n\n## License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fprojectcapsule%2Fcortex-proxy.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fprojectcapsule%2Fcortex-proxy?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectcapsule%2Fcortex-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectcapsule%2Fcortex-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectcapsule%2Fcortex-proxy/lists"}