You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin.example.sh 632 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. now=$(date +%s)
  3. echo '[
  4. {
  5. "metric": "plugin_example_gauge",
  6. "tags": {
  7. "type": "testcase",
  8. "author": "ulric"
  9. },
  10. "value": '${now}',
  11. "type": "gauge"
  12. },
  13. {
  14. "metric": "plugin_example_rate",
  15. "tags": {
  16. "type": "testcase",
  17. "author": "ulric"
  18. },
  19. "value": '${now}',
  20. "type": "rate"
  21. },
  22. {
  23. "metric": "plugin_example_increase",
  24. "tags": {
  25. "type": "testcase",
  26. "author": "ulric"
  27. },
  28. "value": '${now}',
  29. "type": "increase"
  30. }
  31. ]'