telegraf/plugins/inputs/trig
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
..
README.md chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
sample.conf chore(inputs_m-z): migrate sample configs into separate files (#11133) 2022-05-18 11:31:34 -05:00
trig.go docs: Remove warning not to remove go:embed (#11797) 2022-09-13 12:47:58 -05:00
trig_test.go Linter fixes (unhandled errors) -- Part 1 (#8992) 2021-04-08 11:43:39 -05:00

README.md

Trig Input Plugin

The trig plugin is for demonstration purposes and inserts sine and cosine

Configuration

# Inserts sine and cosine waves for demonstration purposes
[[inputs.trig]]
  ## Set the amplitude
  amplitude = 10.0

Metrics

  • trig
    • fields:
      • cosine (float)
      • sine (float)

Example Output

trig,host=MBP15-SWANG.local cosine=10,sine=0 1632338680000000000
trig,host=MBP15-SWANG.local sine=5.877852522924732,cosine=8.090169943749473 1632338690000000000
trig,host=MBP15-SWANG.local sine=9.510565162951535,cosine=3.0901699437494745 1632338700000000000