{"id":120,"date":"2022-12-25T17:15:32","date_gmt":"2022-12-25T17:15:32","guid":{"rendered":"https:\/\/devopsopen.com\/?p=120"},"modified":"2022-12-25T17:43:52","modified_gmt":"2022-12-25T17:43:52","slug":"logging-and-monitoring","status":"publish","type":"post","link":"https:\/\/devopsopen.com\/index.php\/2022\/12\/25\/logging-and-monitoring\/","title":{"rendered":"Logging and Monitoring"},"content":{"rendered":"<h1>Logging and Monitoring<\/h1>\n<h4 id=\"Summary\">Summary<\/h4>\n<ul class=\"ez-toc-page-1 ez-toc-heading-level-2\">\n<li><a title=\"Monitor Cluster Component\" href=\"#Monitor Cluster Component\"> Monitor Cluster Component<\/a><\/li>\n<li><a title=\"Managing Application Logs\" href=\"#Managing Application Logs\"> Managing Application Logs<\/a><\/li>\n<\/ul>\n<h2 id=\"Monitor Cluster Component\"><a title=\"Summary\" href=\"#Summary\">Monitor Cluster Component<\/a><\/h2>\n<p>There is a lot of open source plugin metrics like datadog, dynatrace or prometheuse... to get metrics like number of pods, cpu, ram...<\/p>\n<p>Heapster is deprecated and now we can use metrics server instead. Metric server is an in-memory solution. kublet is reponsible to send informations and metrics\u00a0 about each node.<\/p>\n<p>to add metrics server :<\/p>\n<blockquote>\n<pre>git clone https:\/\/github.com\/kubernetes-incubator\/metrics-serve\r\nkubectl create -f deploy\/1.8+\/\r\nkubectl top node (to get nodes metrics)\r\nkubectl top pod (to get pods metrics)<\/pre>\n<\/blockquote>\n<p>sdds<\/p>\n<h2 id=\"Managing Application Logs\"><a title=\"Summary\" href=\"#Summary\">Managing Application Logs<\/a><\/h2>\n<p>If you have only pods runned with docker, you can use this command :<\/p>\n<blockquote>\n<pre>docker logs -f ecf<\/pre>\n<\/blockquote>\n<p>In Kubernetes, the command is :<\/p>\n<blockquote>\n<pre>kubectl logs -f event-pod<\/pre>\n<\/blockquote>\n<p>If we have multi-container in a pod, we should specifie the name of the container<\/p>\n<blockquote>\n<pre>kubectl logs -f name-pod name-container\r\n\r\n<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Logging and Monitoring Summary Monitor Cluster Component Managing Application Logs Monitor Cluster Component There is a lot of open source plugin metrics like datadog, dynatrace or prometheuse&#8230; to get metrics like number of pods, cpu, ram&#8230; Heapster is deprecated and now we can use metrics server instead. Metric server is an in-memory solution. kublet is reponsible to send informations and metrics\u00a0 about each node. to add metrics server : git clone https:\/\/github.com\/kubernetes-incubator\/metrics-serve kubectl create -f deploy\/1.8+\/ kubectl top node (to get nodes metrics) kubectl top pod (to get pods metrics) sdds Managing Application Logs If you have only pods runned\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":""},"categories":[12],"tags":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/devopsopen.com\/index.php\/author\/admin_bak\/"},"uagb_comment_info":0,"uagb_excerpt":"Logging and Monitoring Summary Monitor Cluster Component Managing Application Logs Monitor Cluster Component There is a lot of open source plugin metrics like datadog, dynatrace or prometheuse... to get metrics like number of pods, cpu, ram... Heapster is deprecated and now we can use metrics server instead. Metric server is an in-memory solution. kublet is&hellip;","_links":{"self":[{"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/posts\/120"}],"collection":[{"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":4,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsopen.com\/index.php\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}