当前位置:网站首页>Prometheus remote_ write InfluxDB,unable to parse authentication credentials,authorization failed

Prometheus remote_ write InfluxDB,unable to parse authentication credentials,authorization failed

2022-07-07 21:19:00 leboop-L

here Prometheus It is started in the following way :

systemctl start prometheus.service

Execute the following command , see Prometheus journal :

journalctl -u prometheus -f
 

error :unable to parse authentication credentials,authorization failed

see Prometheus The configuration file prometheus.yml, as follows :

remote_write:
  - url: "http://bigdata111:8086/api/v1/prom/write?db=combeye&u=combeye&p=#Wtt2&Me"

If you don't study it carefully , Unable to see the problem , It turned out , Because the password contains url Special characters for , For example, here # and &, You need to use code instead of ,# Corresponding code %23,$ Corresponding code %26, It is amended as follows :

remote_write:
  - url: "http://bigdata111:8086/api/v1/prom/write?db=combeye&u=combeye&p=%23Wtt2%26Me"

success !


 

原网站

版权声明
本文为[leboop-L]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071813290850.html