Quick start
Command tine run
tine runDefine a simple pipeline description in a TOML file.
Copy the example below and save it as cpu.toml.
[[inlets.cpu]]
interval = "3s"
[[flows.select]]
includes = ["**"]
[[outlets.file]]Run tine passing the cpu.toml path as argument.
tine run ./cpu.tomlPress ^C to stop.
cpu,1722171230,8.305903745046313
cpu,1722171233,11.401743796163146
cpu,1722171236,9.507754551438795
cpu,1722171239,8.965748824811843
^CTINE prints out a CSV line per every 3 seconds until it is stopped by pressing ^C.
Each line in the content represents the "cpu" inlet, which generates data consisting of a timestamp in UNIX epoch time and the corresponding system CPU usage percentage.
Add format="json" at the end of the file, it changes the out outlets.file applying JSON format instead of CSV which is default.
Using shebang
Edit the cpu.toml file and add the following line at the beginning: #!/path/to/tine run. Replace /path/to/tine with the actual path to the tine executable file on your system.
The chmod +x cpu.toml to make it executable.
Run
Last updated