question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

public Configuration class or starter prometheus config

See original GitHub issue

should public below two class, then Configuration by self

  1. PrometheusMetricsConfiguration
  2. 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
checkettscommented, Jul 27, 2017

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 with provides)

0reactions
poppop0911commented, Jul 29, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found