exometer icon indicating copy to clipboard operation
exometer copied to clipboard

SNMP support for exometer_function

Open dergraf opened this issue 10 years ago • 4 comments

the current version of exometer_report_snmp.erl can not deal with exometer_function entries. It will run into {error, {function_not_exported, {snmp_bin, 1}}} when calling modify_mib. Is there a simple workaround besides specifying my own function entry module?

dergraf avatar Oct 17 '14 08:10 dergraf

The issue with exometer_function is that they can return arbitrary values, thus one can't really map that to a particular SNMP structure. I think the easiest way forward for you would be to specify a custom module.

@uwiger Any idea how to generalize this?

tolbrino avatar Oct 20 '14 12:10 tolbrino

I thought a bit about that, but am not sure I've arrived at a great solution.

I considered adding an option, {snmp_syntax, binary()} when creating the metric. This could then be used by the exometer_report_snmp:create_bin/3 function. It certainly would be easy enough to implement.

uwiger avatar Oct 20 '14 14:10 uwiger

how is it going with this issue.. is there any way I can help with this?

dergraf avatar Nov 05 '14 10:11 dergraf

I had something in the works for this, will resurrect it.

tolbrino avatar Apr 01 '15 09:04 tolbrino