{"id":31572025,"url":"https://github.com/outofbedlam/tine","last_synced_at":"2025-10-05T13:47:43.391Z","repository":{"id":248381462,"uuid":"828521114","full_name":"OutOfBedlam/tine","owner":"OutOfBedlam","description":"TINE a data pipeline runner.","archived":false,"fork":false,"pushed_at":"2024-08-27T12:32:22.000Z","size":5471,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-27T13:52:24.565Z","etag":null,"topics":["data","pipeline"],"latest_commit_sha":null,"homepage":"https://tine.thingsme.xyz","language":"Go","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/OutOfBedlam.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":"2024-07-14T12:04:58.000Z","updated_at":"2024-08-27T12:32:08.000Z","dependencies_parsed_at":"2024-08-19T16:57:59.515Z","dependency_job_id":"853aac44-9290-46c5-8108-c6abb8100922","html_url":"https://github.com/OutOfBedlam/tine","commit_stats":null,"previous_names":["outofbedlam/tine"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/OutOfBedlam/tine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutOfBedlam%2Ftine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutOfBedlam%2Ftine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutOfBedlam%2Ftine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutOfBedlam%2Ftine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutOfBedlam","download_url":"https://codeload.github.com/OutOfBedlam/tine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutOfBedlam%2Ftine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278464304,"owners_count":25991177,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["data","pipeline"],"created_at":"2025-10-05T13:47:40.942Z","updated_at":"2025-10-05T13:47:43.372Z","avatar_url":"https://github.com/OutOfBedlam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TINE\n\n[![latest](https://img.shields.io/github/v/release/OutOfBedlam/tine?sort=semver)](https://github.com/OutOfBedlam/tine/releases)\n![CI](https://github.com/OutOfBedlam/tine/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/OutOfBedlam/tine/graph/badge.svg?token=5XSG9M9P8E)](https://codecov.io/gh/OutOfBedlam/tine)\n[![Go Report Card](https://goreportcard.com/badge/github.com/OutOfBedlam/tine)](https://goreportcard.com/report/github.com/OutOfBedlam/tine)\n\n![TINE is not ETL](./docs/images/tine-drop-circlex256.png)\n\nTINE a data pipeline runner.\n\n## Install\n\n```bash\ngo install github.com/OutOfBedlam/tine@latest\n```\n\nFind documents from [https://tine.thingsme.xyz/](https://tine.thingsme.xyz/)\n\n## Usage\n\n### Define pipeline in TOML\n\nSet the pipeline's inputs and outputs.\n\n```toml\n[[inlets.cpu]]\n    interval = \"3s\"\n[[flows.select]]\n    includes = [\"#*\", \"*\"]  # all tags and all fields\n[[outlets.file]]\n    path  = \"-\"\n    decimal = 2\n```\n\n### Run\n\n```bash\ntine run \u003cconfig.toml\u003e\n```\n\nIt generates CPU usage in CSV format which is default format of 'outlets.file'.\n\n```\n1721635296,cpu,1.57\n1721635299,cpu,0.66\n1721635302,cpu,1.07\n1721635305,cpu,2.08\n```\n\nChange output format to \"json\" from \"csv\", add `format = \"json\"` at the end of the file.\n\n```toml\n[[outlets.file]]\n    path  = \"-\"\n    decimal = 2\n    format = \"json\"\n```\n\n```json\n{\"_in\":\"cpu\",\"_ts\":1721780188,\"total_percent\":0.91}\n{\"_in\":\"cpu\",\"_ts\":1721780191,\"total_percent\":1.04}\n{\"_in\":\"cpu\",\"_ts\":1721780194,\"total_percent\":0.25}\n{\"_in\":\"cpu\",\"_ts\":1721780197,\"total_percent\":1.20}\n```\n\n### Shebang\n\n1. Save this file as `load.toml`\n\n```toml\n#!/path/to/tine run\n[[inlets.load]]\n    loads = [1, 5]\n    interval = \"3s\"\n[[flows.select]]\n    includes = [\"**\"]  # equivalent to [\"#*\", \"*\"]\n[[outlets.file]]\n    path  = \"-\"\n    decimal = 2\n```\n\n2. Chmod for executable.\n\n```sh\nchmod +x load.toml\n```\n\n3. Run\n\n```sh\n$ ./load.toml\n\n1721635438,load,0.03,0.08\n1721635441,load,0.03,0.08\n1721635444,load,0.03,0.08\n^C\n```\n\n## Embedding in Go\n\nTINE is not only designed as a standalone application, but also allows for embedding in other Go applications.\n\n## Examples\n\n**How to use TINE as a library for your application.**\n\n- [helloworld](./example/helloworld/helloworld.go)\n\n**How to set a custom inlet/outlet/flows.**\n\n- [custom_out](./example/custom_out/custom_out.go)\n- [custom_in](./example/custom_in/custom_in.go)\n- [custom_flow](./example/custom_flow/custom_flow.go)\n- [custom_out_reg](./example/custom_out_reg/custom_out_reg.go)\n- [custom_in_reg](./example/custom_in_reg/custom_in_reg.go)\n- [custom_flow_reg](./example/custom_flow_reg/custom_flow_reg.go)\n\n**How to use pipelines as a HTTP handler**\n\n- [httpsvr](./example/httpsvr/httpsvr.go)\n\n\n**How to collect metrics into RRD and display rrdgraph in a web page**\n\n- [rrd_graph_web](./example/rrd_graph_web/rrd_graph_web.go)\n\n\u003cimg src=\"./example/rrd_graph_web/rrd_graph_web.png\" alt=\"image\" width=\"300\" height=\"auto\"\u003e\n\n**How to collect metrics into Sqlite and display it on web page**\n\nThis example also shows how to utilize HTTP query parameters \nas variables of Go Templates to build pipeline configuration.\n\n- [sqlite_graph_web](./example/sqlite_graph_web/sqlite_graph_web.go)\n\n\u003cimg src=\"./example/sqlite_graph_web/sqlite_graph_web.png\" alt=\"image\" width=\"300\" height=\"auto\"\u003e\n\n## Documents\n\nPlease visit [https://tine.thingsme.xyz](https://tine.thingsme.xyz) for the documents.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutofbedlam%2Ftine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutofbedlam%2Ftine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutofbedlam%2Ftine/lists"}