-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
pcp2zabbix: enable emitting "low-level-discovery" metrics for indoms #439
Comments
There is a problem with this implementation. It sense the LLD metrics only 'as required', namely upon startup, or when the instance domain of a particular metric changes. It turns out that this is not enough. If pcp2zabbix is already running (and thus transmitted the LLD set once), and only after this point does zabbix become configured to monitor those discovery keys, then zabbix will not get them. Or at least it won't get them until the next time the indom changes. It seems as though we need to send the discovery information more regularly, regardless of indom change status. But sending them every report would not be great either (since the indom enumerations are large, larger than the underlying data). But maybe that's the simplest thing to do. |
On second thought, one could use pcp2zabbix's |
When pcp2zabbix is told to pass along metrics with an indom, it'll transcribe the instance name after the metric name, like
foo.bar[baz]
. For instances where the domain is variable, it's not practical on the zabbix side to configure it for all possible values ofbaz
, so such metrics get tossed away. Instead, so-called "low-level discovery" zabbix configuration is the method of choice.The idea is that, for all indoms pcp2zabbix encounters, a dummy metric is also sent to zabbix, with a stylized JSON string value such as:
I believe a single such dummy metric can enumerate all the indoms (with their distinct
#INDOMxyz
names). Then the{#INDOMxyz}
values become macros by which zabbix users can automatically create metric/trigger/graph families for related metrics of the same indom.https://www.zabbix.com/documentation/3.4/manual/discovery/low_level_discovery
The text was updated successfully, but these errors were encountered: