You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate the list of resources to monitor by MetricsHub dynamically from other sources (files, HTTP, scripts, etc.). Integrate with CMDB, etc.
How it would work
Configuration file would be metricshub.yaml.vm in this scenario. User would write YAML mixed with Velocity templating code. In Velocity, the user can use directives (#if, #foreach, etc.), variables and objects ($var), call object methods ($obj.myMethod(arg)). See the Velocity User Guide, Velocity Developer Guide,
Idea
Use Velocity for templating in
metricshub.yaml
.Use Case
Generate the list of resources to monitor by MetricsHub dynamically from other sources (files, HTTP, scripts, etc.). Integrate with CMDB, etc.
How it would work
Configuration file would be
metricshub.yaml.vm
in this scenario. User would write YAML mixed with Velocity templating code. In Velocity, the user can use directives (#if
,#foreach
, etc.), variables and objects ($var
), call object methods ($obj.myMethod(arg)
). See the Velocity User Guide, Velocity Developer Guide,User can also call tools exposed by Velocity, as well as our own tools (see how we created the Sentry Maven Skin Tools.
Example
Ideally, we would create our own
$http
Velocity tool, with more capabilities than the simplefetch()
method of$json
.The text was updated successfully, but these errors were encountered: