Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxdb-spring-3.0.0.jar has no class com.influxdb.spring.metrics.Influx2MetricsExportAutoConfiguration #247

Closed
uqix opened this issue Jul 15, 2021 · 6 comments · Fixed by #248
Milestone

Comments

@uqix
Copy link
Contributor

uqix commented Jul 15, 2021

Screen Shot 2021-07-15 at 4 06 09 PM

@bednar
Copy link
Contributor

bednar commented Jul 15, 2021

Hi @uqix,

thanks for using our client.

The micrometer v1.7.0 brings support for InfluxDB 2. That is a reason why the influxdb-spring no longer needs provide a custom Micrometer metrics exporter. Now you are able to use micrometer-registry-influx, for more info see our docs.

Regards

@uqix
Copy link
Contributor Author

uqix commented Jul 15, 2021

Then I guess spring.factories in influxdb-spring should not contain com.influxdb.spring.metrics.Influx2MetricsExportAutoConfiguration, or we'll get this:

java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: java.lang.IllegalStateException: Unable to read meta-data for class com.influxdb.spring.metrics.Influx2MetricsExportAutoConfiguration
Caused by: java.io.FileNotFoundException: class path resource [com/influxdb/spring/metrics/Influx2MetricsExportAutoConfiguration.class] cannot be opened because it does not exist

@bednar
Copy link
Contributor

bednar commented Jul 15, 2021

Then I guess spring.factories in influxdb-spring should not contain com.influxdb.spring.metrics.Influx2MetricsExportAutoConfiguration, or we'll get this:

Yes, you are right, we've missed this. I will prepare PR with fixed version of influxdb-spring.

Sorry for troubles.

@uHan2
Copy link

uHan2 commented Jul 16, 2021

Hi! By any chance, I'm having the same problem right now, so can you tell me when I can use the solved version?

i means solved influxdb-spring-3.0.0

@bednar bednar added this to the 3.1.0 milestone Jul 16, 2021
@bednar
Copy link
Contributor

bednar commented Jul 16, 2021

Hi @uHan2, @uqix,

the fixed version 3.0.1 is released: https://repo1.maven.org/maven2/com/influxdb/influxdb-client/.

Regards

@uHan2
Copy link

uHan2 commented Jul 16, 2021

@bednar Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants