{"id":9396,"date":"2022-08-17T10:36:04","date_gmt":"2022-08-17T03:36:04","guid":{"rendered":"https:\/\/gcloudvn.com\/?p=9396"},"modified":"2024-05-09T14:17:51","modified_gmt":"2024-05-09T07:17:51","slug":"cloud-monitoring-metrics-now-in-managed-service-for-prometheus","status":"publish","type":"post","link":"https:\/\/gcloudvn.com\/en\/kienthuc\/cloud-monitoring-metrics-now-in-managed-service-for-prometheus\/","title":{"rendered":"Cloud Monitoring metrics, now in Managed Service for Prometheus"},"content":{"rendered":"<p style=\"text-align: justify;\">According to a recent CNCF survey, 86% of the cloud native community reports that they use Prometheus for observability. As Prometheus becomes more of a standard, an increasing number of developers are becoming fluent in PromQL, Prometheus\u2019 built-in query language. While it is a powerful, flexible, and expressive query language, PromQL is typically only able to query Prometheus time series data. Other sources of telemetry, such as metrics offered by your Cloud provider or metrics generated from logs, remain isolated in separate products and might require developers to learn new query tools in order to access them.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gcloudvn.com\/en\/kienthuc\/cloud-monitoring-metrics-now-in-managed-service-for-prometheus\/#Gioi_thieu_PromQL_cho_cac_chi_so_tren_Google_Cloud_Monitoring\" >Introducing PromQL for Google Cloud Monitoring metrics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gcloudvn.com\/en\/kienthuc\/cloud-monitoring-metrics-now-in-managed-service-for-prometheus\/#Tai_sao_lua_chon_Dich_vu_duoc_Quan_ly_cho_Prometheus\" >Why Managed Service for Prometheus<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/gcloudvn.com\/en\/kienthuc\/cloud-monitoring-metrics-now-in-managed-service-for-prometheus\/#Lam_the_nao_de_bat_dau\" >How to get started<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Gioi_thieu_PromQL_cho_cac_chi_so_tren_Google_Cloud_Monitoring\"><\/span>Introducing PromQL for Google Cloud Monitoring metrics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">C\u00e1c ch\u1ec9 s\u1ed1 Prometheus l\u00e0 kh\u00f4ng \u0111\u1ee7 \u0111\u1ec3 c\u00f3 \u0111\u01b0\u1ee3c m\u1ed9t c\u00e1i nh\u00ecn to\u00e0n c\u1ea3nh v\u1ec1 ho\u1ea1t \u0111\u1ed9ng tr\u00ean Cloud c\u1ee7a b\u1ea1n. Cloud Monitoring cung c\u1ea5p h\u01a1n 1.000 ch\u1ec9 s\u1ed1 mi\u1ec5n ph\u00ed cho ph\u00e9p b\u1ea1n theo d\u00f5i v\u00e0 c\u1ea3nh b\u00e1o v\u1ec1 vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c d\u1ecbch v\u1ee5 Google Cloud c\u1ee7a m\u00ecnh, bao g\u1ed3m c\u00e1c ch\u1ec9 s\u1ed1 cho <a href=\"https:\/\/gcloudvn.com\/en\/compute-engine\/\">Compute Engine<\/a>, <a href=\"https:\/\/gcloudvn.com\/en\/google-kubernetes-engine-gke\/\">Kubernetes Engine<\/a>, Load Balancing, <a href=\"https:\/\/gcloudvn.com\/en\/bigquery\/\">BigQuery<\/a>, <a href=\"https:\/\/gcloudvn.com\/en\/cloud-storage\/\"><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Storage Cloud&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:14595,&quot;3&quot;:{&quot;1&quot;:0,&quot;3&quot;:1},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:15389148},&quot;11&quot;:4,&quot;14&quot;:{&quot;1&quot;:3,&quot;3&quot;:1},&quot;15&quot;:&quot;Arial&quot;,&quot;16&quot;:12}\">Storage Cloud<\/span><\/a>, Pub\/Sub etc. Google is pleased to announce that you can now query all Cloud Monitoring metrics using PromQL and Managed Services for Prometheus, including Google Cloud system metrics, Kubernetes metrics, Log-based metrics and custom metrics.<\/p>\n<figure id=\"attachment_9398\" aria-describedby=\"caption-attachment-9398\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9398\" src=\"https:\/\/gcloudvn.com\/wp-content\/uploads\/2022\/08\/grafana_system_metrics-1-1024x828.gif\" alt=\"Google Cloud metrics\" width=\"600\" height=\"485\" srcset=\"https:\/\/gcloudvn.com\/wp-content\/uploads\/2022\/08\/grafana_system_metrics-1-1024x828.gif 1024w, https:\/\/gcloudvn.com\/wp-content\/uploads\/2022\/08\/grafana_system_metrics-1-300x243.gif 300w, https:\/\/gcloudvn.com\/wp-content\/uploads\/2022\/08\/grafana_system_metrics-1-768x621.gif 768w, https:\/\/gcloudvn.com\/wp-content\/uploads\/2022\/08\/grafana_system_metrics-1-15x12.gif 15w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-9398\" class=\"wp-caption-text\">Google Cloud metrics<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Because we built Managed Service for Prometheus on top of the same planet-scale time series database as Cloud Monitoring, all your metrics are stored together and are queryable together. Metrics in Cloud Monitoring are automatically generated when you use Google Cloud services at no additional cost to you. View all your metrics in one place with the query language that developers already know and prefer, opening up possibilities such as:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Correlating spikes in traffic with Redis cache misses using Cloud Load Balancing metrics and Prometheus\u2019 Redis exporter<\/li>\n<li>Graphing Cloud Logging\u2019s logs-based metrics alongside Prometheus metrics<\/li>\n<li>Alerting on your Compute Engine utilization or your Pub\/Sub backlog size using PromQL and Managed Service for Prometheus\u2019 rule evaluation<\/li>\n<li>Replace paid Istio metrics with Google Cloud Istio or <a href=\"https:\/\/gcloudvn.com\/en\/anthos\/\">Anthos's reach<\/a> Service Mesh is free equivalent<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Exposing these metrics using PromQL means that developers who are familiar with Prometheus can start using all time series telemetry data without first having to learn a new query language. New members of your operations team can ramp up faster, as many industry hires will already be familiar with PromQL from previous experience.<\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Tai_sao_lua_chon_Dich_vu_duoc_Quan_ly_cho_Prometheus\"><\/span>Why Managed Service for Prometheus<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In addition to PromQL for all metrics, Managed Service for Prometheus offers open-source monitoring combined with the scale and reliability of Google services. Additional benefits include:<\/p>\n<ul style=\"text-align: justify;\">\n<li>Hybrid- and multi-cloud support, so you can centralize all your metrics across clouds and on-prem deployments<\/li>\n<li>Two-year retention of all Prometheus metrics, included in the price<\/li>\n<li>Cost-effective monitoring on a per-sample basis<\/li>\n<li>Easy cost identification and attribution using Cloud Monitoring<\/li>\n<li>Your choice of collection, with managed collection for those who want a completely hands-off Prometheus experience and self-deployed collection for those who want to keep using existing Prometheus configs<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Lam_the_nao_de_bat_dau\"><\/span>How to get started<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">You can query Cloud Monitoring metrics with PromQL using the interactive query page in Cloud Console or Grafana. To learn how to write PromQL for Google Cloud metrics, see Mapping Cloud Monitoring metric names to PromQL. To configure a Grafana data source to be able to read all of your metrics in Cloud Monitoring, see Configuring the Query UI in the Managed Services for Prometheus documentation.<\/p>\n<p style=\"text-align: justify;\">If your business is interested in the <a href=\"https:\/\/gcloudvn.com\/en\/google-cloud-platform\/\">Google Cloud<\/a>\u00a0Platform then you can connect to Gimasys - Google Premier Partner - for consulting solutions according to the unique needs of your business. Contact now:<\/p>\n<ul style=\"text-align: justify;\">\n<li aria-level=\"1\"><b>Gimasys \u2013 Google Cloud Premier Partner<\/b><\/li>\n<li aria-level=\"1\"><b>Hotline:\u00a0<\/b>Ha Noi:\u00a00987 682 505\u00a0\u2013 Ho Chi Minh:\u00a00974 417 099<\/li>\n<li aria-level=\"1\"><b>Email:\u00a0<\/b>gcp@gimasys.com<\/li>\n<\/ul>\n<p style=\"text-align: right;\"><em><strong>Source: Gimasys<\/strong><\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Theo m\u1ed9t cu\u1ed9c kh\u1ea3o s\u00e1t g\u1ea7n \u0111\u00e2y c\u1ee7a CNCF, 86% c\u1ed9ng \u0111\u1ed3ng cloud-native b\u00e1o c\u00e1o r\u1eb1ng h\u1ecd s\u1eed d\u1ee5ng Prometheus cho vi\u1ec7c gi\u00e1m s\u00e1t. Khi Prometheus d\u1ea7n tr\u1edf th\u00e0nh m\u1ed9t ti\u00eau chu\u1ea9n h\u01a1n, ng\u00e0y c\u00e0ng c\u00f3 nhi\u1ec1u nh\u00e0 ph\u00e1t tri\u1ec3n&hellip;<\/p>","protected":false},"author":2,"featured_media":9399,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1,135],"tags":[],"class_list":["post-9396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kienthuc","category-google-cloud-platform","entry","has-media"],"_links":{"self":[{"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/posts\/9396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/comments?post=9396"}],"version-history":[{"count":0,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/posts\/9396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/media\/9399"}],"wp:attachment":[{"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/media?parent=9396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/categories?post=9396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gcloudvn.com\/en\/wp-json\/wp\/v2\/tags?post=9396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}