On Mon, 29 Jun 2020 at 13:59, Anurag Vaidya <ajv...@bucknell.edu> wrote:
> Hello everyone, > > I am trying to use the JMX exporter to measure Kafka metrics. I have run > the command "mvn package" and successfully build the package. I created the > config.yaml file: > > --- > startDelaySeconds: 0 > hostPort: 127.0.0.1:8080 > username: > password: > jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:8080/jmxrmi > ssl: false > lowercaseOutputName: false > lowercaseOutputLabelNames: false > whitelistObjectNames: ["org.apache.cassandra.metrics:*"] > blacklistObjectNames: ["org.apache.cassandra.metrics:type=ColumnFamily,*"] > rules: > - pattern: 'org.apache.cassandra.metrics<type=(\w+), name=(\w+)><>Value: > (\d+)' > name: cassandra_$1_$2 > value: $3 > valueFactor: 0.001 > labels: {} > help: "Cassandra metric $1 $2" > type: GAUGE > attrNameSnakeCase: false > > However, when I try to see the metrics, I get the following error: At most > one of hostPort and jmxUrl must be provided. I tried to remove the jmxUrl, > but got the same error. Any advice > That config is for explaining the configuration and should never be used directly. Use the kafka config at https://github.com/prometheus/jmx_exporter/tree/master/example_configs -- Brian Brazil www.robustperception.io -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHJKeLrgOayQsG7%3DVj-PKhRJoTEsxLeGg-rYsn9U64rp0tqBBg%40mail.gmail.com.