{"id":24087973,"url":"https://github.com/tinybirdco/tb-usage-cost-metrics","last_synced_at":"2026-03-03T17:35:16.723Z","repository":{"id":113973285,"uuid":"572168617","full_name":"tinybirdco/tb-usage-cost-metrics","owner":"tinybirdco","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-29T12:47:32.000Z","size":15,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-27T05:25:03.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/tinybirdco.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-29T17:40:55.000Z","updated_at":"2023-06-07T20:15:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6917982-5b4e-44e7-9875-51a29cea2c10","html_url":"https://github.com/tinybirdco/tb-usage-cost-metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinybirdco/tb-usage-cost-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Ftb-usage-cost-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Ftb-usage-cost-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Ftb-usage-cost-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Ftb-usage-cost-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinybirdco","download_url":"https://codeload.github.com/tinybirdco/tb-usage-cost-metrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Ftb-usage-cost-metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30052530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-01-10T03:56:43.330Z","updated_at":"2026-03-03T17:35:16.715Z","avatar_url":"https://github.com/tinybirdco.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage and Cost in Tinybird\nThis data project contains an API endpoint that utilizes the [Service Data Sources](https://www.tinybird.co/docs/monitoring/service-datasources.html) to estimate the total usage and cost of all data sources and pipes in your Tinybird workspace.\n\nThe endpoint returns the total processed and stored data:\n- Data processed on ingestion from `tinybird.datasources_ops_log`\n- Data processed on API requests from `tinybird.pipe_stats`\n- Data stored from `tinybird.datasources_storage`\n\nThe API accepts 3 parameters to control the result:\n- `start_date` and `end_date` to filter the date range (default to yesterday and today, respectively, if either is not defined)\n- `resources` to filter on one or more data source or pipe (defaults to all if not defined)\n\nTo calculate cost, the endpoint uses the PRO pricing as listed on the [website](https://www.tinybird.co/pricing). For enterprise customers, Tinybird offers volume-based discounts. \n\n## Working with the Tinybird CLI\n\nTo start working with data projects as if they were software projects, first install the Tinybird CLI in a virtual environment.\nCheck the [CLI documentation](https://docs.tinybird.co/cli.html) for other installation options and troubleshooting.\n\n```bash\npython3 -mvenv .e\n. .e/bin/activate\npip install tinybird-cli\ntb auth --interactive\n```\n\nChoose your region: __1__ for _us-east_, __2__ for _eu_\n\nGo to your workspace, copy a token with admin rights and paste it. A new `.tinyb` file will be created.\n\n\n## Project Description\n\n```bash\n├── endpoints\n│   └── tb_usage_cost.pipe\n```\n\nIn the `/endpoints` folder, there is 1 API endpoint:\n- `tb_usage_cost` returns the usage and cost for a given date range and resource(s).\n\nPush the data project to your workspace:\n\n```bash\ntb push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Ftb-usage-cost-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinybirdco%2Ftb-usage-cost-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Ftb-usage-cost-metrics/lists"}