Skip to content

Commit

Permalink
fixing the config (http(s) listeners and active mq messages enhanced) (
Browse files Browse the repository at this point in the history
…#358)

Signed-off-by: dnazaruk <[email protected]>
  • Loading branch information
ndimitry authored and brian-brazil committed Nov 21, 2019
1 parent 0f8c25f commit 55ee16f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions example_configs/wildfly-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ whitelistObjectNames:
# see https://github.com/prometheus/jmx_exporter/issues/246#issuecomment-367573931
# Each object in the rules below has to be added to whitelistObjectNames too !
# note that rules use regex (like "foo.*", whereas the whitelist use globbing expressions (like "foo*")
- "jboss.as:subsystem=messaging-activemq,server=*"
- "jboss.as:subsystem=messaging-activemq,server=*,jms-queue=*"
- "jboss.as:subsystem=messaging-activemq,server=*,jms-topic=*"
- "jboss.as:subsystem=datasources,data-source=*,statistics=*"
- "jboss.as:subsystem=datasources,xa-data-source=*,statistics=*"
- "jboss.as:subsystem=transactions*"
- "jboss.as:subsystem=undertow,server=*,http-listener=*"
- "jboss.as:subsystem=undertow,server=*,https-listener=*"
# - "java.lang:*"
rules:
- pattern: "^jboss.as<subsystem=messaging-activemq, server=.+, jms-(queue|topic)=(.+)><>(.+):"
Expand All @@ -29,10 +31,9 @@ rules:
attrNameSnakeCase: true
name: wildfly_transaction_$1

- pattern: "^jboss.as<subsystem=undertow, server=(.+), http-listener=(.+)><>(bytes_.+|error_count|processing_time|request_count):"
- pattern: "^jboss.as<subsystem=undertow, server=(.+), (http[s]?-listener)=(.+)><>(bytes_.+|error_count|processing_time|request_count):"
attrNameSnakeCase: true
name: wildfly_undertow_$3
name: wildfly_undertow_$4
labels:
server: $1
http_listener: $2

listener: $3

1 comment on commit 55ee16f

@dongdong159
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I would like to monitor the JBoss(127.0.0.1:9990), should I replace the * with 127.0.0.1:9990 ?

Please sign in to comment.