{"id":19168375,"url":"https://github.com/bloomberg/datalake-query-ingester","last_synced_at":"2025-05-07T14:41:17.500Z","repository":{"id":43473415,"uuid":"426319289","full_name":"bloomberg/datalake-query-ingester","owner":"bloomberg","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-28T22:26:27.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-19T23:31:57.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bloomberg.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":null,"support":null}},"created_at":"2021-11-09T17:14:10.000Z","updated_at":"2025-03-07T01:29:48.000Z","dependencies_parsed_at":"2022-08-17T14:45:49.117Z","dependency_job_id":null,"html_url":"https://github.com/bloomberg/datalake-query-ingester","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/bloomberg%2Fdatalake-query-ingester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fdatalake-query-ingester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fdatalake-query-ingester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fdatalake-query-ingester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloomberg","download_url":"https://codeload.github.com/bloomberg/datalake-query-ingester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252897342,"owners_count":21821427,"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":"2024-11-09T09:42:28.493Z","updated_at":"2025-05-07T14:41:17.471Z","avatar_url":"https://github.com/bloomberg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datalake Query Ingester\n\nPython microservice that receives datalake metadata through POSTs to /add_query_ingest and sends them to a Kafka topic.\n\n## Menu\n\n- [Rationale](#rationale)\n- [Quick start](#quick-start)\n- [Building](#building)\n- [Installation](#installation)\n- [Contributions](#contributions)\n- [License](#license)\n- [Code of Conduct](#code-of-conduct)\n- [Security Vulnerability Reporting](#security-vulnerability-reporting)\n\n## Rationale\n\nThe purpose of this service is to provide a way of producing Kafka messages from datalake query events, that will be consumed by [datalake-query-pg-consumer](link_to_repo).\n\nThis is part of a datalake query metadata ingestion and analysis pipeline. You can find more about that [here](to_be_added).\n\n## Quick Start\n\nTo run the service locally, along with supporting services for testing, just run `docker-compose up datalakequeryingester`.\nSimilarlly, for tests run `docker-compose run tests`.\n\n## Building\nTo build this project run `docker build -f Dockerfile -t datalakequeryingester:\u003cyour tag\u003e`\n\nOR\n\nRun `docker-compose build`, which will create the image `datalakequeryingester:build`. Use `docker image tag datalakequeryingester:build datalakequeryingester:\u003cyour tag\u003e` to change its tag.\n\n## Installation\n\nThis is meant to be used with [Trino](https://github.com/trinodb/trino) and models data based on Trino's query metrics. This has been tested with [Trino 363](https://github.com/trinodb/trino/releases/tag/363), backwards or forwards compatibility is not guaranteed.\n\nThe service is meant to be deployed with k8s. Configuration is passed with environment variables:\n- KAFKA_BROKERS\n- DATALAKEQUERYINGESTER_KAFKA_TOPIC\n- DATALAKEQUERYINGESTER_KAFKA_GROUP_ID\n\nAn example config can be found in `docker-compose.yaml \u003e datalakequeryingester`.\n\nAllows authentication through an API Key passed through the `X-API-Key` header. By default this does nothing. Implement a custom authentication/authorization mechanism by adding it to `_apik.py`.\n\n## Contributions\n\nWe :heart: contributions.\n\nHave you had a good experience with this project? Why not share some love and contribute code, or just let us know about any issues you had with it?\n\nWe welcome issue reports [here](../../issues); be sure to choose the proper issue template for your issue, so that we can be sure you're providing the necessary information.\n\nBefore sending a [Pull Request](../../pulls), please make sure you read our\n[Contribution Guidelines](https://github.com/bloomberg/.github/blob/master/CONTRIBUTING.md).\n\n## License\n\nPlease read the [LICENSE](LICENSE) file.\n\n## Code of Conduct\n\nThis project has adopted a [Code of Conduct](https://github.com/bloomberg/.github/blob/master/CODE_OF_CONDUCT.md).\nIf you have any concerns about the Code, or behavior which you have experienced in the project, please\ncontact us at opensource@bloomberg.net.\n\n## Security Vulnerability Reporting\n\nIf you believe you have identified a security vulnerability in this project, please send email to the project\nteam at opensource@bloomberg.net, detailing the suspected issue and any methods you've found to reproduce it.\n\nPlease do NOT open an issue in the GitHub repository, as we'd prefer to keep vulnerability reports private until\nwe've had an opportunity to review and address them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomberg%2Fdatalake-query-ingester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloomberg%2Fdatalake-query-ingester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomberg%2Fdatalake-query-ingester/lists"}