当前位置:网站首页>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"
成功!
边栏推荐
- [solution] package 'XXXX' is not in goroot
- MSE API学习
- PHP method of obtaining image information
- 关于cv2.dnn.readNetFromONNX(path)就报ERROR during processing node with 3 inputs and 1 outputs的解决过程【独家发布】
- Force buckle 643 Subarray maximum average I
- CIS芯片测试到底怎么测?
- Force buckle 912 Sort array
- vulnhub之tre1
- Get webkitformboundary post login
- Force buckle 1037 Effective boomerang
猜你喜欢
力扣 2319. 判断矩阵是否是一个 X 矩阵
多个线程之间如何协同
Splicing and splitting of integer ints
使用高斯Redis实现二级索引
国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
使用高斯Redis实现二级索引
Data island is the first danger encountered by enterprises in their digital transformation
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
Cloud component development and upgrading
随机推荐
How to test CIS chip?
Implement secondary index with Gaussian redis
Simulate the implementation of string class
Graduation season | regretful and lucky graduation season
Force buckle 1961 Check whether the string is an array prefix
有用的win11小技巧
【Auto.js】自动化脚本
Some important knowledge of MySQL
CSDN语法说明
JVM GC垃圾回收简述
JVM 类加载机制
841. String hash
831. KMP string
Opencv learning notes high dynamic range (HDR) imaging
LeetCode力扣(剑指offer 36-39)36. 二叉搜索树与双向链表37. 序列化二叉树38. 字符串的排列39. 数组中出现次数超过一半的数字
TS quick start - Generic
School 1 of vulnhub
Detailed explanation of Flink parallelism and slot
With st7008, the Bluetooth test is completely grasped
一键部署Redis任意版本