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

Add instance level tags to Nagios Events #2778

Merged
merged 1 commit into from
Dec 18, 2018
Merged

Add instance level tags to Nagios Events #2778

merged 1 commit into from
Dec 18, 2018

Conversation

nmuesch
Copy link
Collaborator

@nmuesch nmuesch commented Dec 17, 2018

What does this PR do?

Adds the instance level tags to the Nagios events.
Also updates the test to assert that the tags are in each event that is processed.

Motivation

Customer request

Example of working Event with tags - https://cl.ly/43c9c4964795

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo
  • If PR adds a configuration option, it has been added to the configuration file.

Additional Notes

Anything else we should know when reviewing?

@codecov-io
Copy link

Codecov Report

Merging #2778 into master will increase coverage by 5.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2778      +/-   ##
==========================================
+ Coverage   84.75%   89.83%   +5.08%     
==========================================
  Files         657        7     -650     
  Lines       37463      433   -37030     
  Branches     4502       53    -4449     
==========================================
- Hits        31750      389   -31361     
+ Misses       4397       30    -4367     
+ Partials     1316       14    -1302

@@ -266,7 +267,8 @@ def compile_file_template(self, file_template):


class NagiosEventLogTailer(NagiosTailer):
def __init__(self, log_path, file_template, logger, hostname, event_func, gauge_func, freq, passive_checks=False):
def __init__(self, log_path, file_template, logger, hostname, tags, event_func, gauge_func,
Copy link
Contributor

Choose a reason for hiding this comment

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

wow this is a giant function signature

Copy link
Contributor

@gmmeyer gmmeyer left a comment

Choose a reason for hiding this comment

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

looks good to me

@nmuesch nmuesch merged commit 09fb983 into master Dec 18, 2018
@nmuesch nmuesch deleted the nick/nagios_tags branch December 18, 2018 22:43
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.

3 participants