{"id":22080,"date":"2023-06-20T19:10:59","date_gmt":"2023-06-20T12:10:59","guid":{"rendered":"https:\/\/huongdanjava.com\/?p=22080"},"modified":"2023-06-25T04:34:12","modified_gmt":"2023-06-24T21:34:12","slug":"integrate-prometheus-with-opentelemetry-using-prometheus-exporter","status":"publish","type":"post","link":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html","title":{"rendered":"Integrate Prometheus with OpenTelemetry using Prometheus exporter"},"content":{"rendered":"<p>In <a href=\"https:\/\/huongdanjava.com\/add-custom-metrics-to-java-applications-using-opentelemetry-sdk-metrics.html\" target=\"_blank\" rel=\"noopener\">the previous tutorial<\/a>, I showed you how to add custom metrics using OpenTelemetry SDK metrics and I also used Logging exporter to log this metrics information to the console. In this tutorial, I will show you how to integrate Prometheus with OpenTelemetry using Prometheus exporter to display these metrics information with Prometheus!<\/p>\n<p>I will reuse the example in <a href=\"https:\/\/huongdanjava.com\/add-custom-metrics-to-java-applications-using-opentelemetry-sdk-metrics.html\" target=\"_blank\" rel=\"noopener\">the previous tutorial<\/a>, but instead of using the Logger exporter, I will configure it to use the Prometheus exporter as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22082 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/06\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter-1.png\" alt=\"\" width=\"700\" height=\"450\" \/><\/p>\n<p>As you can see, we will be using Prometheus-specific environment variables<\/p>\n<ul>\n<li>OTEL_EXPORTER_PROMETHEUS_PORT<\/li>\n<li>and OTEL_EXPORTER_PROMETHEUS_HOST<\/li>\n<li>in addition to the variable OTEL_METRICS_EXPORTER with the value as &#8220;prometheus&#8221; to specify for the Prometheus exporter.<\/li>\n<\/ul>\n<p>You also need to declare the environment variables related to OTEL_TRACES_EXPORTER and OTEL_LOGS_EXPORTER using Logging Exporter as I did above for example. Since Prometheus only works with metrics.<\/p>\n<p>With this configuration, OpenTelemetry will export metric information using a local server running on port 9464. Prometheus needs to connect to the server with this port to collect metric information.<\/p>\n<p>Now, if you run the application, request to the address <a href=\"http:\/\/localhost:8080\/hello\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:8080\/hello<\/a>, 3 times, and then go to the address <a href=\"http:\/\/localhost:9464\/metrics\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:9464\/metrics<\/a>, you will see the result as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22083 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/06\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter-2.png\" alt=\"\" width=\"700\" height=\"381\" \/><\/p>\n<p>To specify for Prometheus to connect to the server with this port, in the Prometheus configuration file, you need to configure the scrape_configs section with a job with a static_configs target that points to the server that OpenTelemetry has up and running above. <a href=\"https:\/\/huongdanjava.com\/install-prometheus-using-docker-compose.html\" target=\"_blank\" rel=\"noopener\">My Prometheus server<\/a> is installed using Docker Compose, to be able to connect to the host machine&#8217;s address, I will configure the scrap_configs section as follows:<\/p>\n<pre class=\"lang:yaml decode:true\"># A scrape configuration containing exactly one endpoint to scrape:\r\n# Here it's Prometheus itself.\r\nscrape_configs:\r\n  # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.\r\n  - job_name: \"prometheus\"\r\n\r\n    # metrics_path defaults to '\/metrics'\r\n    # scheme defaults to 'http'.\r\n\r\n    static_configs:\r\n      - targets: [\"host.docker.internal:9464\"]<\/pre>\n<p>Now, if you go to Prometheus&#8217;s page at <a href=\"http:\/\/localhost:9090\/\" target=\"_blank\" rel=\"noopener\">http:\/\/localhost:9090\/<\/a>, enter the word &#8220;hello&#8221; in the Expression box, you will see the &#8220;helloCounter_total&#8221; metric displayed as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22084 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/06\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter-3.png\" alt=\"\" width=\"700\" height=\"285\" \/><\/p>\n<p>Select this metric and then click Execute, you will see the following results:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-22085 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/06\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter-4.png\" alt=\"\" width=\"700\" height=\"381\" \/><\/p>\n<p>As you can see, the custom metric information that I defined in the previous tutorial has been collected and can be searched using Prometheus!<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;22080&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Integrate Prometheus with OpenTelemetry using Prometheus exporter&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\"><\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous tutorial, I showed you how to add custom metrics using OpenTelemetry SDK metrics and I also used Logging exporter to log this metrics information to the console. In this tutorial, I will show you how to integrate Prometheus with OpenTelemetry using Prometheus&hellip; <a href=\"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":21949,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2345,2342],"tags":[],"class_list":["post-22080","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opentelemetry-en","category-prometheus-en","clearfix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java<\/title>\n<meta name=\"description\" content=\"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\" \/>\n<meta property=\"og:site_name\" content=\"Huong Dan Java\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-20T12:10:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-24T21:34:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png\" \/>\n\t<meta property=\"og:image:width\" content=\"280\" \/>\n\t<meta property=\"og:image:height\" content=\"280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Khanh Nguyen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/KhanhNguyenJ\" \/>\n<meta name=\"twitter:site\" content=\"@KhanhNguyenJ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khanh Nguyen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\"},\"author\":{\"name\":\"Khanh Nguyen\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"headline\":\"Integrate Prometheus with OpenTelemetry using Prometheus exporter\",\"datePublished\":\"2023-06-20T12:10:59+00:00\",\"dateModified\":\"2023-06-24T21:34:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\"},\"wordCount\":354,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/opentelemetry.png\",\"articleSection\":[\"OpenTelemetry\",\"Prometheus\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\",\"name\":\"Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/opentelemetry.png\",\"datePublished\":\"2023-06-20T12:10:59+00:00\",\"dateModified\":\"2023-06-24T21:34:12+00:00\",\"description\":\"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/opentelemetry.png\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/opentelemetry.png\",\"width\":280,\"height\":280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/huongdanjava.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrate Prometheus with OpenTelemetry using Prometheus exporter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/\",\"name\":\"Huong Dan Java\",\"description\":\"Java development tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/huongdanjava.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\",\"name\":\"Khanh Nguyen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"width\":1267,\"height\":1517,\"caption\":\"Khanh Nguyen\"},\"logo\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\"},\"description\":\"I love Java and everything related to Java.\",\"sameAs\":[\"https:\\\/\\\/huongdanjava.com\",\"https:\\\/\\\/www.facebook.com\\\/nhkhanh2406\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/KhanhNguyenJ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java","description":"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html","og_locale":"en_US","og_type":"article","og_title":"Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java","og_description":"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.","og_url":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html","og_site_name":"Huong Dan Java","article_publisher":"https:\/\/www.facebook.com\/nhkhanh2406","article_author":"https:\/\/www.facebook.com\/nhkhanh2406","article_published_time":"2023-06-20T12:10:59+00:00","article_modified_time":"2023-06-24T21:34:12+00:00","og_image":[{"width":280,"height":280,"url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png","type":"image\/png"}],"author":"Khanh Nguyen","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/KhanhNguyenJ","twitter_site":"@KhanhNguyenJ","twitter_misc":{"Written by":"Khanh Nguyen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#article","isPartOf":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html"},"author":{"name":"Khanh Nguyen","@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"headline":"Integrate Prometheus with OpenTelemetry using Prometheus exporter","datePublished":"2023-06-20T12:10:59+00:00","dateModified":"2023-06-24T21:34:12+00:00","mainEntityOfPage":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html"},"wordCount":354,"commentCount":2,"publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"image":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png","articleSection":["OpenTelemetry","Prometheus"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html","url":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html","name":"Integrate Prometheus with OpenTelemetry using Prometheus exporter - Huong Dan Java","isPartOf":{"@id":"https:\/\/huongdanjava.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage"},"image":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png","datePublished":"2023-06-20T12:10:59+00:00","dateModified":"2023-06-24T21:34:12+00:00","description":"In this tutorial, I will guide you all on how to integrate Prometheus with OpenTelemetry using Prometheus exporter.","breadcrumb":{"@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#primaryimage","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2023\/05\/opentelemetry.png","width":280,"height":280},{"@type":"BreadcrumbList","@id":"https:\/\/huongdanjava.com\/integrate-prometheus-with-opentelemetry-using-prometheus-exporter.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/huongdanjava.com\/"},{"@type":"ListItem","position":2,"name":"Integrate Prometheus with OpenTelemetry using Prometheus exporter"}]},{"@type":"WebSite","@id":"https:\/\/huongdanjava.com\/#website","url":"https:\/\/huongdanjava.com\/","name":"Huong Dan Java","description":"Java development tutorials","publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/huongdanjava.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d","name":"Khanh Nguyen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","width":1267,"height":1517,"caption":"Khanh Nguyen"},"logo":{"@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg"},"description":"I love Java and everything related to Java.","sameAs":["https:\/\/huongdanjava.com","https:\/\/www.facebook.com\/nhkhanh2406","https:\/\/x.com\/https:\/\/twitter.com\/KhanhNguyenJ"]}]}},"_links":{"self":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/22080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/comments?post=22080"}],"version-history":[{"count":5,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/22080\/revisions"}],"predecessor-version":[{"id":22127,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/22080\/revisions\/22127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media\/21949"}],"wp:attachment":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media?parent=22080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/categories?post=22080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/tags?post=22080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}