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

fix: Zenoss config handling #2549

Merged
merged 11 commits into from
May 18, 2021

Conversation

alespour
Copy link
Contributor

More fixes to Zenoss:

  • URL and authentication info (username, password) removed from handler config
  • collector property is configurable item as it is unlikely to be changed per alert
  • external testing: configuration values are respected during test request handling (TestOptions())
Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass

@alespour alespour marked this pull request as ready for review May 13, 2021 12:24
@alespour alespour force-pushed the fix/zenoss-external-testing-again branch from 6d71488 to bf548ed Compare May 13, 2021 17:52
services/zenoss/service.go Show resolved Hide resolved
Copy link
Contributor

@sranka sranka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also rename json properties in https://github.com/influxdata/kapacitor/blob/master/services/zenoss/service.go#L87-L88 , so that these props are always the same (evclasskey, evclass)

Copy link
Contributor

@sranka sranka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also might consider changing "TID" to "tid" in

https://github.com/influxdata/kapacitor/blob/master/pipeline/tick/alert.go#L266

so it is consistent with config and other namings of the same property

@alespour
Copy link
Contributor Author

@sranka json props names unified.

@alespour alespour force-pushed the fix/zenoss-external-testing-again branch from def352b to 3e6bbef Compare May 17, 2021 11:03
@sranka sranka merged commit 53a1d22 into influxdata:master May 18, 2021
@sranka sranka deleted the fix/zenoss-external-testing-again branch May 18, 2021 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants