Duansg commented on issue #3560: URL: https://github.com/apache/hertzbeat/issues/3560#issuecomment-3052389000
> > > > [@huisunan](https://github.com/huisunan) Hi, did you add a Prometheus task?[@huisunan](https://github.com/huisunan) 您好,您是否添加了 Prometheus 任务? > > > > > > > > > 并没有添加成功,在填添加完prometheus的信息后,点击测试回直接返回测试连接失败。 > > > > > > Hi, I know what you mean. Your metric looks abnormal. Can you process this metric normally in the Prometheus UI?嗨,我知道你的意思。您的指标看起来异常。您可以在 Prometheus UI 中正常处理此指标吗? > > you can refer to the official Prometheus documentation.您可以参考 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="2000" height="800" src="https://private-user-images.githubusercontent.com/30598579/463959091-cfc18f4d-8877-4404-95fe-4e8a6e3295ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjI3NzIsIm5iZiI6MTc1MjA2MjQ3MiwicGF0aCI6Ii8zMDU5ODU3OS80NjM5NTkwOTEtY2ZjMThmNGQtODg3Ny00NDA0LTk1ZmUtNGU4YTZlMzI5NWVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEyMDExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyNzlmNjI5Nzk5ODdjNzcwOTgzYzUzN2MwMzEyODVjNmQ5MmZkZjY0YjNhNTBhMDQyZDJhYWQ2OTJhMWZjZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HKzem4xIOxYScE6cJ-4LoIxK1UbtTYM7rPSZtuPpV4o"> @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? -- 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
