使用thanos管理Prometheus持久化数据
发布时间:2020-12-14 15:15:41 所属栏目:百科 来源:网络整理
导读:关于thanos的介绍可以参考这篇官方博客的翻译文档,本文不作部署操作介绍。下图是thanos的官方架构图,主要有5个组件: Query:可以近似看作是Prometheus的实现,用于采集其他组件的数据,如sidecar和store gateway。Query的UI与Prometheus基本相同。 Store?
关于thanos的介绍可以参考这篇官方博客的翻译文档,本文不作部署操作介绍。下图是thanos的官方架构图,主要有5个组件:
通常thanos管理多集群时,除Sidecar组件需要在每个集群内部署,其余组件仅部署一份,用于处理多个集群的数据。需要注意的是,thanos的StoreAPI采用的是gRPC协议,只能走四层通信,像在openshift 3.11版本下无法通过router(ingress)暴露给集群外部的Query等组件。规避办法为采用nodePort方式暴露,但通常nodePort并不是一个很好的方式,因为它占用了主机的端口。 从使用上看,thanos使用上最主要的作用就是实现了数据的持久化以及历史数据的提取,其实现的StoreAPI也可以作为可移植的功能。 TIPS:
type: ALIYUNOSS config: endpoint: "" bucket: access_key_id: access_key_secret: ""
bucket verify [<flags>] Verify all blocks in the bucket against specified issues bucket ls [<flags>] List all blocks the bucket bucket inspect [<flags>] Inspect all blocks in the bucket in detailed,table-like way
version: '3.1' volumes: grafana_data: {} minio_data: {} store_data: {} compactor_data: {} services: thanos-querier: image: ${thanos-image} extra_hosts: TIPS:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |