[Hawkular-dev] hawkular java agent now supports ${x} in config

John Mazzitelli mazz at redhat.com
Sat Mar 18 10:22:42 EDT 2017


Just released Hawkular Java Agent 0.29.1.Final that contains a new feature.

To support deploying Java Agent within containers (though this feature isn't restricted to that use-case), you can configure many settings in the Java Agent YAML config with ${x} expressions (similar to how HWFA can be configured in standalone.xml).

It supports getting values from system properties, environment variables, with default values optionally defined. The following expressions are supported - hopefully this is self-explanatory:

${some.system.property}

${some.system.property:a-default-value}

${ENV~SOME_ENV_VAR}

${ENV~SOME_ENV_VAR:a-default-value}

Not all properties support expressions (most don't need them) but properties that define things like hosts, ports, urls, passwords, filepaths, do support expressions.

If I missed any, or if you'd like a property to support expressions that does not currently, write a HWKAGENT JIRA: https://issues.jboss.org/projects/HWKAGENT



More information about the hawkular-dev mailing list