我在他们的服务器上使用gitlab.我想通过像这样的API下载我最新的构建工件(通过gitlab-ci构建)
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/builds/8/artifacts"
我在哪里可以找到这个项目ID?或者这种使用API的方式不适用于托管的gitlab项目?
BW休伯特
我正在迁移到Spring Boot 2.0,我的Prometheus Metrics存在问题.
我知道MicroMeter是一种新的做事方式,它不像Prometheus libs那样清脆,但还可以.
我的问题是,如果我现在不想更改我的指标,我就无法升级到Spring Boot 2.0.我对吗?
我尝试了以下方法:
试验1号
io.micrometer:micrometer-registry-prometheus:1.0.2到我的应用程序(执行器已经在那里)application.properties以访问端点actuator/prometheus=>我Counters和Gauges过去被忽略了.好的,从技术角度来看,我理解这一点.
试验2
application.properties以访问端点actuator/prometheus=>现在我得到以下的重复
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.actuate.endpoint.AbstractEndpoint
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_161]
... 37 common frames omitted
Run Code Online (Sandbox Code Playgroud)
所以我的问题是:是否有"软迁移"方式有效?
spring spring-boot spring-boot-actuator prometheus micrometer
我们有 Prometheus 和 AlertManager 正在生产中,并且希望有一些关于警报何时发生以及警报何时消失的仪表板。
是否有一些关于这种“开箱即用”的指标 - 或者我是否必须实施某些措施来实现这一目标?像“MyAlertListener-Application”这样的东西,它本身提供了一个普罗米修斯端点。
prometheus ×2
api ×1
gitlab ×1
gitlab-ci ×1
micrometer ×1
monitoring ×1
spring ×1
spring-boot ×1