{"id":13614274,"url":"https://github.com/shell909090/influx-proxy","last_synced_at":"2026-01-21T00:37:08.396Z","repository":{"id":57484088,"uuid":"79119105","full_name":"shell909090/influx-proxy","owner":"shell909090","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-15T09:38:58.000Z","size":98,"stargazers_count":488,"open_issues_count":34,"forks_count":270,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-08-13T19:44:19.936Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shell909090.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-16T13:07:29.000Z","updated_at":"2025-07-20T19:33:59.000Z","dependencies_parsed_at":"2025-04-13T18:34:53.864Z","dependency_job_id":"bc5617ec-7d98-4031-9ccd-d2a30a0f060a","html_url":"https://github.com/shell909090/influx-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shell909090/influx-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shell909090%2Finflux-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shell909090%2Finflux-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shell909090%2Finflux-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shell909090%2Finflux-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shell909090","download_url":"https://codeload.github.com/shell909090/influx-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shell909090%2Finflux-proxy/sbom","scorecard":{"id":817499,"data":{"date":"2025-08-11","repo":{"name":"github.com/shell909090/influx-proxy","commit":"dfe4050cef990bb2c858fef895ba350d4b2fa625"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":8,"reason":"Found 13/16 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T14:33:58.078Z","repository_id":57484088,"created_at":"2025-08-23T14:33:58.079Z","updated_at":"2025-08-23T14:33:58.079Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28619894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"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":"2024-08-01T20:00:59.203Z","updated_at":"2026-01-21T00:37:08.379Z","avatar_url":"https://github.com/shell909090.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"InfluxDB Proxy\n======\n\nThis project adds a basic high availability layer to InfluxDB.\n\nNOTE: influx-proxy must be built with Go 1.7+, don't implement udp.\n\nWhy\n---\n\nWe used [InfluxDB Relay](https://github.com/influxdata/influxdb-relay) before, but it doesn't support some demands. \nWe use grafana for visualizing time series data, so we need add datasource for grafana. We need change the datasource config when influxdb is down. \nWe need transfer data across idc, but Relay doesn't support gzip. \nIt's inconvenient to analyse data with connecting different influxdb.\nTherefore, we made InfluxDB Proxy. \n\nFeatures\n--------\n\n* Support gzip.\n* Support query.\n* Filter some dangerous influxql.\n* Transparent for client, like cluster for client.\n* Cache data to file when write failed, then rewrite.\n\nRequirements\n-----------\n\n* Golang \u003e= 1.7\n* Redis-server\n* Python \u003e= 2.7\n\nUsage\n------------\n\n```sh\n$ # install redis-server\n$ yum install redis\n$ # start redis-server on 6379 port\n$ redis-server --port 6379 \u0026\n$ # Install influxdb-proxy to your $GOPATH/bin\n$ go get -u github.com/shell909090/influx-proxy/service\n$ go install github.com/shell909090/influx-proxy/service\n$ mv $GOPATH/bin/service $GOPATH/bin/influxdb-proxy\n$ # Edit config.py and execute it\n$ python config.py\n$ # Start influx-proxy!\n$ $GOPATH/bin/influxdb-proxy -redis localhost:6379 [--redis-pwd xxx --redis-db 0]\n```\n\nConfiguration\n-------------\n\nExample configuration file is at [config.py](config.py). \nWe use config.py to genrate config to redis.\n\nDescription\n-----------\n\nThe architecture is fairly simple, one InfluxDB Proxy process and two or more InfluxDB processes. The Proxy should point HTTP requests with measurements to the two InfluxDB servers.\n\nThe setup should look like this:\n\n```\n        ┌─────────────────┐\n        │writes \u0026 queries │\n        └─────────────────┘\n                 │\n                 ▼\n         ┌───────────────┐\n         │               │\n         │InfluxDB Proxy │\n         |  (only http)  |\n         │               │         \n         └───────────────┘       \n                 │\n                 ▼\n        ┌─────────────────┐\n        │   measurements  │\n        └─────────────────┘\n          |              |       \n        ┌─┼──────────────┘       \n        │ └──────────────┐       \n        ▼                ▼       \n  ┌──────────┐      ┌──────────┐  \n  │          │      │          │  \n  │ InfluxDB │      │ InfluxDB │\n  │          │      │          │\n  └──────────┘      └──────────┘\n```\n\nmeasurements match principle:\n\n* Exact match first. For instance, we use `cpu.load` for measurement's name. The KEYMAPS has `cpu` and `cpu.load` keys.\nIt will use the `cpu.load` corresponding backends.\n\n* Then Prefix match. For instance, we use `cpu.load` for measurement's name. The KEYMAPS  only has `cpu` key.\nIt will use the `cpu` corresponding backends.\n\nQuery Commands\n--------\n\n#### Unsupported commands\n\nThe following commands are forbid.\n\n* `DELETE` \n* `DROP`  \n* `GRANT`\n* `REVOKE`\n\n#### Supported commands\n\nOnly support match the following commands.\n\n* `.*where.*time`\n* `show.*from`\n* `show.*measurements`\n\nLicense\n-------\n\nMIT. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshell909090%2Finflux-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshell909090%2Finflux-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshell909090%2Finflux-proxy/lists"}