Cortex:为 Prometheus 提供水平可扩展、高可用、多租户、长期存储
Cortex 为 Prometheus 提供水平可扩展、高可用、多租户、长期存储。
水平可扩展。Cortex可以在集群中的多台机器上运行,超过单台机器的吞吐量和存储量。这使您能够将多个Prometheus服务器的指标发送到一个Cortex集群,并在一个地方运行所有数据的 "全球聚合 "查询。
- 高度的可用性。当在集群中运行时,Cortex 可以在机器之间复制数据。这使您可以在机器故障时幸存下来,而不会在您的图表中出现空白。
- 多租户:Cortex 可以隔离数据和查询。Cortex 可以将多个不同的独立Prometheus 源的数据和查询隔离在一个集群中,允许不受信任的各方共享同一个集群。
- 长期存储。Cortex 支持亚马逊 DynamoDB、谷歌 Bigtable、Cassandra、S3、GCS 和微软 Azure,用于长期存储度量数据。这使您可以持久地存储数据,时间超过任何一台机器的使用寿命,并使用这些数据进行长期的容量规划。
Cortex 是 CNCF 的一个孵化项目,用于多个生产系统,包括 Weave Cloud 和 Grafana Cloud。Cortex 主要是作为 Prometheus 的 远程写入 目标,有一个兼容 Prometheus 的查询 API。
文档
如果你是项目新手,请阅读入门指南。在使用永久存储后端部署 Cortex 之前,您应该阅读:
有关向 Cortex 贡献的指南,请参见 贡献者指南。
进一步阅读
要了解更多关于 Cortex 的信息,请查阅以下文档和讲座。
- Jan 2020 Blog Post "The Future of Cortex: Into the Next Decade"
- Nov 2019 KubeCon talks "Cortex 101: Horizontally Scalable Long Term Storage for Prometheus" (video, slides), "Configuring Cortex for Max Performance " (video, slides, write up) and "Blazin’ Fast PromQL" (slides, video, write up)
- Nov 2019 PromCon talk "Two Households, Both Alike in Dignity: Cortex and Thanos" (video, slides, write up)
- May 2019 KubeCon talks; "Cortex: Intro" (video, slides, blog post) and "Cortex: Deep Dive" (video, slides)
- Feb 2019 blog post & podcast; "Prometheus Scalability with Bryan Boreham" (podcast)
- Feb 2019 blog post; "How Aspen Mesh Runs Cortex in Production"
- Dec 2018 KubeCon talk; "Cortex: Infinitely Scalable Prometheus" (video, slides)
- Dec 2018 CNCF blog post; "Cortex: a multi-tenant, horizontally scalable Prometheus-as-a-Service"
- Nov 2018 CloudNative London meetup talk; "Cortex: Horizontally Scalable, Highly Available Prometheus" (slides)
- Nov 2018 CNCF TOC Presentation; "Horizontally Scalable, Multi-tenant Prometheus" (slides)
- Sept 2018 blog post; "What is Cortex?"
- Aug 2018 PromCon panel; "Prometheus Long-Term Storage Approaches" (video)
- Jul 2018 design doc; "Cortex Query Optimisations"
- Aug 2017 PromCon talk; "Cortex: Prometheus as a Service, One Year On" (videos, slides, write up part 1, part 2, part 3)
- Jun 2017 Prometheus London meetup talk; "Cortex: open-source, horizontally-scalable, distributed Prometheus" (video)
- Dec 2016 KubeCon talk; "Weave Cortex: Multi-tenant, horizontally scalable Prometheus as a Service" (video, slides)
- Aug 2016 PromCon talk; "Project Frankenstein: Multitenant, Scale-Out Prometheus": (video, slides)
- Jun 2016 design document; "Project Frankenstein: A Multi Tenant, Scale Out Prometheus"
获得帮助
如果你有任何关于 Cortex 的问题。
- 请在 Cortex Slack 频道 提问。要邀请自己加入 CNCF Slack,请访问 http://slack.cncf.io/。
- 提交问题。
- 发送电子邮件到 cortex-users@lists.cncf.io
我们随时欢迎您的反馈。
有关安全问题,请访问 https://github.com/cortexproject/cortex/security/policy
社区会议
Cortex 社区电话每三周在 UTC 时间周四下午 03:30–04:15 进行一次,获得日历邀请加入 google groups
会议记录在这里。
托管的 Cortex (Prometheus as a service)
有几个商业服务可以按需使用 Cortex。
Weave Cloud
Weaveworks 的 Weave Cloud 可以让你部署、管理和监控基于容器的应用程序。请在 https://cloud.weave.works 注册,并按照那里的说明操作。其他帮助也可以在 Weave Cloud 文档中找到。
Grafana 云
要使用 Cortex 作为 Grafana 云 的一部分,请点击右上方的 "登录",然后点击 "立即注册" 来注册 Grafana 云。Cortex 是作为 Grafana Starter 和 Basic Hosted Grafana 计划的一部分。
(The first version translated by vz on 2020.10.07)