Skip to content

Commit

Permalink
Fix test and document about scrape_interval
Browse files Browse the repository at this point in the history
Corresponding to c71bba9.

Signed-off-by: daipom <fukuda@clear-code.com>
  • Loading branch information
daipom committed Feb 21, 2022
1 parent c71bba9 commit 7d04eb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ So this plugin cannot work with `filter` plugins or `output` plugins.
| Option | Description | Default |
|-------------------|-------------------------------------------|-----------|
| `tag` | Tag of the output events | `sigdump` |
| `scrape_interval` | The interval time between data collection | `60` |
| `scrape_interval` | The interval time between data collection | `900` |
| `dir_path` | The output directory path | `/tmp` |

### Example Configuration
Expand All @@ -35,7 +35,7 @@ So this plugin cannot work with `filter` plugins or `output` plugins.
<source>
@type sigdump
tag sigdump # optional
scrape_interval 60 # optional
scrape_interval 900 # optional
dir_path "/dump" # optional
</source>
```
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/test_in_sigdump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_configure_default_values
])
assert_equal("sigdump", d.instance.tag)
assert_equal(RESULT_DIR, d.instance.dir_path)
assert_equal(60, d.instance.scrape_interval)
assert_equal(900, d.instance.scrape_interval)
end

def test_configure_customize
Expand Down

0 comments on commit 7d04eb9

Please sign in to comment.