当前位置:网站首页>prometheus-federation-tls加密
prometheus-federation-tls加密
2022-07-30 05:49:00 【大新新大浩浩】
prometheus-federation-tls加密
前言
记录prometheus-federation-tls可靠的联邦加密传输模式。
一、federation为什么要使用tls加密?
单纯的federation只是满足了功能的使用,却没有考虑到安全性的建立,只使用basic_auth在内网环境上还好,但是放在公网上安全级别还是不足,所以使用tls加密,提高安全等级。
二、配置步骤
2.1 启动第二级的prometheus
参考系列文章中的《prometheus-basic_auth加密》、《prometheus-tls加密》,将二级prometheus设置开启tls加密
2.2 启动第一级的prometheus
新增二级prometheus相关配置
- job_name: "prometheus-federate-xxxxxx-xxxxx"
scrape_interval: 10s
scheme: https
tls_config:
ca_file: prom-test.crt #二级prometheus的crt文件,默认路径/etc/prometheus
insecure_skip_verify: true # 跳过不安全认证
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
- '{job="prometheus"}'
- '{__name__=~"job.*"}'
- '{__name__=~"node.*"}'
static_configs:
- targets:
- 'xxx.xx.xx.x:9090'
使用docker容器启动服务时,需要将prom-test.crt文件映射到容器内
-v /xxx/xxx/prom-test.crt:/etc/prometheus/prom-test.crt
三、检查结果
检查一级prometheus的targets信息,查看是否收集成功

收集成功,配置OK
总结
边栏推荐
- 藏不住了,我要揭露云原生的那些不好
- Unity 渲染流水线
- 从 Vertex 到 Subgraph 再到 PIE: 并行图计算编程模型概览
- 图扑数字孪生北京故宫,推进旅游业元宇宙进程
- com.alibaba.datax.common.exception.DataXException: Code:[ESWriter-03]
- Event Delivery and Responder Chains
- flask项目快速搭建部署gunicorn+supervisor
- Build an intelligent network security management and control system for digital government
- 阿里京东“喜提”国电投,顶流互联网和能源大厂为何合作?
- Unity Shader 标准光照模型
猜你喜欢

Jenkins一些常见问题

Biotinyl Cystamine_CAS:128915-82-2_生物素半胱胺

远程连接服务器的MySql

用 GraphScope 像 NetworkX 一样做图分析

Network Protocol 01 - Basic Concepts

Graph Computing 101: Types, Languages, and Systems of Graph Computing

Devops基本概念和原理

libgrape-lite on GPUs: GPU helps accelerate graph analysis tasks

STM32F103连接L9110S电机驱动控制小水泵

PC DBCO-PEG3-Biotin|PC-生物素-PEG3-DBCO可用于使用无铜点击化学
随机推荐
About memcache kernel, so one of the most popular
SQL并列排序问题
How to save modelsim simulation data as a file
测试开发工程师成长日记017 - bug的生命周期
Devops基本概念和原理
Build an intelligent network security management and control system for digital government
一种新的DNA生物素系统Biotin LC hydrazide|CAS:109276-34-8|(+)-生物素酰胺基己酸肼
Unity Shader 标准光照模型
GNNLab:基于空间共享思想设计的新型 GNN 系统
THREEJS导入外部OBJ+MTL后内存优化
Ingress:从静态图分析到动态图分析
从安装到编译: 10分钟教你在本地使用和开发GraphScope
Vineyard: An open source distributed in-memory data management framework
I can't hide it, I want to expose the bad things about cloud native
MongoDB-介绍,数据类型,基本语句
npm安装nodejs环境配置
爬楼梯C语言
libgrape-lite: 提供 GraphScope 的图分析能力
Alamofire source code analysis - POST request
单向链表的操作(带头结点)