Comments (5)
The current setup kind of assumes that the datasource is defined on server level (in server.xml and/or global context.xml). In that case the datasource should be initialized during the initilization of the metrics war.
Are you defining the datasource in a context.xml inside your application war?
from tomcat_exporter.
from tomcat_exporter.
The metrics war initialization is normally done during first scrape by prometheus. At that point the decision is made to initialize TomcatJdbcPoolExports or not (based on the existence of certain datasource mbeans). If this happens before other wars containing an context.xml with a datasource definition are started you will not see the metrics.
One solution I can think of is setting the bindOnInit property or your connector to 'false'. Can you test this?
from tomcat_exporter.
from tomcat_exporter.
Added note to readme.
from tomcat_exporter.
Related Issues (20)
- The metrics application cannot be restarted HOT 4
- Whether it works on Windows server? HOT 1
- ClassNotFoundException: io.prometheus.client.exporter.MetricsServlet HOT 4
- A dashboard for this exporter? HOT 4
- Criação do contexto da aplicação no monitoramento do Pool de conexões do Datasource HOT 4
- Delayed metrics HOT 3
- Contect deadline exceed (Get https://my_ip/metrics/: context deadline exceeded) HOT 6
- Syntax issue in the output HOT 1
- Getting the ClassCastException exception when added the resource in the context.xml HOT 4
- embed jars? HOT 2
- Caused by: java.lang.ClassNotFoundException: io.prometheus.cloudwatch.WebServer HOT 1
- tomcat_exporter doesn't work HOT 2
- Duplicate registration exception when there are multiple jdbc connections defined in tomcat with latest prometheus library HOT 1
- prometheus 0.12.0 needs simpleclient_servlet_common HOT 2
- Add JMX Exporter features? HOT 3
- Tomcat version < 10 with Prometheus version > 11 not supported HOT 2
- 404 after deploying metrics.war HOT 6
- Can't see the metrics HOT 6
- Is this project still maintained? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomcat_exporter.