-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maximum length for instance configs should be longer - improve tests. (…
…#147) * [auto-discovery] accept names up to 80 characters for instances. * [auto-discovery] configuraiton name could be longer. * [test] test long instance name. * [auto-discovery] remove underscore from template + PR fixes.
- Loading branch information
Showing
5 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
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,44 @@ | ||
#### SERVICE-DISCOVERY #### | ||
# jmx_0 | ||
init_config: | ||
|
||
instances: | ||
- process_name_regex: .*surefire.* | ||
name: jmx_test_instance | ||
conf: | ||
- include: | ||
bean: org.datadog.jmxfetch.test:type=SimpleTestJavaApp,scope=Co|olScope,host=localhost,component= | ||
attribute: | ||
ShouldBe100: | ||
metric_type: gauge | ||
alias: this.is.100 | ||
- include: | ||
bean: org.datadog.jmxfetch.test:type=WrongType,scope=WrongScope,host=localhost,component= | ||
attribute: | ||
Hashmap.thisis0: | ||
metric_type: gauge | ||
alias: bean.parameters.should.not.match | ||
|
||
#### SERVICE-DISCOVERY #### | ||
# jmxbutthisisincrediblylongandshouldneverbeavalidnamebecausewhoneedsanamelikethishonestly_0 | ||
init_config: | ||
|
||
instances: | ||
- process_name_regex: .*surefire.* | ||
name: jmx_test_instance | ||
conf: | ||
- include: | ||
bean: org.datadog.jmxfetch.test:type=SimpleTestJavaApp,scope=Co|olScope,host=localhost,component= | ||
attribute: | ||
ShouldBe100: | ||
metric_type: gauge | ||
alias: this.is.100 | ||
- include: | ||
bean: org.datadog.jmxfetch.test:type=WrongType,scope=WrongScope,host=localhost,component= | ||
attribute: | ||
Hashmap.thisis0: | ||
metric_type: gauge | ||
alias: bean.parameters.should.not.match | ||
|
||
|
||
#### AUTO-DISCOVERY TERM #### |