grok_exporter icon indicating copy to clipboard operation
grok_exporter copied to clipboard

Integrate sprig template function library

Open hamiltont opened this issue 5 years ago • 1 comments
trafficstars

The templates directory is nice, but given the range of data that could pass through grok_exporter perhaps something like http://masterminds.github.io/sprig/ should be incorporated. For example, I'm trying to use the output of subtract to slice, but unfortunately it outputs float64 while slice requires an int type. Having a larger body of helper functions would allow handling more edge case situations

hamiltont avatar Feb 07 '20 06:02 hamiltont

I agree, more functions would be good. I'll have a look if it's possible to implement the Sprig functions in grok_exporter.

fstab avatar Feb 09 '20 20:02 fstab