{"id":17662972,"url":"https://github.com/genebean/influxdb_downsample_hack","last_synced_at":"2025-03-30T11:44:52.125Z","repository":{"id":141759206,"uuid":"194310140","full_name":"genebean/influxdb_downsample_hack","owner":"genebean","description":"A workaround for InfluxDB CQ's","archived":false,"fork":false,"pushed_at":"2019-06-28T17:25:35.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T13:44:06.755Z","etag":null,"topics":["downsampling","influxdb"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genebean.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-28T17:23:56.000Z","updated_at":"2022-05-23T13:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"630123b8-fcc7-49d9-97ae-6edc578c0f58","html_url":"https://github.com/genebean/influxdb_downsample_hack","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/genebean%2Finfluxdb_downsample_hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genebean%2Finfluxdb_downsample_hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genebean%2Finfluxdb_downsample_hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genebean%2Finfluxdb_downsample_hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genebean","download_url":"https://codeload.github.com/genebean/influxdb_downsample_hack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314114,"owners_count":20757457,"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":["downsampling","influxdb"],"created_at":"2024-10-23T18:42:25.679Z","updated_at":"2025-03-30T11:44:52.099Z","avatar_url":"https://github.com/genebean.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InfluxDB Downsampling Hack\n\nIt seems that its rather easy to out run what CQ's are capable of downsampling. This repo contains a workaround for this issue that I have been working with InfluxData's support team on.\n\n## Usage\n\nYou will need to create a file in the root of this repo called `local_vars` that contains the following information:\n\n```sh\nexport INFLUX_USERNAME='\u003cyour user name\u003e'\nexport INFLUX_PASSWORD='\u003cyour password\u003e'\nexport INFLUX_URL='\u003cthe fqdn without port of your InfluxDB\u003e'\nexport KAPACITOR_URL=\"https://$INFLUX_USERNAME:$INFLUX_PASSWORD@\u003cyour kapacitor host\u003e:9092\"\n\nexport WORKING_DIR='\u003cthe path to the folder containing this file (no trailing slash)\u003e'\n```\n\nOnce that file is in place, you can run the script like so:\n\n_Running for one database_:\n\n```sh\n./influx-ticket-41490.sh source_db_name source_retention_policy_name destination_retention_policy\n```\n\n_Running for multiple databases_:\n\n```sh\nfor db in telegraf_general telegraf_vsphere; do ./influx-ticket-41490.sh $db source_retention_policy_name destination_retention_policy; done\n```\n\n### Optional debugging output\n\nsetting `DEBUG=true` either as a prefix for the command being run or as an environment variable will enable printing everything that is happening to your terminal. For example:\n\n```sh\nDEBUG=true ./influx-ticket-41490.sh source_db_name source_retention_policy_name destination_retention_policy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenebean%2Finfluxdb_downsample_hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenebean%2Finfluxdb_downsample_hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenebean%2Finfluxdb_downsample_hack/lists"}