• 周二. 4月 23rd, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Prometheus学习(十)之Prometheus联邦、迁移

admin

11月 28, 2021

0.前言

本文来自Prometheus官网手册Prometheus简介

FEDERATION 允许Prometheus服务器从另一台Prometheus服务器抓取选定的时间序列。

1.用例

联盟有不同的用例。通常,它用于实现可扩展的Prometheus监控设置或将相关指标从一个服务的Prometheus拉到另一个服务。

1.1分层联盟

分层联盟使Prometheus可以扩展到具有数十个数据中心和数百万个节点的环境。在此用例中,联合拓扑就像一棵树,更高级别的Prometheus服务器从大量从属服务器收集聚合的时间序列数据。

例如,设置可能包含许多高度详细收集数据的每个数据中心Prometheus服务器(实例级深入分析),以及一组仅收集和存储聚合数据的全局Prometheus服务器(作业级向下钻取))来自那些本地服务器。 这提供了聚合全局视图和详细的本地视图。

1.2跨服务联盟

在跨服务联盟中,将一项服务的Prometheus服务器配置为从另一项服务的Prometheus服务器抓取所选数据,以针对单个服务器内的两个数据集启用警报和查询。

例如,运行多个服务的集群调度程序可能会公开有关集群上运行的服务实例的资源使用情况信息(例如内存和CPU使用情况)。另一方面,在该群集上运行的服务将仅公开特定于应用程序的服务指标。通常,这两组指标是由单独的Prometheus服务器抓取的。使用联盟,包含服务级别指标的Prometheus服务器可以从群集Prometheus中获取有关其特定服务的群集资源使用指标,以便可以在该服务器中使用这两组指标。

2.联邦配置

在任何给定的Prometheus服务器上,/federate端点允许检索该服务器中所选时间序列集的当前值。 必须至少指定一个match[]URL参数才能选择要公开的时间序列。 每个match[]参数都需要指定一个瞬时向量选择器,如up{job="api-server"}。 如果提供了多个match[]参数,则选择所有匹配系列的并集。

要将指标从一个服务器联合到另一个服务器,请将目标Prometheus服务器配置为从源服务器的/federate端点进行采集,同时还启用honor_labels scrape选项(以不覆盖源服务器公开的任何标签)并传入所需的match[]参数。

例如,以下scrape_config将任何带有标签job="prometheus"的系列或以job开头的度量标准名称联合起来:source-prometheus-{1,2,3}:9090的Prometheus服务器进入抓取Prometheus:

scrape_configs:
  - job_name: 'federate'
    scrape_interval: 15s

    honor_labels: true
    metrics_path: '/federate'

    params:
      'match[]':
        - '{job="prometheus"}'
        - '{__name__=~"job:.*"}'

    static_configs:
      - targets:
        - 'source-prometheus-1:9090'
        - 'source-prometheus-2:9090'
        - 'source-prometheus-3:9090'

3.迁移指南

PROMETHEUS 2.0迁移指南Prometheus简介

