How to put multiple hosts in one jmx conf file?

I have a jmx input, with below jmx conf file:
{
"host" : "hostname",
"port" : port,

    "queries" : [
            {
                    "object_name" : "java.lang:type=Memory",
                    "object_alias" : "Memory"
            },
            {
                    "object_name" : "java.lang:type=OperatingSystem",
                    "object_alias" : "OS"
            },
            {
                    "object_name" : "java.lang:type=Runtime",
                    "object_alias" : "Runtime"
            },
            {
                    "object_name" : "java.lang:type=Threading",
                    "object_alias" : "Threading"
            }
    ]

}
I need collect from dozens of servers. Instead of creating dozens of conf files for each JVM, is there any better way to put multiple hosts in one conf file? Like:

hosts => ["host1", "host2", "host3"]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.