blob: cbfc6b57b23a451aeb1c8d2f97355be9eb4b1372 [file] [log] [blame]
<!doctype html>
<html lang="zh" dir="ltr" class="docs-wrapper docs-doc-page docs-version-v1.4.0 plugin-docs plugin-id-default docs-doc-id-design-document/observability/metrics-export" data-has-hydrated="false">
<head>
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v2.4.3">
<title data-rh="true">EventMesh 指标(OpenTelemetry 和 Prometheus) | Apache EventMesh</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://eventmesh.apache.org/zh/docs/v1.4.0/design-document/observability/metrics-export"><meta data-rh="true" name="docusaurus_locale" content="zh"><meta data-rh="true" name="docsearch:language" content="zh"><meta data-rh="true" name="docusaurus_version" content="v1.4.0"><meta data-rh="true" name="docusaurus_tag" content="docs-default-v1.4.0"><meta data-rh="true" name="docsearch:version" content="v1.4.0"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-v1.4.0"><meta data-rh="true" property="og:title" content="EventMesh 指标(OpenTelemetry 和 Prometheus) | Apache EventMesh"><meta data-rh="true" name="description" content="介绍"><meta data-rh="true" property="og:description" content="介绍"><link data-rh="true" rel="icon" href="/zh/images/favicon.ico"><link data-rh="true" rel="canonical" href="https://eventmesh.apache.org/zh/docs/v1.4.0/design-document/observability/metrics-export"><link data-rh="true" rel="alternate" href="https://eventmesh.apache.org/docs/v1.4.0/design-document/observability/metrics-export" hreflang="en"><link data-rh="true" rel="alternate" href="https://eventmesh.apache.org/zh/docs/v1.4.0/design-document/observability/metrics-export" hreflang="zh"><link data-rh="true" rel="alternate" href="https://eventmesh.apache.org/docs/v1.4.0/design-document/observability/metrics-export" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://D5N4C17BGA-dsn.algolia.net" crossorigin="anonymous"><link rel="alternate" type="application/rss+xml" href="/zh/blog/rss.xml" title="Apache EventMesh RSS Feed">
<link rel="alternate" type="application/atom+xml" href="/zh/blog/atom.xml" title="Apache EventMesh Atom Feed">
<link rel="search" type="application/opensearchdescription+xml" title="Apache EventMesh" href="/zh/opensearch.xml"><link rel="stylesheet" href="/zh/assets/css/styles.49656ca2.css">
<link rel="preload" href="/zh/assets/js/runtime~main.fa98e277.js" as="script">
<link rel="preload" href="/zh/assets/js/main.9ebd247a.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}return t}()||function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="主导航" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/zh/"><div class="navbar__logo"><img src="/zh/images/logo.png" alt="Apache EventMesh Logo" class="themedImage_ToTc themedImage--light_HNdA"><img src="/zh/images/logo.png" alt="Apache EventMesh Logo" class="themedImage_ToTc themedImage--dark_i4oU"></div><b class="navbar__title text--truncate">Apache EventMesh</b></a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/zh/docs/v1.4.0/introduction">文档</a><a class="navbar__item navbar__link" href="/zh/download">下载</a><a class="navbar__item navbar__link" href="/zh/blog">博客</a><a class="navbar__item navbar__link" href="/zh/events/release-notes/v1.10.0">动态</a><a class="navbar__item navbar__link" href="/zh/community/how-to-subscribe">社区</a><a class="navbar__item navbar__link" href="/zh/team">团队</a></div><div class="navbar__items navbar__items--right"><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link" aria-haspopup="true" aria-expanded="false" role="button" href="/zh/docs/v1.4.0/introduction">v1.4.0</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/zh/docs/next/design-document/observability/metrics-export">Next</a></li><li><a class="dropdown__link" href="/zh/docs/design-document/observability/metrics-export">v1.10.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.9.0/design-document/observability/metrics-export">v1.9.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.8.0/design-document/observability/metrics-export">v1.8.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.7.0/introduction">v1.7.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.6.0/design-document/observability/metrics-export">v1.6.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.5.0/design-document/observability/metrics-export">v1.5.0</a></li><li><a aria-current="page" class="dropdown__link dropdown__link--active" href="/zh/docs/v1.4.0/design-document/observability/metrics-export">v1.4.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.3.0/design-document/observability/metrics-export">v1.3.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.2.0/introduction">v1.2.0</a></li><li><a class="dropdown__link" href="/zh/docs/v1.1.1/introduction">v1.1.1</a></li><li><a class="dropdown__link" href="/zh/docs/v1.0.0/introduction">v1.0.0</a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" class="iconLanguage_nlXk"><path fill="currentColor" d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></svg>简体中文</a><ul class="dropdown__menu"><li><a href="/docs/v1.4.0/design-document/observability/metrics-export" target="_self" rel="noopener noreferrer" class="dropdown__link" lang="en">English</a></li><li><a href="/zh/docs/v1.4.0/design-document/observability/metrics-export" target="_self" rel="noopener noreferrer" class="dropdown__link dropdown__link--active" lang="zh">简体中文</a></li></ul></div><a href="https://github.com/apache/eventmesh" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link header-github-link" aria-label="GitHub"></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="切换浅色/暗黑模式(当前为浅色模式)" aria-label="切换浅色/暗黑模式(当前为浅色模式)" aria-live="polite"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="searchBox_ZlJk"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><svg width="20" height="20" class="DocSearch-Search-Icon" viewBox="0 0 20 20"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"></span></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_z2l0 docsWrapper_BCFX"><button aria-label="回到顶部" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docPage__5DB"><aside class="theme-doc-sidebar-container docSidebarContainer_b6E3"><div class="sidebarViewport_Xe31"><div class="sidebar_njMd"><nav aria-label="文档侧边栏" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/zh/docs/v1.4.0/introduction">Apache EventMesh</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/zh/docs/v1.4.0/roadmap">EventMesh产品路线图</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="true" href="/zh/docs/v1.4.0/instruction/eclipse">安装与部署</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/eclipse">导入 Eclipse 快速入门说明</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/store">部署 EventMesh 的事件存储</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/store-with-docker">部署 EventMesh 的事件存储(使用 Docker)</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/runtime">Eventmesh-runtime 快速入门说明</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/runtime-with-docker">使用 Docker 快速入门 EventMesh(暂时只支持到1.4.0版本)</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/instruction/demo">运行 eventmesh-sdk-java demo</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/runtime-protocol">设计文档</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="true" tabindex="0" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/runtime-protocol">事件处理和集成</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/runtime-protocol">TCP 协议文档</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/https">HTTPS</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/cloudevents">CloudEvents 集成</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" tabindex="0" href="/zh/docs/v1.4.0/design-document/observability/metrics-export">可观测性</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/zh/docs/v1.4.0/design-document/observability/metrics-export">EventMesh 指标(OpenTelemetry 和 Prometheus)</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/observability/tracing">分布式追踪</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/observability/prometheus">通过 Prometheus 观察 Metrics</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/observability/zipkin">通过 Zipkin 观察 Trace</a></li></ul></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/schema-registry">EventMesh 模式注册中心 (OpenSchema)</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/spi">EventMesh SPI</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/design-document/stream">EventMesh Stream</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="true" href="/zh/docs/v1.4.0/sdk-java/intro">EventMesh SDK for Java</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/sdk-java/intro">安装 SDK</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/sdk-java/http">HTTP 协议</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/sdk-java/tcp">TCP 协议</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/sdk-java/grpc">gRPC 协议</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="true" href="/zh/docs/v1.4.0/upgrade-guide/upgrade-guide">升级指南</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/zh/docs/v1.4.0/upgrade-guide/upgrade-guide">EventMesh 升级指引</a></li></ul></li></ul></nav><button type="button" title="Collapse sidebar" aria-label="Collapse sidebar" class="button button--secondary button--outline collapseSidebarButton_PEFL"><svg width="20" height="20" aria-hidden="true" class="collapseSidebarButtonIcon_kv0_"><g fill="#7a7a7a"><path d="M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"></path><path d="M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"></path></g></svg></button></div></div></aside><main class="docMainContainer_gTbr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="theme-doc-version-banner alert alert--warning margin-bottom--md" role="alert"><div>This is documentation for <!-- -->Apache EventMesh<!-- --> <b>v1.4.0</b>, which is no longer actively maintained.</div><div class="margin-top--md">For up-to-date documentation, see the <b><a href="/zh/docs/design-document/observability/metrics-export">latest version</a></b> (<!-- -->v1.10.0<!-- -->).</div></div><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="页面路径"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="主页面" class="breadcrumbs__link" href="/zh/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">设计文档</span><meta itemprop="position" content="1"></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">可观测性</span><meta itemprop="position" content="2"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">EventMesh 指标(OpenTelemetry 和 Prometheus)</span><meta itemprop="position" content="3"></li></ul></nav><span class="theme-doc-version-badge badge badge--secondary">版本:v1.4.0</span><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><h1>EventMesh 指标(OpenTelemetry 和 Prometheus)</h1><h2 class="anchor anchorWithStickyNavbar_LWe7" id="介绍">介绍<a href="#介绍" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><p><a href="https://github.com/apache/eventmesh" target="_blank" rel="noopener noreferrer">EventMesh</a> 是一个动态的云原生事件基础设施。</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="opentelemetry-概述">OpenTelemetry 概述<a href="#opentelemetry-概述" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><p>OpenTelemetry 是工具、API 和 SDK 的集合。您可以使用它来检测、生成、收集和导出遥测数据(指标、日志和跟踪)以进行分析,以便了解您的软件的性能和行为。</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="概述-prometheus">概述 Prometheus<a href="#概述-prometheus" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><p>使用领先的开源监控解决方案为您的指标和警报提供支持。</p><ul><li>尺寸数据</li><li>强大的查询</li><li>伟大的可视化</li><li>高效存储</li><li>操作简单</li><li>精准预警</li><li>许多客户端库</li><li>许多集成</li></ul><h2 class="anchor anchorWithStickyNavbar_LWe7" id="要求">要求<a href="#要求" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><h3 class="anchor anchorWithStickyNavbar_LWe7" id="功能要求">功能要求<a href="#功能要求" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h3><table><thead><tr><th align="left">Requirement ID</th><th>Requirement Description</th><th>Comments</th></tr></thead><tbody><tr><td align="left">F-1</td><td>EventMesh users should be able to observe HTTP metrics from Prometheus</td><td>Functionality</td></tr><tr><td align="left">F-2</td><td>EventMesh users should be able to observe TCP metrics from Prometheus</td><td>Functionality</td></tr></tbody></table><h2 class="anchor anchorWithStickyNavbar_LWe7" id="设计-细节">设计 细节<a href="#设计-细节" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><p>使用由提供的儀表儀器 OpenTelemetry 觀察指標存在於 EventMesh 然後導出到 Prometheus.</p><p>1、初始化儀表儀器</p><p>2、設置 Prometheus 服務器</p><p>3、创建了不同的指标观察者</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="附录">附录<a href="#附录" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h2><h3 class="anchor anchorWithStickyNavbar_LWe7" id="参考资料">参考资料<a href="#参考资料" class="hash-link" aria-label="Direct link to heading" title="Direct link to heading"></a></h3><p><a href="https://github.com/open-telemetry/docs-cn/blob/main/QUICKSTART.md#%E5%88%9B%E5%BB%BA%E5%9F%BA%E7%A1%80Span" target="_blank" rel="noopener noreferrer">https://github.com/open-telemetry/docs-cn/blob/main/QUICKSTART.md#%E5%88%9B%E5%BB%BA%E5%9F%BA%E7%A1%80Span</a></p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/apache/eventmesh-site/edit/master/versioned_docs/version-v1.4.0/design-document/02-observability/01-metrics-export.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_vwxv"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation"><a class="pagination-nav__link pagination-nav__link--prev" href="/zh/docs/v1.4.0/design-document/event-handling-and-integration/cloudevents"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">CloudEvents 集成</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/zh/docs/v1.4.0/design-document/observability/tracing"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">分布式追踪</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#介绍" class="table-of-contents__link toc-highlight">介绍</a></li><li><a href="#opentelemetry-概述" class="table-of-contents__link toc-highlight">OpenTelemetry 概述</a></li><li><a href="#概述-prometheus" class="table-of-contents__link toc-highlight">概述 Prometheus</a></li><li><a href="#要求" class="table-of-contents__link toc-highlight">要求</a><ul><li><a href="#功能要求" class="table-of-contents__link toc-highlight">功能要求</a></li></ul></li><li><a href="#设计-细节" class="table-of-contents__link toc-highlight">设计 细节</a></li><li><a href="#附录" class="table-of-contents__link toc-highlight">附录</a><ul><li><a href="#参考资料" class="table-of-contents__link toc-highlight">参考资料</a></li></ul></li></ul></div></div></div></div></main></div></div><footer class="footer"><div class="container"><div class="row footer__links"><div class="col footer__col"><img src="images/asf_logo.svg"></div><div class="col footer__col"></div><div class="col footer__col"><div class="footer__title">EventMesh</div><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" href="/zh/docs/introduction">文档</a></li><li class="footer__item"><a class="footer__link-item" href="/zh/events/release-notes/v1.10.0">动态</a></li><li class="footer__item"><a href="https://github.com/apache/eventmesh/releases" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>更新日志</span></a></li></ul></div><div class="col footer__col"><div class="footer__title">社区</div><ul class="footer__items"><li class="footer__item"><a href="https://github.com/apache/eventmesh" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>GitHub</span></a></li><li class="footer__item"><a href="https://github.com/apache/eventmesh/issues" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Issue Tracker</span></a></li><li class="footer__item"><a href="https://github.com/apache/eventmesh/pulls" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Pull Requests</span></a></li></ul></div><div class="col footer__col"><div class="footer__title">Apache Software Foundation</div><ul class="footer__items"><li class="footer__item"><a href="https://www.apache.org/" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Foundation</span></a></li><li class="footer__item"><a href="https://www.apache.org/licenses/" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>License</span></a></li><li class="footer__item"><a href="https://www.apache.org/foundation/sponsorship.html" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Sponsorship</span></a></li><li class="footer__item"><a href="http://www.apache.org/foundation/thanks.html" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Thanks</span></a></li><li class="footer__item"><a href="https://www.apache.org/security/" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Security</span></a></li><li class="footer__item"><a href="https://www.apache.org/events/current-event" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>动态</span></a></li><li class="footer__item"><a href="https://privacy.apache.org/policies/privacy-policy-public.html" target="_blank" rel="noopener noreferrer" class="footer__link-item"><span>Privacy</span></a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 The Apache Software Foundation. Apache EventMesh, EventMesh, Apache, the Apache feather logo, and the Apache EventMesh logo are trademarks of The Apache Software Foundation.</div></div></div></footer></div>
<script src="/zh/assets/js/runtime~main.fa98e277.js"></script>
<script src="/zh/assets/js/main.9ebd247a.js"></script>
</body>
</html>