-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jmx default config spec template (#5978)
Co-authored-by: Ofek Lev <[email protected]>
- Loading branch information
1 parent
48f3c82
commit c5cd638
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
datadog_checks_dev/datadog_checks/dev/tooling/templates/configuration/init_config/jmx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
- name: is_jmx | ||
required: true | ||
description: Whether or not this file is a configuration for a JMX integration. | ||
value: | ||
example: true | ||
type: boolean | ||
- name: collect_default_metrics | ||
required: true | ||
description: Whether or not the check should collect all default metrics. | ||
value: | ||
example: true | ||
type: boolean | ||
- name: conf | ||
description: | | ||
List of metrics to be collected by the integration | ||
Read http://docs.datadoghq.com/integrations/java/ to learn how to customize it | ||
Agent 5: Customize all your metrics below | ||
Agent 6: The default metrics to be collected are kept in metrics.yaml, | ||
but you can still add your own metrics here | ||
value: | ||
example: | ||
- include: | ||
bean: <BEAN_NAME> | ||
attribute: | ||
MyAttribute: | ||
alias: my.metric.name | ||
metric_type: gauge | ||
type: array | ||
items: | ||
type: object |
88 changes: 88 additions & 0 deletions
88
datadog_checks_dev/datadog_checks/dev/tooling/templates/configuration/instances/jmx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
- name: host | ||
required: true | ||
description: JMX hostname to connect to. | ||
value: | ||
example: localhost | ||
type: string | ||
|
||
- name: port | ||
required: true | ||
description: JMX port to connect to. | ||
value: | ||
example: 8686 | ||
type: integer | ||
|
||
- name: user | ||
description: User to use when connecting to JMX. | ||
value: | ||
type: string | ||
|
||
- name: password | ||
description: Password to use when connecting to JMX. | ||
value: | ||
type: string | ||
|
||
- name: process_name_regex | ||
description: | | ||
Instead of specifying a host, and port. The agent can connect using the attach api. | ||
This requires the JDK to be installed and the path to tools.jar to be set below. | ||
Note: It needs to be set when process_name_regex parameter is set | ||
e.g. .*process_name.* | ||
value: | ||
type: string | ||
|
||
- name: tools_jar_path | ||
description: | | ||
Path to the tool.jar file to use with `process_name_regex` parameter. | ||
e.g. /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar | ||
value: | ||
type: string | ||
|
||
- name: name | ||
description: Set your instance name that will be used as `instance` tag. | ||
value: | ||
type: string | ||
|
||
- name: java_bin_path | ||
description: "`java_bin_path` should be set if the agent cannot find your java executable" | ||
value: | ||
type: string | ||
|
||
- name: java_options | ||
description: List of Java JVM options e.g. "-Xmx200m -Xms50m". | ||
value: | ||
type: string | ||
|
||
- name: trust_store_path | ||
description: | | ||
Path to your trusted store. | ||
`trust_store_path` should be set if ssl is enabled. | ||
value: | ||
type: string | ||
|
||
- name: trust_store_password | ||
description: | | ||
Password for your TrustStore.jks file. | ||
`trust_store_password` should be set if ssl is enabled. | ||
value: | ||
type: string | ||
|
||
- name: key_store_path | ||
description: | | ||
Path to your key store. | ||
`key_store_path` should be set if client authentication is enabled on the target JVM. | ||
value: | ||
type: string | ||
|
||
- name: key_store_password | ||
description: | | ||
Password to your key store. | ||
`key_store_password` should be set if client authentication is enabled on the target JVM. | ||
value: | ||
type: string | ||
|
||
- name: rmi_registry_ssl | ||
description: Whether or not the agent should connect to the rmi registry using ssl. | ||
value: | ||
example: false | ||
type: boolean |