sofastack / sofa-lookout Goto Github PK
View Code? Open in Web Editor NEWSOFALookout is a light-weight monitoring and analysis tool
License: Apache License 2.0
SOFALookout is a light-weight monitoring and analysis tool
License: Apache License 2.0
由于现有环境一直是ES6.4供各服务使用,所以我用sofa lookout-server 1.6.0-release也用es6.4。
但是两个索引,lookout-search-metrics初始化了,lookout-active-metrics没有初始化。异常日志如下:
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'selfMetricsStarter': Unsatisfied dependency expressed through field 'exportChainManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'exportManager' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/starter/MetricPipelineConfiguration.class]: Unsatisfied dependency expressed through method 'exportManager' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExportChain' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.core.prototype.exporter.chain.ExportChain]: Factory method 'esMetricsExportChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:67)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.boot.GatewayBootstrap.main(GatewayBootstrap.java:45)
2019-10-11 17:24:4910.200.5.33419abfff ... 20 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'exportManager' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/starter/MetricPipelineConfiguration.class]: Unsatisfied dependency expressed through method 'exportManager' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExportChain' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.core.prototype.exporter.chain.ExportChain]: Factory method 'esMetricsExportChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)
2019-10-11 17:24:4910.200.5.33419abfff ... 37 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExportChain' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.core.prototype.exporter.chain.ExportChain]: Factory method 'esMetricsExportChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1463)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1427)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1318)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1205)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)
2019-10-11 17:24:4910.200.5.33419abfff ... 50 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.core.prototype.exporter.chain.ExportChain]: Factory method 'esMetricsExportChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
2019-10-11 17:24:4910.200.5.33419abfff ... 67 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932.esMetricsExporter()
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration.esMetricsExportChain(EsExporterConfiguration.java:54)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932.CGLIB$esMetricsExportChain$1()
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932$$FastClassBySpringCGLIB$$78efd180.invoke()
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932.esMetricsExportChain()
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-10-11 17:24:4910.200.5.33419abfff at java.lang.reflect.Method.invoke(Method.java:498)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
2019-10-11 17:24:4910.200.5.33419abfff ... 68 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
2019-10-11 17:24:4910.200.5.33419abfff ... 91 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.server.common.es.operation.ESOperator.initializeDatabase(ESOperator.java:81)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter.(ESMetricExporter.java:89)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration.esMetricsExporter(EsExporterConfiguration.java:49)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932.CGLIB$esMetricsExporter$0()
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932$$FastClassBySpringCGLIB$$78efd180.invoke()
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.gateway.metrics.exporter.es.spring.bean.config.EsExporterConfiguration$$EnhancerBySpringCGLIB$$d94b5932.esMetricsExporter()
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-10-11 17:24:4910.200.5.33419abfff at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-10-11 17:24:4910.200.5.33419abfff at java.lang.reflect.Method.invoke(Method.java:498)
2019-10-11 17:24:4910.200.5.33419abfff at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
2019-10-11 17:24:4910.200.5.33419abfff ... 92 more
2019-10-11 17:24:4910.200.5.33419abfffCaused by: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
2019-10-11 17:24:4910.200.5.33419abfff at com.google.common.base.Preconditions.checkState(Preconditions.java:444)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.server.common.es.operation.ESOperator.createIndex(ESOperator.java:90)
2019-10-11 17:24:4910.200.5.33419abfff at com.alipay.sofa.lookout.server.common.es.operation.ESOperator.initializeDatabase(ESOperator.java:74)
2019-10-11 17:24:4910.200.5.33419abfff ... 104 more(url)
目前采集到的指标还是有限的,一些常用的,例如TCP网络连接数等指标还是没有
如何统计度量指标累计计数?
比如说,度量指标【某个具体接口总的调用数目(rpc.provider.service.stats.total_count.count)】
想要统计一段时间内,比如最近半小时,各个接口的总调用次数
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):1.8uname -a
):linux来看了好多次server的代码有没有push,啥时候push啊?
Hi, In sofa-lookout-1.6.1/client/lookout-reg-server,there is a dependency org.apache.httpcomponents:httpclient:4.5.2 that calls the risk method.
The scope of this CVE affected version is [,4.5.13)
After further analysis, in this project, the main Api called is <org.apache.http.client.utils.URIUtils: org.apache.http.HttpHost extractHost(java.net.URI)>
Risk method repair link : GitHub
CVE Bug Invocation Path--
Path Length : 6
<org.apache.http.client.utils.URIUtils: org.apache.http.HttpHost extractHost(java.net.URI)>
at <org.apache.http.impl.client.CloseableHttpClient: org.apache.http.HttpHost determineTarget(org.apache.http.client.methods.HttpUriRequest)> (org.apache.http.impl.client.CloseableHttpClient.java:[92]) in /.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
at <org.apache.http.impl.client.CloseableHttpClient: java.lang.Object execute(org.apache.http.client.methods.HttpUriRequest,org.apache.http.client.ResponseHandler,org.apache.http.protocol.HttpContext)> (org.apache.http.impl.client.CloseableHttpClient.java:[163]) in /.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
at <org.apache.http.impl.client.CloseableHttpClient: java.lang.Object execute(org.apache.http.client.methods.HttpUriRequest,org.apache.http.client.ResponseHandler)> (org.apache.http.impl.client.CloseableHttpClient.java:[139]) in /.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
at <com.alipay.lookout.remote.report.support.http.DefaultHttpRequestProcessor: java.lang.Object sendRequest(org.apache.http.client.methods.HttpRequestBase,org.apache.http.client.ResponseHandler)> (com.alipay.lookout.remote.report.support.http.DefaultHttpRequestProcessor.java:[197]) in /detect/unzip/sofa-lookout-1.6.1/client/lookout-reg-server/target/classes
at <com.alipay.lookout.remote.report.support.http.DefaultHttpRequestProcessor: boolean sendPostRequest(org.apache.http.client.methods.HttpPost,java.util.Map)> (com.alipay.lookout.remote.report.support.http.DefaultHttpRequestProcessor.java:[148]) in /detect/unzip/sofa-lookout-1.6.1/client/lookout-reg-server/target/classes
Dependency tree--
[INFO] com.alipay.sofa.lookout:lookout-reg-server:jar:1.6.1
[INFO] +- com.alipay.sofa.lookout:lookout-core:jar:1.6.1:compile
[INFO] | +- com.alipay.sofa.lookout:lookout-common:jar:1.6.1:compile
[INFO] | | +- com.alipay.sofa.lookout:lookout-api:jar:1.6.1:compile
[INFO] | | \- com.alipay.sofa.common:sofa-common-tools:jar:1.0.12:compile
[INFO] | +- com.alibaba:fastjson:jar:1.2.49:compile
[INFO] | \- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | \- commons-codec:commons-codec:jar:1.9:compile
[INFO] +- commons-lang:commons-lang:jar:2.3:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.21:test
[INFO] | \- log4j:log4j:jar:1.2.17:test
[INFO] +- org.mockito:mockito-all:jar:1.10.19:test
[INFO] \- org.assertj:assertj-core:jar:2.9.1:test
Suggested solutions:
Update dependency version
Thank you very much.
java -version
):uname -a
):是否有计划支持将Metrics写入日志?这样可以方便复用ELK的技术栈。
[ERROR] Failed to execute goal on project lookout-common: Could not resolve dependencies for project com.alipay.sofa.lookout:lookout-common:jar:1.6.2-SNAPSHOT: Could not find artifact com.alipay.sofa.lookout:lookout-api:jar:1.6.1 in nexus (http://maven.aliyun.com/nexus/content/groups/public/) -> [Help 1]
java -version
):uname -a
):类似点评的CAT提供一个线上体验的地址,对于新手了解有个直观的映像
我们已经在使用micrometer了,只想通过sofa-lookout收集一些sofa-rpc相关的监控数据,然后通过我们已有的PushGateway把数据发送到prometheus。
我们希望sofa-lookout的PrometheusRegistry能提供类似于micrometer的PrometheusMeterRegietry的scrap功能,或者通过其他途径能实现类似功能;并且sofa-lookout不应该启动内置的http服务或监听任何端口,这会增加额外的配置和运维压力。
请告诉我是否有任何途径能实现上述功能。
java -version
): 13.0.1uname -a
): mac/centos7The system properties and environment should be report when they are updated.Shouldn't always report it circularly
后续版本能否开放配置DEFAULT_HTTP_EXPORTER_PORT这个端口到properties配置文件
当前1.6.1版本DEFAULT_HTTP_EXPORTER_PORT是写代码里常量,无法自定义DEFAULT_HTTP_EXPORTER_PORT这个端口,同一机器启动多个服务监控,会产生端口冲突
java -version
):1.8非常感谢大家对 SOFAStack 开源的关注和支持,这是我们前进最大的动力。
方式一:
请按如下参考格式回复本 Issue 进行登记:
* 公司/组织名称:蚂蚁金服
* 地点:**杭州
* 网址:http://www.antfin.com
* 使用组件及场景:全套金融级分布式中间件
* 联系方式:[email protected]
方式二:
您可以通过我们的「使用调研问卷」进行反馈。
我们会定期同步信息至「Awesome SOFA」的用户列表中。
再次感谢您的支持和反馈!
SOFAStack 团队
A clear and concise description of what the bug is.
Tag选择器的使用“=”筛选,不能实现全字匹配。
Tag选择器的使用“=”筛选,能实现全字匹配。
比如jvm.threads.daemon{app="foo"},这样查询只能够查询到foo应用的时序数据
比如jvm.threads.daemon{app="foo"},这样查询能够查询到foo和gateway等多个应用的时序数据
java -version
): 1.8uname -a
):windows10describe your question clearly
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):old one may be null pointer
2018-11-27 16:05:10.588 [lookout-poller-2-HIGH-2000] WARN com.alipay.lookout.remote.report.SchedulerPoller - failed to send metrics
java.lang.NullPointerException: null
at com.alipay.lookout.remote.report.support.http.ReportDecider.refreshAddressCache(ReportDecider.java:102)
at com.alipay.lookout.remote.report.support.http.ReportDecider.getAvailableAddress(ReportDecider.java:69)
java -version
):uname -a
):Could not create a runnable jar according to README manual
服务器端代码编译:
- all-in-one模式:
./boot/all-ine-one-bootstrap/build.sh
打包结果在boot/all-in-one-bootstrap/target/xxx-executable-ark.jar
metrics-server:mvn clean install -DskipTests -am -pl boot/metrics-server-bootstrap
gateway:mvn clean install -DskipTests -am -pl boot/gateway/bootstrap
Maybe a spring-boot-maven plugin should be declare to project's build configuration.
Generate a runnable jar as artifact
> java -jar boot/metrics-server-bootstrap/target/lookout-metrics-server-bootstrap-1.6.0.jar
boot/metrics-server-bootstrap/target/lookout-metrics-server-bootstrap-1.6.0.jar中没有主清单属性
Build as manual
java -version
): 1.8uname -a
): none在高并发场景,每个采集周期发生roll的阶段,对所有已经持有方法pushSafe的变量set的线程,都会基于老条件加入到registry中,这部分会占用registry空间(只到下个采集周期时才情况)
使用lookout接入sofarpc项目找不到下面对应的指标
rpc.provider.service.stats.fail_count.count | app,service,method,protocol,caller_app | 某个具体接口总的被调用失败次数 |
---|---|---|
rpc.provider.service.stats.fail_count.rate | app,service,method,protocol,caller_app | 某个具体接口每秒失败次数 |
rpc.provider.service.stats.fail_time.elapPerExec | app,service,method,protocol,caller_app | 某个具体接口每次失败失败 |
rpc.provider.service.stats.fail_time.max | app,service,method,protocol,caller_app | 某个具体接口失败次数最大值 |
rpc.provider.service.stats.fail_time.totalTime | app,service,method,protocol,caller_app | 某个具体接口失败总时间 |
rpc.provider.service.stats.total_count.count | app,service,method,protocol,caller_app | 某个具体接口总的调用次数 |
rpc.provider.service.stats.total_count.rate | app,service,method,protocol,caller_app | 某个具体接口每秒调用次数 |
rpc.provider.service.stats.total_time.elapPerExec | app,service,method,protocol,caller_app | 某个具体接口每次调用时间 |
rpc.provider.service.stats.total_time.max | app,service,method,protocol,caller_app | 某个具体接口总时间最大值 |
rpc.provider.service.stats.total_time.totalTime | app,service,method,protocol,caller_app | 某个具体接口总时间 |
在prometheus中只有这几个指标
是文档没更新还是要启动加什么配置?
describe your question clearly
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):在ElasticSearch 7.3 版本上面会出现以下问题
Lookout 会出现正常的数据
lookout 界面显示
java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to com.google.gson.JsonPrimitive rawQuery:rpc.consumer.service.stats.total_count.count{app="stock_mng"} realQuery:rpc.consumer.service.stats.total_count.count{app="stock_mng"}
如果此时关掉lookout重启,就会启动失败.异常如下:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esMetricsExporter' defined in class path resource [com/alipay/sofa/lookout/gateway/metrics/exporter/es/spring/bean/config/EsExporterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.sofa.lookout.gateway.metrics.exporter.es.ESMetricExporter]: Factory method 'esMetricsExporter' threw exception; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: this alias is conflicted with an index name:lookout-active-metrics
替换ES5.6为ES7.3
就可以出现以上情况.
java -version
):uname -a
):在搭建lookout-server服务时连接的ES需要用户名和密码,如何配置?
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):A Noop MetricId will cause metric type cast err.
ignore noopId, do not register it .
java -version
): 1.8uname -a
): -The code is com.alipay.lookout.core.common.MeasurementUtil#printValue
and the default simplify is
JSON.toJSONString(value)
. By default, we can improve it with JSON.toJSONString(value,com.alibaba.fastjson.serializer.SerializerFeature#DisableCircularReferenceDetect)
.Otherwise , the result may be have $ref
"status": {
"$ref": "$.detailMessage[0].component.status"
}
And if we disable circular reference,some circular danger may happen,we can discuss it.
when tag instance( LookoutConstants.HIGH_PRIORITY_TAG
) is used.
p.name().equals(value)
use equalsIgnoreCase method instead.
"HIGH" priority equals "high"
not equal
"count": 2,
"fifteenMinuteRate": 0.17996489624183667,
"fiveMinuteRate": 0.14571471450227858,
"meanRate": 0.019242990405683374,
"oneMinuteRate": 0.04105793151598188,
"snapshot.75thPercentile": 0,
"snapshot.95thPercentile": 0,
"snapshot.98thPercentile": 0,
"snapshot.999thPercentile": 0,
"snapshot.99thPercentile": 0,
"snapshot.max": 0,
"snapshot.mean": 0,
"snapshot.median": 0,
"snapshot.min": 0,
"snapshot.stdDev": 0,
Provide some chinese introduction and how to caculate this.
describe the advice or solution you'd like
Provide some chinese introduction and how to caculate this.
java -version
):uname -a
):We want to filter metrics dynamically when reporting to the server side. So the reporter asks the whitelist configuration on the server side every once in a while.
结合Grafana的时候,有推荐的Doshboard吗
普通java项目如何配置promethues
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):MicroMeter现在也是SpringBoot Actuator使用的标准Metrics工具,不知道Lookout
是否会对其做兼容处理呢
add linux memory metrics :
In order to calculate P95/99 ,lookout client provides a bucket api, and send buckets metrics to the server.
关于内置的metrics有没有考虑支持更多的公共组件,比如数据库连接池、缓存、httpclient等?
既有的方案是支持 push 方式主动上报metircs。
新的方式支持 pull 模式。
服务端持久化方案是什么呢?
TSDB ?
sofalookout本身服务端的日志如何按日期生成吗?现在只有一个日志文件(/data/lookout/logs/lookout-std.out),已经上GB大小了,需要按日期生成。
describe your use scenes (why need this feature)
建议通过配置文件进行设置。
java -version
):1.8uname -a
):CentOS7.4什么时候开源 Trace 和 Event 相关的服务能力?
if a metric observer bean is defined ,but it does not work!
lookout-sofa-boot-start fail to add metric observers to lookoutRegistry.
the metric observer bean works;
fail to add metric observer
use lookout-sofa-boot-start ,and define a metricObserver bean. the observer does not work.
java -version
): 1.8.0_25uname -a
): Darwin 17.5.0provide a quickstart docker image
noen
none
java -version
):uname -a
):add more client api in other language such as python, cpp, go
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):lookout-ext-jvm 上报的jvm相关的metric的tag只有 instance 和 job, 但是没有spring boot 应用的app, 希望能把这个带过来。 因为在实际业务生产环境中,使用app来对统计数据做聚合和统计都是很有必要的。
java -version
): 1.8uname -a
):The exception message is not clear when spring.application.name is absent in application.properties
The exception message should clearly reflect that spring.application.name is absent in application.properties
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=50618 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:/Users/khotyn/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.2757.3/IntelliJ IDEA 2018.2 EAP.app/Contents/lib/idea_rt.jar=50619:/Users/khotyn/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.2757.3/IntelliJ IDEA 2018.2 EAP.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/tools.jar:/Users/khotyn/Desktop/demo/target/classes:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot-starter/1.4.2.RELEASE/spring-boot-starter-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot/1.4.2.RELEASE/spring-boot-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/spring-context/4.3.4.RELEASE/spring-context-4.3.4.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/spring-aop/4.3.4.RELEASE/spring-aop-4.3.4.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/spring-beans/4.3.4.RELEASE/spring-beans-4.3.4.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/spring-expression/4.3.4.RELEASE/spring-expression-4.3.4.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.4.2.RELEASE/spring-boot-autoconfigure-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.4.2.RELEASE/spring-boot-starter-logging-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar:/Users/khotyn/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar:/Users/khotyn/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar:/Users/khotyn/.m2/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar:/Users/khotyn/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar:/Users/khotyn/.m2/repository/org/springframework/spring-core/4.3.4.RELEASE/spring-core-4.3.4.RELEASE.jar:/Users/khotyn/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-sofa-boot-starter/1.4.0/lookout-sofa-boot-starter-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-client/1.4.0/lookout-client-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-ext-jvm/1.4.0/lookout-ext-jvm-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-ext-os/1.4.0/lookout-ext-os-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-common/1.4.0/lookout-common-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-api/1.4.0/lookout-api-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/common/sofa-common-tools/1.0.12/sofa-common-tools-1.0.12.jar:/Users/khotyn/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-reg-server/1.4.0/lookout-reg-server-1.4.0.jar:/Users/khotyn/.m2/repository/com/alipay/sofa/lookout/lookout-core/1.4.0/lookout-core-1.4.0.jar:/Users/khotyn/.m2/repository/com/alibaba/fastjson/1.2.47/fastjson-1.2.47.jar:/Users/khotyn/.m2/repository/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/Users/khotyn/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/Users/khotyn/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/khotyn/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar:/Users/khotyn/.m2/repository/org/xerial/snappy/snappy-java/1.1.2.6/snappy-java-1.1.2.6.jar:/Users/khotyn/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/Users/khotyn/.m2/repository/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar:/Users/khotyn/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/Users/khotyn/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar:/Users/khotyn/.m2/repository/io/dropwizard/metrics/metrics-core/3.1.2/metrics-core-3.1.2.jar:/Users/khotyn/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/1.4.2.RELEASE/spring-boot-starter-actuator-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/org/springframework/boot/spring-boot-actuator/1.4.2.RELEASE/spring-boot-actuator-1.4.2.RELEASE.jar:/Users/khotyn/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.4/jackson-databind-2.8.4.jar:/Users/khotyn/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.4/jackson-annotations-2.8.4.jar:/Users/khotyn/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.4/jackson-core-2.8.4.jar com.example.demo.DemoApplication
objc[54348]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e6a84c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10e7344e0). One of the two will be used. Which one is undefined.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.2.RELEASE)
2018-06-05 12:09:57.962 INFO 54348 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on MacBook-Pro-4.local with PID 54348 (/Users/khotyn/Desktop/demo/target/classes started by khotyn in /Users/khotyn/Desktop/demo)
2018-06-05 12:09:57.964 INFO 54348 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default
2018-06-05 12:09:57.994 INFO 54348 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5dd6264: startup date [Tue Jun 05 12:09:57 CST 2018]; root of context hierarchy
Sofa-Middleware-Log SLF4J : Logger Space:{com.alipay.lookout} init ok.
2018-06-05 12:09:58.592 INFO 54348 --- [ main] com.alipay.sofa.common.log : Sofa-Middleware-Log SLF4J : Logger Space:{com.alipay.lookout} init ok.
Sofa-Middleware-Log SLF4J : Actual binding is of type [ com.alipay.lookout Logback ]
2018-06-05 12:09:58.593 INFO 54348 --- [ main] com.alipay.sofa.common.log : Sofa-Middleware-Log SLF4J : Actual binding is of type [ com.alipay.lookout Logback ]
2018-06-05 12:09:58.671 WARN 54348 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoApplication': Unsatisfied dependency expressed through field 'registry'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'registry' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Unsatisfied dependency expressed through method 'registry' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookoutConfig' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
2018-06-05 12:09:58.679 INFO 54348 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-06-05 12:09:58.690 ERROR 54348 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoApplication': Unsatisfied dependency expressed through field 'registry'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'registry' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Unsatisfied dependency expressed through method 'registry' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookoutConfig' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:592) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:370) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:754) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at com.example.demo.DemoApplication.main(DemoApplication.java:27) [classes/:na]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'registry' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Unsatisfied dependency expressed through method 'registry' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookoutConfig' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1131) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1059) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:589) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 18 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookoutConfig' defined in class path resource [com/alipay/lookout/starter/autoConfiguration/LookoutAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1131) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1059) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 31 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alipay.lookout.core.config.LookoutConfig]: Factory method 'lookoutConfig' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 44 common frames omitted
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.util.Assert.notNull(Assert.java:115) ~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.util.Assert.notNull(Assert.java:126) ~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at com.alipay.lookout.starter.autoConfiguration.LookoutAutoConfiguration.lookoutConfig(LookoutAutoConfiguration.java:72) ~[lookout-sofa-boot-starter-1.4.0.jar:na]
at com.alipay.lookout.starter.autoConfiguration.LookoutAutoConfiguration$$EnhancerBySpringCGLIB$$818d1f65.CGLIB$lookoutConfig$0(<generated>) ~[lookout-sofa-boot-starter-1.4.0.jar:na]
at com.alipay.lookout.starter.autoConfiguration.LookoutAutoConfiguration$$EnhancerBySpringCGLIB$$818d1f65$$FastClassBySpringCGLIB$$4a2bfc9e.invoke(<generated>) ~[lookout-sofa-boot-starter-1.4.0.jar:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at com.alipay.lookout.starter.autoConfiguration.LookoutAutoConfiguration$$EnhancerBySpringCGLIB$$818d1f65.lookoutConfig(<generated>) ~[lookout-sofa-boot-starter-1.4.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 45 common frames omitted
Process finished with exit code 1
Create a SOFABoot project and add SOFALookout dependencies, do not specify spring.application.name in application.properties.
1.4.0
java -version
)java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
uname -a
)Darwin MacBook-Pro-4.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
3.2.5
IDE version
Intellij IDEA Ultimate 2018.2 EAP
是否考虑兼容spring boot2.X版本的actuator?现在的lookout-boot只能支持1.X版本,使用2.X版本的boot无法读取lookout中的Metrics监控项,追了下源码,发现2.X版本的actuator修改了很多类,导致lookout-boot无法兼容
describe your question clearly
describe your use scenes (why need this feature)
describe the advice or solution you'd like
java -version
):uname -a
):Lookout metrics storage extension supports HBase adaption.
java -version
):uname -a
):add server codes to the project
ESOperator's rollover operation does not take effect on es6
ESOperator rollover request fail.
http status 200 ,not 400.
Currently app name tag is not set then report jvm metrics to prometheus, which should have.
In the README or other documentation, we have Lookout, LOOKOUT, SOFA-LOOKOUT etc.
When you refer to SOFALookout, use SOFALookout, do not use Lookout, LOOKOUT or SOFA-LOOKOUT.
The represent of SOFALookout is inconsistent.
lookout server needs a metadata to analyze a metric data.
Spring Boot Actuator Default implementation is Dropwizard
. But we want to use Lookout as default Actuator implementation
Through enhance lookout-sofa-boot-starter
and AutoConfig before MetricsDropwizardAutoConfiguration
we can use CounterService
and GaugeService
interface and SOFALookout implementation by default.
Keep updating...
task name | task description | 中文说明 | developer |
---|---|---|---|
--- | --- | MatchType (可以支持的)在既有 ES Mapping结构上的支持 | --- |
--- | --- | query paramer开关,查询 REST 响应结果支持携带 ES 原始查询信息(ValueData.debugInfo ) | --- |
--- | --- | ES 7 写入适配升级 | --- |
use hbase as a metrics storage | --- | 共建hbase的存储库 | SteNicholas |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.