Skip to content

Commit ce76d83

Browse files
authored
Merge pull request DataDog#9019 from DataDog/kari/docs-1419-img-to-text
Fix example code blocks
2 parents d280174 + 17f6ebc commit ce76d83

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

content/en/integrations/faq/i-have-a-matching-bean-for-my-jmx-integration-but-nothing-on-collect.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,48 @@ This means that your `Hadoop:service=HBase,name=Master,sub=Server - tag.isActive
3333

3434
Check your `jmx.yaml` file, the following excerpt should show something similar:
3535

36-
{{< img src="integrations/faq/jmx_conf.png" alt="jmx_conf" >}}
36+
```yaml
37+
init_config:
38+
instances:
39+
- name: hbase_master
40+
host: localhost
41+
port: xxx
42+
tags:
43+
application: hbase
44+
service: master
45+
conf:
46+
- include:
47+
bean: "Hadoop:service=HBase,name=Master,sub=Server"
48+
[...]
49+
tag.isActiveMaster:
50+
alias: jmx.hadoop.hbase.master.server.tag.isActiveMaster
51+
metric_type: java.lang.String
52+
```
3753
3854
The `java.lang.String` metric_type confirms the issue you were seeing in the logs.
3955

40-
To resolve this issue, change the associated metric_type, and ensure that your `jmx.yaml` file has the following configuration:
41-
42-
{{< img src="integrations/faq/jmx_metric_type.png" alt="jmx_metric_type" >}}
56+
To resolve this issue, change the associated metric_type, and ensure that your `jmx.yaml` file has the following configuration (note the changes in the last four lines):
57+
58+
```yaml
59+
init_config:
60+
instances:
61+
- name: hbase_master
62+
host: localhost
63+
port: xxx
64+
tags:
65+
application: hbase
66+
service: master
67+
conf:
68+
- include:
69+
bean: "Hadoop:service=HBase,name=Master,sub=Server"
70+
[...]
71+
tag.isActiveMaster:
72+
alias: jmx.hadoop.hbase.master.server.tag.isActiveMaster
73+
metric_type: gauge
74+
values:
75+
"true": 1
76+
"false": 0
77+
```
4378

4479
Jmxfetch then knows it's a string and uses this rule to transform that into a numeric metric.
4580

-77.3 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)