如何使用 Maven 在 Eclipse 项目中为 Java 配置 Prometheus Client Library
How to configure Prometheus Client Library for Java in Eclipse project with Maven
我想将 Prometheus Client Library for Java or Scala 作为 Eclipse 项目的一部分与 Java 一起使用,并使用 Maven 配置库。
它的实现包含 pom.xml
个文件,因此应该可以使用 Maven 进行配置。不过,我还没有找到必须指定的组 ID、工件 ID 和版本。到目前为止,尝试我在上述 pom.xml
文件中找到的值无效。
那么如何在我的 Eclipse 项目中将 Java(或 Scala)的 Prometheus 客户端库配置为依赖项?
the docs 中有示例 pom 用法。
我想将 Prometheus Client Library for Java or Scala 作为 Eclipse 项目的一部分与 Java 一起使用,并使用 Maven 配置库。
它的实现包含 pom.xml
个文件,因此应该可以使用 Maven 进行配置。不过,我还没有找到必须指定的组 ID、工件 ID 和版本。到目前为止,尝试我在上述 pom.xml
文件中找到的值无效。
那么如何在我的 Eclipse 项目中将 Java(或 Scala)的 Prometheus 客户端库配置为依赖项?
the docs 中有示例 pom 用法。