在配置文件jhipster中启用prometheus无法启动

时间:2019-09-02 08:31:38

标签: jhipster

我正在跟踪该URL https://www.jhipster.tech/monitoring/,以在我的JHipster(v6.2.0)应用程序中启用监视。

我的配置看起来像这样

  metrics:
    prometheus:
      enabled: true
    logs: # Reports metrics in the logs
      enabled: false
      report-frequency: 60 # in seconds ```

当我启动应用程序时,它无法启动并显示以下错误

Binding to target [Bindable@5e37ff61 type = io.github.jhipster.config.JHipsterProperties, value = 'provided', annotations = array<Annotation>[@org.springframework.boot.context.properties.ConfigurationProperties(value=jhipster, prefix=jhipster, ignoreInvalidFields=false, ignoreUnknownFields=false)]] failed:

    Property: jhipster.metrics.prometheus.enabled
    Value: true
    Origin: class path resource [config/application-dev.yml]:129:16
    Reason: The elements [jhipster.metrics.prometheus.enabled] were left unbound.

Action:

Update your application's configuration 

我缺少任何jar或配置吗?

0 个答案:

没有答案