{"id":28140,"date":"2017-09-29T20:39:58","date_gmt":"2017-09-29T17:39:58","guid":{"rendered":"https:\/\/www.altoros.com\/blog\/?p=28140"},"modified":"2017-10-04T15:39:44","modified_gmt":"2017-10-04T12:39:44","slug":"using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels","status":"publish","type":"post","link":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/","title":{"rendered":"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-transparent 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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Understanding_a_complicated_system\" >Understanding a complicated system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Configuring_centralized_logs\" >Configuring centralized logs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Configuring_metrics\" >Configuring metrics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Full-stack_Cloud_Foundry_monitoring\" >Full-stack Cloud Foundry monitoring<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Related_slides\" >Related slides<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#Further_reading\" >Further reading<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#About_the_expert\" >About the expert<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Understanding_a_complicated_system\"><\/span>Understanding a complicated system<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Cloud Foundry deployments are complex ecosystems involving multiple layers, such as IaaS, BOSH, Cloud Foundry itself, applications, and backing services. As cloud operations and DevOps engineers, it is vital to know how each of these components work to be able to troubleshoot errors after they occur, or better yet, prevent them from happening altogether.<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-architecture.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-architecture.png\" alt=\"Cloud Foundry Monitoring Centralized Logs Metrics monitoring architecture\" width=\"640\" class=\"aligncenter size-full wp-image-28160\" \/><\/a><small>A Cloud Foundry monitoring workflow<\/small><\/center><\/p>\n<p>To be able to do so, setting up a monitoring system is the first step. Monitoring is an essential part of development because it enables us to:<\/p>\n<ul>\n<li>Look at the individual parts of the system<\/li>\n<li>Pinpoint issues and fix them before clients find them<\/li>\n<li>Measure statistics over time<\/li>\n<\/ul>\n<p>So, what&#8217;s needed to do so?<\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configuring_centralized_logs\"><\/span>Configuring centralized logs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Cloud Foundry deployments can easily be scaled up on demand, so it&#8217;s ideal to configure centralized logging. This will simplify such tasks as:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\"><strong>Data search and manipulation.<\/strong> Finding and parsing information is more convenient as all the logs are in a single place.<\/li>\n<li style=\"margin-bottom: 6px;\"><strong>Long-term storing.<\/strong> Servers usually delete logs after a set period of time. Having centralized logs makes it easier to store them in a dedicated storage space.<\/li>\n<li><strong>Reporting.<\/strong> Dashboards, reports, and alerts can be created using information from centralized logs.<\/li>\n<\/ul>\n<p>In the image below, we can trace how applications generate logs. In this case, applications pass their metrics to a Metron agent. This gets forwarded to Doppler and then Traffic Controller. Next, Traffic Controller exposes the data to Firehose, which is a websocket, where we can connect and receive messages. At the same time, platform logs are written into <em>rsyslog<\/em> and then can be forwarded to your separate syslog receiver.<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-loggregator-architecture.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-loggregator-architecture.png\" alt=\"Cloud Foundry Monitoring Centralized Logs Metrics loggregator architecture\" width=\"640\" class=\"aligncenter size-full wp-image-28144\" \/><\/a><small>An architecture of logs in Cloud Foundry<\/small><\/center><\/p>\n<p>Logs are basically just lines of text in different formats. For storage, it is optimal to use a database with dynamic fields, indexing, and convenient searching (such as <a href=\"https:\/\/www.elastic.co\/elasticsearch\/\" target=\"_blank\">Elasticsearch<\/a>).<\/p>\n<p>Before the logs are stored, we need to be able to parse them to get useful information. Since we&#8217;re getting logs from multiple sources, we&#8217;ll need a parser (e.g., <a href=\"https:\/\/www.elastic.co\/logstash\/\" target=\"_blank\">Logstash<\/a>) than can understand different formats.<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-logstash.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-logstash.png\" alt=\"Cloud Foundry Monitoring Centralized Logs Metrics logstash\" width=\"640\" class=\"aligncenter size-full wp-image-28146\" \/><\/a><small>Logstash supports multiple formats<\/small><\/center><\/p>\n<p>After the logs are parsed, we&#8217;ll need an interface (e.g., <a href=\"https:\/\/www.altoros.com\/blog\/deploying-kibana-to-ibm-bluemix-for-exploring-elasticsearch-data\/\">Kibana<\/a>) to be able to see any relevant information.<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-kibana.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-kibana.png\" alt=\"Cloud Foundry Monitoring Centralized Logs Metrics kibana\" width=\"640\" class=\"aligncenter size-full wp-image-28148\" \/><\/a><small>Kibana has a dashboard, which includes graphs<\/small><\/center><\/p>\n<p>As we can see, plenty of work is involved in just having to set up logs in Cloud Foundry. Luckily, ready-to-use solutions are now available: <a href=\"https:\/\/github.com\/cloudfoundry-community\/logsearch-for-cloudfoundry\" target=\"_blank\">Logsearch<\/a> for open-source deployments and <a href=\"https:\/\/network.pivotal.io\/products\/altoros-log-search\" target=\"_blank\">Altoros Log Search<\/a> for Pivotal CF deployments.<\/p>\n<p>To improve log management:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\"><strong>Decrease log level.<\/strong> By default, most Cloud Foundry components have a high log level that includes debug data. Setting this lower helps to avoid the overload of information.<\/li>\n<li><strong>Use the JSON format.<\/strong> Logs in the JSON format are easier to understand and parse, so you might want to consider using it for your application logs.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configuring_metrics\"><\/span>Configuring metrics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>After setting up centralized logs, the next step in creating an ideal monitoring system is to include <a href=\"https:\/\/www.altoros.com\/blog\/cloud-foundry-deployment-metrics-that-matter-most\/\">metrics<\/a>. Simply put, metrics is a collection of data distributed over time. Metrics enable more advanced analysis, for instance:<\/p>\n<ul>\n<li>Creating measurements and proving assumptions<\/li>\n<li>Planning ahead based on predictions<\/li>\n<li>Setting up alerts based on historical data<\/li>\n<\/ul>\n<p>A typical metrics workflow involves collection, storage, visualization, and analysis of data. Commonly, there are two main models of collecting data:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\"><strong>Push.<\/strong> Metrics collectors of each component send information to a time-series database.<\/li>\n<li><strong>Pull.<\/strong> Components have the internal capability to expose metrics at endpoints that can be read by crawlers.<\/li>\n<\/ul>\n<p>Next, data is stored in a time-series database (e.g., <a href=\"https:\/\/graphiteapp.org\/\" target=\"_blank\">Graphite<\/a>) and visualized with an analytics tool (e.g., <a href=\"https:\/\/grafana.com\/\" target=\"_blank\">Grafana<\/a>).<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/07\/Cloud-Foundry-Heartbeat-logging-monitoring-metrics.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/07\/Cloud-Foundry-Heartbeat-logging-monitoring-metrics.png\" alt=\"Cloud Foundry-Heartbeat-logging-monitoring-metrics\" width=\"640\" class=\"aligncenter size-full wp-image-26735\" \/><\/a><small>A monitoring dashboard of Altoros <a href=\"https:\/\/www.altoros.com\/blog\/altoros-heartbeat-adds-full-stack-monitoring-for-pivotal-cloud-foundry\/\">Heartbeat<\/a> using Grafana for visualization<\/small><\/center><\/p>\n<p>Finally, to get any value from the metrics collected, we need to understand and use the data. There are two approaches to analyzing information:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\"><strong>Reactive.<\/strong> Alerts can be configured, so we can troubleshoot after an event occurs.<\/li>\n<li><strong>Proactive.<\/strong> Using historical data and trends, issues can be predicted and avoided before they even happen.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Full-stack_Cloud_Foundry_monitoring\"><\/span>Full-stack Cloud Foundry monitoring<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As already mentioned, Cloud Foundry deployments include several layers. Each and everyone of these layers have metrics that can be collected and monitored.<\/p>\n<p>In most cases, we can collect metrics from the <strong>IaaS<\/strong> itself using internal API or through vendor-specific monitoring systems for proprietary solutions. We can also collect data from virtual machines via metrics collectors.<\/p>\n<p>In Cloud Foundry, almost everything is deployed using <strong>BOSH<\/strong>, so it&#8217;s important to monitor BOSH itself. This can be achieved with the following tools:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\"><a href=\"https:\/\/bosh.io\/docs\/\/hm-config.html\" target=\"_blank\">BOSH Health Monitor<\/a> provides such metrics from virtual machines as CPU, memory, and disk usage.<\/li>\n<li style=\"margin-bottom: 6px;\"><a href=\"https:\/\/github.com\/cloudfoundry-attic\/bosh-hm-forwarder\" target=\"_blank\">BOSH HM Forwarder<\/a> forwards BOSH health metrics to Firehose, enabling all metrics to be located in a single place.<\/li>\n<li><a href=\"https:\/\/network.pivotal.io\/products\/ops-metrics\" target=\"_blank\">PCF JMX Bridge<\/a> exposes metrics through the JMX protocol.<\/li>\n<\/ul>\n<p>Note that these tools only provide basic information and should not be used as a replacement for more comprehensive metrics collectors.<\/p>\n<p>Next, one would also want to monitor <strong>Cloud Foundry<\/strong> and its components. Metrics for Cloud Foundry itself, as well as native Cloud Foundry and third-party components can be collected through Firehose.<\/p>\n<p>Some third-party components are not compatible with Firehose and may need an external metrics collector, such as <a href=\"https:\/\/github.com\/cloudfoundry-community\/collectd-boshrelease\" target=\"_blank\">collectd<\/a>.<\/p>\n<p>Previously, pulling API endpoints for gathering metrics was quite common for monitoring Cloud Foundry components. However, it is better not to use this approach anymore, as some of the endpoints are already deprecated.<\/p>\n<p><center><a href=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/05\/cloud-foundry-deployment-metrics-layers-of-monitoring-v15.png\"><img decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/05\/cloud-foundry-deployment-metrics-layers-of-monitoring-v15.png\" alt=\"cloud-foundry-deployment-metrics-layers-of-monitoring-v15\" width=\"400\" class=\"aligncenter size-full wp-image-23640\" \/><\/a><small>Monitoring Cloud Foundry at all the levels<\/small><\/center><\/p>\n<p>Cloud Foundry <strong>applications<\/strong> can also be monitored. There are a bunch of methods to do so:<\/p>\n<ul>\n<li style=\"margin-bottom: 6px;\">Use Firehose as a standard approach for collecting metrics.<\/li>\n<li style=\"margin-bottom: 6px;\">Integrate specific application performance monitoring tools with Cloud Foundry. While they are comprehensive, they can also be expensive.<\/li>\n<li style=\"margin-bottom: 6px;\">Create your own monitoring system by defining metrics in your application.<\/li>\n<li>Design custom buildpacks that collect predefined metrics.<\/li>\n<\/ul>\n<p>Finally, we also want to monitor <strong>backing services<\/strong>. For instance, popular metrics collectors have plugins for services such as MySQL, MongoDB, and RabbitMQ. On the other hand, some services like Cassandra and Jenkins have the internal capability of exposing metrics. Some backing services deployed via BOSH push metrics through Firehose.<\/p>\n<p>With metrics at every layer as well as centralized logs, the task of monitoring and troubleshooting Cloud Foundry deployments can be made less challenging. Tools such as <a href=\"https:\/\/www.altoros.com\/blog\/heartbeat-v1-0-provides-high-availability-for-full-stack-cloud-foundry-monitoring\/\">Heartbeat<\/a> and <a href=\"https:\/\/network.pivotal.io\/products\/altoros-log-search\" target=\"_blank\">Log Search<\/a> can foster the process.<\/p>\n<p>Want details? Watch <a href=\"https:\/\/www.altoros.com\/webinars\/cloud-foundry-monitoring-how-to-collecting-metrics-and-logs\/\">the recording<\/a> of our webinar on Cloud Foundry monitoring.<\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Related_slides\"><\/span>Related slides<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><center><iframe loading=\"lazy\" src=\"\/\/www.slideshare.net\/slideshow\/embed_code\/key\/1Zq36IE5YaQo0E\" width=\"599\" height=\"487\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;\" allowfullscreen> <\/iframe><\/center><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Further_reading\"><\/span>Further reading<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/cloud-foundry-deployment-metrics-that-matter-most\/\">Cloud Foundry Deployment Metrics That Matter Most<\/a><\/li>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/heartbeat-v1-0-provides-high-availability-for-full-stack-cloud-foundry-monitoring\/\">Heartbeat v1.0 Provides HA for Full-Stack Cloud Foundry Monitoring<\/a><\/li>\n<li><a href=\"https:\/\/www.altoros.com\/blog\/altoros-heartbeat-adds-full-stack-monitoring-for-pivotal-cloud-foundry\/\">Altoros Heartbeat Adds Full-Stack Monitoring for Pivotal Cloud Foundry<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"About_the_expert\"><\/span>About the expert<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div>\n<div style=\"float: right;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/05\/Soroko_bio-150x150.png\" alt=\"Soroko_bio\" width=\"150\" height=\"150\" class=\"aligncenter size-thumbnail wp-image-23607\" \/><\/div>\n<div style=\"width: 600px;\"><small><a href=\"https:\/\/www.altoros.com\/blog\/author\/anton-soroko\/\">Anton Soroko<\/a> is a Senior Cloud Foundry Engineer at Altoros. He has a strong background in system administration, website reliability engineering, and IT infrastructure support. Anton has an extensive experience with monitoring systems that maintain dozens of thousands of servers and hundreds of services. In addition, he has a proven track record of delivering quality solutions as part of system monitoring and continuous integration tasks.<\/small><\/div>\n<\/div>\n<hr\/>\n<p><center><small>The post is written by Carlo Gutierrez with assistance from <a href=\"https:\/\/www.altoros.com\/blog\/author\/anton-soroko\/\">Anton Soroko<\/a> and <a href=\"https:\/\/www.altoros.com\/blog\/author\/alex\/\">Alex Khizhniak<\/a>.<\/small><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding a complicated system<\/p>\n<p>Cloud Foundry deployments are complex ecosystems involving multiple layers, such as IaaS, BOSH, Cloud Foundry itself, applications, and backing services. As cloud operations and DevOps engineers, it is vital to know how each of these components work to be able to troubleshoot errors after they occur, or [&#8230;]<\/p>\n","protected":false},"author":32,"featured_media":28223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[214],"tags":[873,865,206],"class_list":["post-28140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-cloud-native","tag-heartbeat","tag-oss-cloud-foundry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros<\/title>\n<meta name=\"description\" content=\"In this post, we give some tips and tricks on how to simplify monitoring of Cloud Foundry deployments with centralized logging and comprehensive metrics.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros\" \/>\n<meta property=\"og:description\" content=\"Understanding a complicated system Cloud Foundry deployments are complex ecosystems involving multiple layers, such as IaaS, BOSH, Cloud Foundry itself, applications, and backing services. As cloud operations and DevOps engineers, it is vital to know how each of these components work to be able to troubleshoot errors after they occur, or [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/\" \/>\n<meta property=\"og:site_name\" content=\"Altoros\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-29T17:39:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-04T12:39:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Carlo Gutierrez\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carlo Gutierrez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/\",\"url\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/\",\"name\":\"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros\",\"isPartOf\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif\",\"datePublished\":\"2017-09-29T17:39:58+00:00\",\"dateModified\":\"2017-10-04T12:39:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/833e109f77de753b2b472dca0236b442\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage\",\"url\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif\",\"contentUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif\",\"width\":640,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.altoros.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#website\",\"url\":\"https:\/\/www.altoros.com\/blog\/\",\"name\":\"Altoros\",\"description\":\"Insight\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.altoros.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/833e109f77de753b2b472dca0236b442\",\"name\":\"Carlo Gutierrez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2021\/02\/CG_portrait-2-96x96.jpg\",\"contentUrl\":\"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2021\/02\/CG_portrait-2-96x96.jpg\",\"caption\":\"Carlo Gutierrez\"},\"description\":\"Carlo Gutierrez is a Technical Writer at Altoros. As part of the editorial team, his focus has been on emerging technologies such as Cloud Foundry, Kubernetes, blockchain, and the Internet of Things. Prior to Altoros, he primarily wrote about enterprise and consumer technology. Carlo has over 12 years of experience in the publishing industry. Previously, he served as an Editor for PC World Philippines and Questex Asia, as well as a Designer for Tropa Entertainment.\",\"url\":\"https:\/\/www.altoros.com\/blog\/author\/carlo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros","description":"In this post, we give some tips and tricks on how to simplify monitoring of Cloud Foundry deployments with centralized logging and comprehensive metrics.","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:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/","og_locale":"en_US","og_type":"article","og_title":"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros","og_description":"Understanding a complicated system Cloud Foundry deployments are complex ecosystems involving multiple layers, such as IaaS, BOSH, Cloud Foundry itself, applications, and backing services. As cloud operations and DevOps engineers, it is vital to know how each of these components work to be able to troubleshoot errors after they occur, or [...]","og_url":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/","og_site_name":"Altoros","article_published_time":"2017-09-29T17:39:58+00:00","article_modified_time":"2017-10-04T12:39:44+00:00","og_image":[{"width":640,"height":360,"url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif","type":"image\/gif"}],"author":"Carlo Gutierrez","twitter_misc":{"Written by":"Carlo Gutierrez","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/","url":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/","name":"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels | Altoros","isPartOf":{"@id":"https:\/\/www.altoros.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage"},"image":{"@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage"},"thumbnailUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif","datePublished":"2017-09-29T17:39:58+00:00","dateModified":"2017-10-04T12:39:44+00:00","author":{"@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/833e109f77de753b2b472dca0236b442"},"breadcrumb":{"@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#primaryimage","url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif","contentUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2017\/09\/Cloud-Foundry-Monitoring-Centralized-Logs-Metrics-monitoring-v3.gif","width":640,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/www.altoros.com\/blog\/using-centralized-logs-and-metrics-to-monitor-cloud-foundry-across-all-levels\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.altoros.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Centralized Logs and Metrics to Monitor Cloud Foundry Across All Levels"}]},{"@type":"WebSite","@id":"https:\/\/www.altoros.com\/blog\/#website","url":"https:\/\/www.altoros.com\/blog\/","name":"Altoros","description":"Insight","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.altoros.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/833e109f77de753b2b472dca0236b442","name":"Carlo Gutierrez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.altoros.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2021\/02\/CG_portrait-2-96x96.jpg","contentUrl":"https:\/\/www.altoros.com\/blog\/wp-content\/uploads\/2021\/02\/CG_portrait-2-96x96.jpg","caption":"Carlo Gutierrez"},"description":"Carlo Gutierrez is a Technical Writer at Altoros. As part of the editorial team, his focus has been on emerging technologies such as Cloud Foundry, Kubernetes, blockchain, and the Internet of Things. Prior to Altoros, he primarily wrote about enterprise and consumer technology. Carlo has over 12 years of experience in the publishing industry. Previously, he served as an Editor for PC World Philippines and Questex Asia, as well as a Designer for Tropa Entertainment.","url":"https:\/\/www.altoros.com\/blog\/author\/carlo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/28140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/comments?post=28140"}],"version-history":[{"count":53,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/28140\/revisions"}],"predecessor-version":[{"id":28245,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/posts\/28140\/revisions\/28245"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/media\/28223"}],"wp:attachment":[{"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/media?parent=28140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/categories?post=28140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.altoros.com\/blog\/wp-json\/wp\/v2\/tags?post=28140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}