Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 mapping for munin and options to override service type and name #10322
Add mapping for munin and options to override service type and name #10322
Changes from 5 commits
965ae7d
3783213
68841a3
85208b1
81fc075
32fed9c
b0223c7
0a29aa1
72932fa
5427e78
aa1c230
d6d437f
b122bc9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The service type should not be
munin
by the service that is monitored. So ifapache
is monitored with munin,service.type
should be apache. Because of this we should also have it set by the user. I wonder if we should make it required for the user to have it set or make it optional?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a discussion with @exekias and he proposed to have this as general option for all modules instead. Can you remove it from here and potentially open a separate PR with introducing these settings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading this I think that another option for events could be to use the plugin name as a different field and not for the path, so if we have now an event like this:
Have instead two like this:
This would be more aligned with ECS-like metrics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally agree with having an option for
service.name
for all modules. Not so sure forservice.type
, I think that the type should be set in general by the module (do we want to allow arbitraryservice.type
for service modules?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service.type
for the "input" modules. We should not allow to have it overwritten in other modulesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a general option for
service.name
in other PR.The setting of
service.type
andobserver.type
will also go in another PR, I think there can be some shared code for that in all "input" modules.The plugin field would be quite easy, the
items
we are looping on here, should rather be calledplugins
🙂. I'll give a try to this here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR to add
service.name
#10427