Hi,

I want to export datasource metric, I try many pattern without success

This the list of patterns than I try :
# pattern: 'Catalina<type=DataSource, 
name="(\w+-\w+)"><>(maxIdle|minIdle|maxWait|active|size|idle|createCount|initialSize|reconnectedCount|maxAge|maxActive|releasedIdleCount|releaseCount):'
 
# JMX Bean: Catalina:type=DataSource, context=[context 
name],host=[hostname],class=javax.sql.DataSource,name="[JNDI name]" # 
Catalina:type=DataSource,class=javax.sql.DataSource,name="jdbc/fwk" #- 
pattern: 'Catalina<type=DataSource, context="javax.sql.DataSource", 
host="(\w+)"><>(maxIdle|minIdle|maxWait|active|size|idle|createCount|initialSize|reconnectedCount|maxAge|maxActive|releasedIdleCount|releaseCount):'
 
# pattern: 
'Catalina<type=DataSource,class=javax.sql.DataSource,host=([-a-zA-Z0-9+&@#/%?=~_|!:.,;]*[-a-zA-Z0-9+&@#/%=~_|]),name="(\w+),context=(\w+)"><>(maxIdle|minIdle|maxWait|active|size|idle|createCount|initialSize|reconnectedCount|maxAge|maxActive|releasedIdleCount|releaseCount):'
 
# pattern: 'Catalina<type=DataSource, 
context=(.*),host=(.*),class=javax.sql.DataSource,name="(.*)"><>(maxIdle|minIdle|maxWait|active|size|idle|createCount|initialSize|reconnectedCount|maxAge|maxActive|releasedIdleCount|releaseCount):'
 
- pattern: 
'Catalina<type=DataSource,class=javax.sql.DataSource,name="(.*)"><>(maxIdle|minIdle|maxWait|active|size|idle|createCount|initialSize|reconnectedCount|maxAge|maxActive|releasedIdleCount|releaseCount):'
 
name: tomcat_dataSource_$2 labels: name=: $1 help: Tomcat datasource $1 
type: GAUGE 

and an example of the ObjectName  read on Jconsole :  
Catalina:type=DataSource,class=javax.sql.DataSource,name="jdbc/fwk"

Somebody can help me ?  

thank's,
Pascal

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/67a05638-9fa9-417e-acc2-04942843fe10n%40googlegroups.com.

Reply via email to