《Prometheus学习(十)之Prometheus联邦、迁移》有50个想法
  1. We just wanted to take a moment to acknowledge all the hard work and effort you’ve been putting in lately. Keep up the amazing job, you’re doing great!

  2. What makes Sumatra Slim Belly Tonic even more unique is its inspiration from the beautiful Indonesian island of Sumatra. This supplement incorporates ingredients that are indigenous to this stunning island, including the exotic blue spirulina. How amazing is that? By harnessing the power of these rare and natural ingredients, Sumatra Slim Belly Tonic provides you with a weight loss solution that is both effective and enchanting.

  3. Prostadine is a natural supplement that helps keep the prostate healthy and lowers the chances of it getting bigger. It’s not like medicines with bad effects – it’s made from natural things.

  4. Prostadine helps clear out inflammation in the prostate.Prostadine claims the root cause of most prostate issues is due to the accumulation of toxic mineral buildup due to hard water. When unchecked, this toxic buildup leads to inflammation in the prostate and the rest of your urinary tract. This impairs your ability to urinate, ejaculate, and produce hormones needed for your overall health.

  5. Sumatra Slim Belly Tonic takes pride in its manufacturing process, ensuring that every batch is produced in FDA-approved and GMP-certified facilities. This means that each and every bottle of Sumatra Slim Belly Tonic meets the highest standards of quality and safety. You can trust that you are getting a product that has undergone strict quality control measures and is backed by scientific research.

  6. I am absolutely thrilled to introduce you to the incredible Sumatra Slim Belly Tonic! This powdered weight loss formula is like no other, featuring a powerful blend of eight natural ingredients that are scientifically linked to fat burning, weight management, and overall weight loss. Just imagine the possibilities! With Sumatra Slim Belly Tonic, you have the opportunity to finally achieve your weight loss goals and transform your body into the best version of yourself.

  7. We just wanted to take a moment to acknowledge all the hard work and effort you’ve been putting in lately. Keep up the amazing job, you’re doing great!

  8. Glucotrust is an innovative supplement that offers a range of benefits for those seeking to improve their health and wellbeing. One of the key advantages of this supplement is its ability to help promote healthy blood sugar levels. This is particularly important for those who suffer from diabetes or other blood sugar-related conditions, as it can help to regulate insulin levels and prevent spikes in blood sugar.

  9. One of the key benefits of GlucoTrust is that it increases insulin response, production, and sensitivity. Insulin is a hormone that is responsible for regulating blood sugar levels in the body, and when this process is disrupted, it can lead to a range of health problems. GlucoTrust provides the body with essential nutrients that help to improve insulin function, which in turn helps to regulate blood sugar levels more effectively.

  10. Sugar Defender transcends symptom-focused interventions, delving into the root causes of glucose imbalance. It stands as a dynamic formula that seamlessly aligns with the body’s intrinsic mechanisms, presenting a distinctive and holistic approach to enhancing overall well-being. Beyond a mere supplement, Sugar Defender emerges as a strategic ally in the pursuit of balanced health.

  11. Sugar Defender transcends symptom-focused interventions, delving into the root causes of glucose imbalance. It stands as a dynamic formula that seamlessly aligns with the body’s intrinsic mechanisms, presenting a distinctive and holistic approach to enhancing overall well-being. Beyond a mere supplement, Sugar Defender emerges as a strategic ally in the pursuit of balanced health.

  12. Your writing is so refreshing and authentic It’s like having a conversation with a good friend Thank you for opening up and sharing your heart with us

  13. Thank you for addressing such an important topic in this post Your words are powerful and have the potential to make a real difference in the world

  14. Заказ аттестата в Москве – это так распространенное дело, какое заинтересовывает многих людей – https://diplomsuper.net. В столице предоставляется множество опций для заказа свидетельства

  15. Thank you for addressing such an important topic in this post Your words are powerful and have the potential to make a real difference in the world

  16. Alpilean is a natural dietary formula that has been proven to provide multiple health benefits. In order to experience these benefits, it is important to follow the recommended usage instructions. Unlike other supplements, Alpilean delivers on its promises and delivers results.

  17. Red Boost is a powerful and effective supplement that is designed to support overall health and well-being, particularly in men who may be experiencing the signs of low testosterone. One of the key factors that sets Red Boost apart from other supplements is its high-quality and rare ingredients, which are carefully selected to produce a powerful synergistic effect. Here is a list of the key ingredients in Red Boost and how they can support overall health and well-being:

  18. Red Boost is a powerful and effective supplement that is designed to support overall health and well-being, particularly in men who may be experiencing the signs of low testosterone. One of the key factors that sets Red Boost apart from other supplements is its high-quality and rare ingredients, which are carefully selected to produce a powerful synergistic effect. Here is a list of the key ingredients in Red Boost and how they can support overall health and well-being:

  19. Fluxactive is a comprehensive dietary supplement made up of herbal extracts. This supplement is high in nutrients, which can properly nourish your body and significantly improve prostate health. Some of these ingredients have even been shown to lower the risk of prostate cancer.

  20. Fluxactive Complete’s formulation contains only organic ingredients that have been shown to improve prostate health. These ingredients work together to provide your body with the nutrients it requires. Your overall health improves once your body receives a healthy dose of these nutrients.

  21. From the insightful commentary to the captivating writing, every word of this post is top-notch. Kudos to the author for producing such fantastic content.

  22. Sugar Defender orchestrates a reduction in blood sugar levels through multifaceted pathways. Its initial impact revolves around enhancing insulin sensitivity, optimizing the body’s efficient use of insulin, ultimately leading to a decrease in blood sugar levels. This proactive strategy works to prevent the storage of glucose as fat, mitigating the risk of developing type 2 diabetes.

  23. Sugar Defender orchestrates a reduction in blood sugar levels through multifaceted pathways. Its initial impact revolves around enhancing insulin sensitivity, optimizing the body’s efficient use of insulin, ultimately leading to a decrease in blood sugar levels. This proactive strategy works to prevent the storage of glucose as fat, mitigating the risk of developing type 2 diabetes.

  24. Хотите обеспечить свою онлайн-активность анонимностью и безопасностью? Представляем вам лучшие украинские 4G прокси – ваш надежный партнер в интернете!

    Наши мобильные прокси LTE обеспечивают высокую скорость и стабильность соединения, а также позволяют менять IP по ссылке для дополнительной защиты данных. Работают надежно в Телеграме и других платформах.

    Не оставайтесь без защиты в интернете! Попробуйте наши украинские 4G прокси уже сегодня и ощутите разницу.

  25. Sugar Defender’s prowess in managing blood sugar is deeply rooted in its exceptional blend of natural ingredients, each playing a distinct role that contributes to the overall success of the supplement. Here are some noteworthy positive impacts of the Sugar Defender Ingredients blend:

  26. Sugar Defender transcends symptom-focused interventions, delving into the root causes of glucose imbalance. It stands as a dynamic formula that seamlessly aligns with the body’s intrinsic mechanisms, presenting a distinctive and holistic approach to enhancing overall well-being. Beyond a mere supplement, Sugar Defender emerges as a strategic ally in the pursuit of balanced health.

  27. Sugar Defender transcends symptom-focused interventions, delving into the root causes of glucose imbalance. It stands as a dynamic formula that seamlessly aligns with the body’s intrinsic mechanisms, presenting a distinctive and holistic approach to enhancing overall well-being. Beyond a mere supplement, Sugar Defender emerges as a strategic ally in the pursuit of balanced health.

  28. MetaNail is a topical formulation combining 20 organic and essential nutrients to repair, rejuvenate, and improve nail health. It can fight fungus and brittle or cracked nails. The serum is easy to apply and safer than most oral and topical nail products.

  29. Your posts always provide me with a new perspective and encourage me to look at things differently Thank you for broadening my horizons

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注