Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config specs to activemq xml #6116

Merged
merged 3 commits into from
Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add http init and url to instance
  • Loading branch information
hithwen committed Mar 23, 2020
commit 5d4102421ea480851736adecdd398fd4b703ee52
11 changes: 11 additions & 0 deletions activemq_xml/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ files:
options:
- template: init_config
options:
- template: init_config/http
- template: init_config/default
- template: instances
options:
- name: url
required: true
description: |
url to gather the stats from.
It should be something like http://<hostname>:8161

Note: the agent check will append /admin/xml/queues.jsp to the url
value:
type: string
example: http://localhost:8161
- name: suppress_errors
required: false
description: Suppresses connection errors if url is expected to be sometimes offline (e.g. standby host).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@
#
init_config:

## @param proxy - mapping - optional
## Set HTTP or HTTPS proxies for all instances. Use the `no_proxy` list
## to specify hosts that must bypass proxies.
##
## The SOCKS protocol is also supported like so:
##
## socks5://user:pass@host:port
##
## Using the scheme `socks5` causes the DNS resolution to happen on the
## client, rather than on the proxy server. This is in line with `curl`,
## which uses the scheme to decide whether to do the DNS resolution on
## the client or proxy. If you want to resolve the domains on the proxy
## server, use `socks5h` as the scheme.
#
# proxy:
# http: http://<PROXY_SERVER_FOR_HTTP>:<PORT>
# https: https://<PROXY_SERVER_FOR_HTTPS>:<PORT>
# no_proxy:
# - <HOSTNAME_1>
# - <HOSTNAME_2>

## @param skip_proxy - boolean - optional - default: false
## If set to `true`, this makes the check bypass any proxy
## settings enabled and attempt to reach services directly.
#
# skip_proxy: false

## @param timeout - number - optional - default: 10
## The timeout for connecting to services.
#
# timeout: 10

## @param service - string - optional
## Attach the tag `service:<SERVICE>` to every metric, event, and service check emitted by this integration.
##
Expand All @@ -13,7 +45,14 @@ init_config:
#
instances:

-
## @param url - string - required
## url to gather the stats from.
## It should be something like http://<hostname>:8161
##
## Note: the agent check will append /admin/xml/queues.jsp to the url
#
- url: http://localhost:8161

## @param suppress_errors - boolean - optional - default: false
## Suppresses connection errors if url is expected to be sometimes offline (e.g. standby host).
#
Expand Down