Code Monkey home page Code Monkey logo

Comments (6)

lynxcat avatar lynxcat commented on May 28, 2024

我测试了一下,应该是你配置了auto-registry:true,这时候nid是必须的。因为需要注册到Nightingale中,如果不配置auto-registry,nid不是必须的

from micrometer-registry-nightingale.

shook2012 avatar shook2012 commented on May 28, 2024

十分感谢你的耐心回复~

** 发现另有两个小问题**

1.auto-registry属性没有配置默认值,因此,必须配置true或false,是否考虑给个你比较推荐的默认值。

2.nightingale 版本为 V3.7.1,metrics上报时,返回的值是: {"dat":"ok","err":""}` ,因此会打印如下error log

NightingaleMeterRegistry.lambda$publish$3(99): failed to send metrics to nightingale: {"dat":"ok","err":""}

from micrometer-registry-nightingale.

lynxcat avatar lynxcat commented on May 28, 2024

感谢反馈
auto-registry默认值这里确实应该给个默认值的,
nightingale版本更新后返回值这个倒是没留意,之前为了省事直接对比了字符串,这两个问题晚上我修复一下

from micrometer-registry-nightingale.

shook2012 avatar shook2012 commented on May 28, 2024

from micrometer-registry-nightingale.

shook2012 avatar shook2012 commented on May 28, 2024

还发现依赖方面感觉是存在些问题的,spring boot使用的是2.3.5.RELEASE,但spring-boot-starter-json,是用的2.2.13.RELEASE的版本,应该是可以统一升至相同的版本的。

from micrometer-registry-nightingale.

lynxcat avatar lynxcat commented on May 28, 2024

这个是我本地开发环境导致的,当初开发主包的时候用的2.3.5。后来开发starter的时候改成了2.2.13。不过这个不影响的最终取决于你引入的starter-web的�版本

from micrometer-registry-nightingale.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.