BW Agent#
The bwagent
plugin gathers stats on TIBCO BWAgent.
- Configuration:
This plugin needs to be configured in a separate file. Therefore create a file <your_path>/agent/config/bw/bw.conf
:
[[inputs.bwagent]]
# ## One or more URLs from which to read domain information. URLs will be tried in sequence on read failure.
urls = ["http://vsltibco02:8078", "http://vswtibco02:8079"]
#
# ## controls whether to collect only the local bwagent metrics (cpu, memory) or in addition the full domains' information
# # like appNodes, appSpaces, applications and application instances
# # true: collects only local metrics and nothing else; only the first URL (if URL array is given) will be collected;
# # false: collect information from the local bwagent and the entire domain; if the local agent is offline, domain information
# # will be collected from from the configured URLs, but local metrics will not be collected.
# # The URLs are tried in sequence until first success.
# # defaults to false
# local = true
#
# # list of domains to collect data from; by default all domains are collected
# # domains = ["development", "UAT"]
#
# # list of appspace names to collect data from; by default all appspaces are collected
# # appspaces = ["appspace"]
#
# ## Refresh interval values have to be greater than 0
# # controls the interval to get information from the bwagent in seconds
# refresh_interval = 10
#
# ## Optional HTTP Basic Auth Credentials
# # username = "username"
# # password = "password"
#
# ## Optional TLS Config
# # tls_ca = "/etc/certificates/ca.pem"
# # tls_cert = "/etc/certificates/cert.pem"
# # tls_key = "/etc/certificates/key.pem"
# ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false
#
# ## Amount of time allowed to complete the HTTP request
# # timeout = "5s"
Reference the plugin in your njams_agent.conf
:
[[inputs.execd]]
command = ["<your_path>/agent/bin/njams_agent", "--config", "<your_path>/agent/config/bw/bw.conf"]
Alternatively, it is possible to manage your configuration file on a HTTP/S server and provide it via URL to your njams_agent.conf
:
[[inputs.execd]]
command = ["<your_path>/agent/bin/njams_agent", "--config", "http://example.org/bw.conf"]
- Example Output:
{
"fields": {
"activeThreadCount": 182,
"freeMemoryInBytes": 4086075392,
"percentCpuUsed": 0,
"percentMemoryUsed": 17,
"totalMemoryInBytes": 4959592448,
"usedMemoryInBytes": 873517056
},
"name": "bwagent",
"tags": {
"adminMode": "enterprise",
"configState": "InSync",
"containerid": "vsltibco02.integrationmatters.com",
"host": "vsltibco02.integrationmatters.com",
"id": "bwagent.dev.vsltibco02.integrationmatters.com",
"machineName": "vsltibco02.integrationmatters.com",
"measurement": "bwagent",
"name": "dev.vsltibco02.integrationmatters.com",
"state": "Running",
"type": "tibwagent"
},
"timestamp": 1578583870
}