当前位置:网站首页>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 18:13:00 【leboop-L】
这里Prometheus是通过如下方式启动的:
systemctl start prometheus.service
执行如下命令,查看Prometheus日志:
journalctl -u prometheus -f
错误:unable to parse authentication credentials,authorization failed
查看Prometheus配置文件prometheus.yml,如下:
remote_write:
- url: "http://bigdata111:8086/api/v1/prom/write?db=combeye&u=combeye&p=#Wtt2&Me"
如果不仔细研究,无法看出问题,后来发现,是因为密码中包含了url的特殊字符,例如这里#和&,需要使用编码代替,#对应编码%23,$对应编码%26,修改为如下:
remote_write:
- url: "http://bigdata111:8086/api/v1/prom/write?db=combeye&u=combeye&p=%23Wtt2%26Me"
成功!
边栏推荐
- CSDN语法说明
- 力扣 599. 两个列表的最小索引总和
- pom.xml 配置文件标签作用简述
- Kubernetes -- detailed usage of kubectl command line tool
- 毕业季|遗憾而又幸运的毕业季
- Force buckle 88 Merge two ordered arrays
- sql 常用优化
- Force buckle 912 Sort array
- 国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
- LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
猜你喜欢
Cloud 组件发展升级
国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
一. 基础概念
School 1 of vulnhub
Opencv learning notes high dynamic range (HDR) imaging
有了ST7008, 蓝牙测试完全拿捏住了
How to cooperate among multiple threads
mock.js从对象数组中任选数据返回一个数组
写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
随机推荐
【STL】vector
CSDN语法说明
国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
力扣 1037.有效的回旋镖
PHP method of obtaining image information
使用高斯Redis实现二级索引
有用的win11小技巧
POJ 1742 coins (monotone queue solution) [suggestions collection]
毕业季|遗憾而又幸运的毕业季
【解决】package ‘xxxx‘ is not in GOROOT
Force buckle 88 Merge two ordered arrays
Open source heavy ware! Chapter 9 the open source project of ylarn causal learning of Yunji datacanvas company will be released soon!
Some arrangements about oneself
Machine learning notes - explore object detection datasets using streamlit
JVM 类加载机制
力扣 88.合并两个有序数组
Creation of kubernetes mysql8
When easygbs cascades, how to solve the streaming failure and screen jam caused by the restart of the superior platform?
Splicing and splitting of integer ints
Force buckle 1790 Can two strings be equal by performing string exchange only once