public Configuration class or starter prometheus config
See original GitHub issueshould public below two class, then Configuration by self
- PrometheusMetricsConfiguration
- PrometheusEndpointConfiguration
@Configuration
@Import({ PrometheusMetricsConfiguration.class, PrometheusEndpointConfiguration.class })
public class PrometheusConfig {
}
or starter prometheus config,Prometheus client endpoint auto starter Enable* style is not better than starter
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Configuration - Prometheus.io
DigitalOcean SD configurations allow retrieving scrape targets from DigitalOcean's Droplets API. This service discovery uses the public IPv4 address by ...
Read more >Spring Metrics
Enable metrics in your Spring Boot application with @EnablePrometheusMetrics : @SpringBootApplication @EnablePrometheusMetrics public class MyApp ...
Read more >Prometheus config doesn't work with Spring boot 2.3.0
First go to the https://mvnrepository.com and search for the Spring Boot Starter Actuator and click on the "Spring Boot Starter Actuator" result ...
Read more >Spring Boot app metrics - with Prometheus and Micrometer
How to configure and publish metrics from your application, and define ... Next, we need to start Prometheus and feed this config to...
Read more >Prometheus Monitoring Using Spring Boot | by Kalyan - Medium
management.application.name= Spring Boot-Prometheus-Starter Example management.server.port=9099 ... public class MicrometerConfig {
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So you are just requesting that the 2 classes be made
public
so you can leverage Spring autoconfiguration instead of requiring the@EnablePrometheus
line of code.I agree with that approach.
Where would you be adding the
META-INF/spring.factories
? Would that be in your own code? (I’m not familiar withprovides
)Yes, public 2 classes for make auto-configuration by self
Here are some auto-configuration related resources
creating your own auto-configuration
spring-boot-custom-starter example