|
123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh
-
- now=$(date +%s)
-
- echo '[
- {
- "metric": "plugin_example_gauge",
- "tags": {
- "type": "testcase",
- "author": "ulric"
- },
- "value": '${now}',
- "type": "gauge"
- },
- {
- "metric": "plugin_example_rate",
- "tags": {
- "type": "testcase",
- "author": "ulric"
- },
- "value": '${now}',
- "type": "rate"
- },
- {
- "metric": "plugin_example_increase",
- "tags": {
- "type": "testcase",
- "author": "ulric"
- },
- "value": '${now}',
- "type": "increase"
- }
- ]'
|