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 mapping for munin and options to override service type and name #10322

Merged
merged 13 commits into from
Jan 31, 2019
Merged
7 changes: 5 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16947,12 +16947,15 @@ Munin node metrics exporter



[float]
== munin fields
*`munin.*`*::
+
--
type: object

munin contains metrics exposed by a munin node agent


--

[[exported-fields-mysql]]
== MySQL fields
Expand Down
6 changes: 4 additions & 2 deletions metricbeat/module/munin/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
Munin node metrics exporter
release: beta
fields:
- name: munin
type: group
- name: munin.*
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove the .* part, it seems that's how we normally do it in fields.yml, the timeseries.instance code will be easier too

Copy link
Member Author

Choose a reason for hiding this comment

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

This looks needed in this case, maybe because I am setting up dynamic templates for two levels now.

type: object
object_type: double
object_type_mapping_type: 'long'
Copy link
Contributor

Choose a reason for hiding this comment

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

why long here? I would perhaps expect:
object_type_mapping_type: "*"

Copy link
Member Author

Choose a reason for hiding this comment

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

I needed objects to keep being objects, I have added two patterns now, one for the level of groups and another one for the metrics.

description: >
munin contains metrics exposed by a munin node agent
fields:
2 changes: 1 addition & 1 deletion metricbeat/module/munin/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.