Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[event_viewer] Improve comments in example configuration #1734

Merged
merged 1 commit into from
Jun 29, 2015

Conversation

olivielpeau
Copy link
Member

@olivielpeau olivielpeau force-pushed the olivielpeau/improve-event-viewer-doc branch from 6679faf to db1982a Compare June 26, 2015 19:57
@degemer
Copy link
Member

degemer commented Jun 26, 2015

Since you're updating the example, could you also add these options https://github.com/DataDog/dd-agent/blob/master/checks.d/win32_event_log.py#L30-L32 (there is already user, but it is in the middle, not its right place). It shouldn't be used often, but it's still weird that it's not there.

One other thing: could you update the format to have something similar to https://github.com/DataDog/dd-agent/blob/master/conf.d/disk.yaml.default, ie the description of the option and under an example ? (although we should keep both basic example)

Thanks for the precisions you added ! 🍰

@olivielpeau olivielpeau force-pushed the olivielpeau/improve-event-viewer-doc branch from db1982a to 0c4b97e Compare June 26, 2015 21:24
@olivielpeau
Copy link
Member Author

Thanks @degemer for your review! I hadn't realized how outdated the config file was so I've almost completely rewritten it, could you have a look now?

@degemer
Copy link
Member

degemer commented Jun 26, 2015

Way way way better ! 👏
Some last remarks:

  • usually we write the default file so that users just have to uncomment lines and set the correct parameter: do you think you can do it ? (related to next remark)
  • from the example yaml, all parameters are optional: does it mean that if I write
instances:
  - random: iamramdom

it will collect all events ? I don't think we want this anyway, do you know if there is a parameter always used ?

  • I think we either dropped already notify or are deprecating it (it's not in the API docs), so could you remove it from the example ?

@olivielpeau
Copy link
Member Author

All the parameters are optional indeed, but we can probably set a default value on the log file that's captured (System could be a good candidate).

@olivielpeau olivielpeau force-pushed the olivielpeau/improve-event-viewer-doc branch from 0c4b97e to 4c2e186 Compare June 29, 2015 15:42
@olivielpeau
Copy link
Member Author

I've removed the notify section, but after some further digging I haven't been able to find a sane default on any of the parameters that would make the check capture only specific interesting events.

To avoid sending thousands of events in case an instance's filters aren't specific enough, we could:

  • In the config file, set a fully-defined default instance that would capture Critical and Error on the System LogFile
  • Limit the number of events that the integration captures.

I'm open to suggestions if you think there's a better solution :)

@olivielpeau
Copy link
Member Author

Discussed with @degemer, we'll leave an uncommented dash in the example yaml as it doesn't define a valid instance by itself (so the config file doesn't collect all the events as-is).

Merging

olivielpeau added a commit that referenced this pull request Jun 29, 2015
…r-doc

[event_viewer] Improve comments in example configuration
@olivielpeau olivielpeau merged commit 52be5d3 into master Jun 29, 2015
@olivielpeau olivielpeau deleted the olivielpeau/improve-event-viewer-doc branch July 10, 2015 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants