huisunan commented on issue #3560: URL: https://github.com/apache/hertzbeat/issues/3560#issuecomment-3052627448
> > > > > [@huisunan](https://github.com/huisunan) Hi, did you add a Prometheus task?[@huisunan](https://github.com/huisunan) 您好,您是否添加了 Prometheus 任务?[@huisunan](https://github.com/huisunan)Hi,你是不是加了普罗米修斯任务?[@huisunan](https://github.com/huisunan) 您好,您是否添加了普罗米修斯任务? > > > > > > > > > > > > 并没有添加成功,在填添加完prometheus的信息后,点击测试回直接返回测试连接失败。 > > > > > > > > > Hi, I know what you mean. Your metric looks abnormal. Can you process this metric normally in the Prometheus UI?嗨,我知道你的意思。您的指标看起来异常。您可以在 Prometheus UI 中正常处理此指标吗?嗨,我知道你的意思。你的指标不正常。你能在 Prometheus UI 中正常处理这个指标吗?嗨,我知道你的意思。您的指标看起来异常。你可以正常处理这个指标吗? > > > you can refer to the official Prometheus documentation.您可以参考 Prometheus 官方文档。 您可以参考 Prometheus 官方文档。您可以参考 Prometheus 官方文档。 > > > ``` > > > label_value can be any sequence of UTF-8 characters, but the backslash (\), double-quote ("), and line feed (\n) characters have to be escaped as \\, \", and \n, respectively. > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I don't know how you collected this data, so I need to confirm that this part of the data is correct.我不知道你是怎么收集这些数据的,所以我需要确认这部分数据是正确的。我不知道你是怎么收集这些数据的,所以我需要确认这部分数据是正确的。 > > > > > > 是这个意思吗,我在Prometheus UI中可以查询到这个指标,和我提供的数据可能不太一样,就是path中的那个值会影响解析 > > <img alt="Image" width="54.47916793823242" height="21" src="https://private-user-images.githubusercontent.com/30598579/463959091-cfc18f4d-8877-4404-95fe-4e8a6e3295ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjI3NzIsIm5iZiI6MTc1MjA2MjQ3MiwicGF0aCI6Ii8zMDU5ODU3OS80NjM5NTkwOTEtY2ZjMThmNGQtODg3Ny00NDA0LTk1ZmUtNGU4YTZlMzI5NWVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEyMDExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyNzlmNjI5Nzk5ODdjNzcwOTgzYzUzN2MwMzEyODVjNmQ5MmZkZjY0YjNhNTBhMDQyZDJhYWQ2OTJhMWZjZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HKzem4xIOxYScE6cJ-4LoIxK1UbtTYM7rPSZtuPpV4o"> > > [@huisunan](https://github.com/huisunan) Hi, I know that the path affects parsing. The reason is as mentioned above: the Prometheus text format requires that \ in tag values be written as \. Please check your data source. It seems that the data you collected is incorrect. According to logic, this should be automatically escaped. What collection method or exporter are you using? 嗨,我知道路径会影响解析。原因如上所述:Prometheus 文本格式要求将\ in 标记值写成\。请检查您的数据来源。你收集的数据似乎不正确。按照逻辑,这应该是自动转义的。您使用什么样的收款方式或出口商? 我使用的是 spring boot 然后引入了下面的依赖 ``` <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus-simpleclient</artifactId> <version>1.13.10</version> </dependency> ``` 我看了一下代码实现部分,并没有按照 Prometheus 的文档要求来采集 <img width="1005" height="1181" alt="Image" src="https://github.com/user-attachments/assets/8ae4c8a8-9cd2-4669-81ca-fc8c8bc49f78" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org
