{"id":19381784,"url":"https://github.com/taosdata/bailongma-rs","last_synced_at":"2025-04-23T20:32:01.250Z","repository":{"id":45147785,"uuid":"360732255","full_name":"taosdata/bailongma-rs","owner":"taosdata","description":"TDengine adapters for prometheus","archived":true,"fork":false,"pushed_at":"2022-01-05T07:49:24.000Z","size":373,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":36,"default_branch":"main","last_synced_at":"2025-03-24T12:35:29.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/taosdata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-23T01:49:00.000Z","updated_at":"2024-11-15T07:21:37.000Z","dependencies_parsed_at":"2022-08-02T22:46:06.068Z","dependency_job_id":null,"html_url":"https://github.com/taosdata/bailongma-rs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taosdata%2Fbailongma-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taosdata%2Fbailongma-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taosdata%2Fbailongma-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taosdata%2Fbailongma-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taosdata","download_url":"https://codeload.github.com/taosdata/bailongma-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250509730,"owners_count":21442486,"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-10T09:18:22.889Z","updated_at":"2025-04-23T20:32:00.946Z","avatar_url":"https://github.com/taosdata.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bailongma\n\n\u003e TDengine adatper for Prometheus, and others will happen soon.\n\nFor simple use case, just run:\n\n```sh\nbailongma\n```\n\nFor all options, type `--help` for details.\n\nLong usage here:\n\n```sh\nTDengine adapter for prometheus\n\nUSAGE:\n    bailongma [OPTIONS]\n\nFLAGS:\n        --help\n            Prints help information\n\n    -V, --version\n            Prints version information\n\n\nOPTIONS:\n    -c, --chunk-size \u003cchunk-size\u003e\n            Sql chunk size.\n            \n            The larger your table column size is, the small chunk should be setted. [default: 600]\n\n    -h, --host \u003chost\u003e\n            TDengine host IP or hostname [default: localhost]\n\n    -l, --level \u003clevel\u003e\n            Debug level [default: info]\n\n    -L, --listen \u003clisten\u003e\n            Listen to an specific ip and port [default: 0.0.0.0:10203]\n\n    -C, --max-connections \u003cmax-connections\u003e\n            Max TDengine connections\n            \n            - in concurrent cases, use max as 50000 - for common use, set it as 5000 [default:\n            50000]\n\n    -M, --max-memory \u003cmax-memory\u003e\n            Max memroy, unit: GB [default: 50]\n\n    -P, --password \u003cpassword\u003e\n            TDengine password [default: taosdata]\n\n    -p, --port \u003cport\u003e\n            TDengine server port [default: 6030]\n\n    -u, --user \u003cuser\u003e\n            TDengine user [default: root]\n\n    -w, --workers \u003cworkers\u003e\n            Thread works for web request [default: 10]\n```\n\nExample:\n\n```sh\nbailongma -h tdengine -p 6030 -u root -P taospass --listen 0.0.0.0:10101\n```\n\nIt will listen to port `10101`(default is `10230`).\n\nConfigure in `prometheus.yml`:\n\n```yaml\nremote_write:\n  - url: \"localhost:10101/adapters/prometheus/write\"\nremote_read:\n  - url: \"localhost:10101/adapters/prometheus/read\"\n```\n\nThe default database is `prometheus`, use query option `database` to modify this, configuration file is like:\n\n```yaml\nremote_write:\n  - url: \"localhost:10101/adapters/prometheus/write?database=prom1\"\nremote_read:\n  - url: \"localhost:10101/adapters/prometheus/read?database=prom1\"\n```\n\n## Build and Install\n\n```sh\ncargo build\ncargo install --path .\n```\n\n## blm-bench-prom\n\n`cargo build` will also produce a benchmark tool.\n\n```sh\nblm-bench-prom http://127.0.0.1:10230/adapters/prometheus/test5 \\\n  --points 10 \\\n  --metrics 10 \\\n  --interval 1000 \\\n  --chunks 1000 \\\n  --samples 100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaosdata%2Fbailongma-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaosdata%2Fbailongma-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaosdata%2Fbailongma-rs/lists"}