
# 使用指南
#### 如何使用devspore-probe
1. 引入Maven依赖，在项目的pom.xml中添加下面的依赖，version应使用最新版本。 
   ```
   <dependency>
   <groupId>com.huaweicloud.devspore</groupId>
   <artifactId>devspore-probe</artifactId>
   <version>latest</version>
   </dependency>
   ```
   
   
2. 项目配置文件application.yaml或者application.properties中加入devspore-probe配置项。 
   ![](https://support.huaweicloud.com/devg-astropro/public_sys-resources/notice_3.0-zh-cn.png)
   - 下文中配置项的格式为yaml文件，如果配置文件为properties格式，需自行修改格式。
   
   - 配置项的具体值含义参考[配置说明](https://support.huaweicloud.com/devg-astropro/astropro_06_0063.html)
    
   devspore-probe的配置样例：
   ```
   devspore:
       probe:
           metrics:
               tags:
                   component: demo-application
   ```
   
   
 
