-
Notifications
You must be signed in to change notification settings - Fork 912
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
PrometheusMetricsProvider is invalid #4154
Comments
image: apache/bookkeeper:4.16.2 |
The default configuration declared on the bookkeeper.apache.org website has been annotated and is invalid. You need to change the configuration |
public Class<? extends StatsProvider> getStatsProviderClass()
throws ConfigurationException {
return ReflectionUtils.getClass(this, STATS_PROVIDER_CLASS,
NullStatsProvider.class, StatsProvider.class,
DEFAULT_LOADER);
} public static <T> Class<? extends T> getClass(Configuration conf,
String name, Class<? extends T> defaultValue,
Class<T> xface, ClassLoader classLoader)
throws ConfigurationException @SuppressFBWarnings("EI_EXPOSE_REP2")
public class NullStatsProvider implements StatsProvider {
final StatsLogger nullStatsLogger = new NullStatsLogger();
@Override
public void start(Configuration conf) {
// nop
}
@Override
public void stop() {
// nop
}
@Override
public StatsLogger getStatsLogger(String scope) {
return nullStatsLogger;
}
} |
|
|
Thank you very much. I can now obtain the metrics information. |
https://bookkeeper.apache.org/docs/reference/config/#statistics
The document indicates that PrometheusMetricsProvider is enabled by default. But it didn't start listening to port 8000.
I also tried to add PrometheusMetricsProvider configuration.
conf
log
The text was updated successfully, but these errors were encountered: