{"id":1663,"date":"2023-08-01T19:43:59","date_gmt":"2023-08-01T18:43:59","guid":{"rendered":"https:\/\/thomas-kopton.de\/vblog\/?p=1663"},"modified":"2023-08-01T19:48:22","modified_gmt":"2023-08-01T18:48:22","slug":"multiple-metrics-with-aria-operations-telegraf-custom-scripts","status":"publish","type":"post","link":"https:\/\/thomas-kopton.de\/vblog\/?p=1663","title":{"rendered":"Multiple Metrics with Aria Operations Telegraf Custom Scripts"},"content":{"rendered":"\n<p>When using <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">VMware Aria Operations<\/mark>, integrating <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">telegraf<\/mark> can significantly enhance your monitoring capabilities, provide more extensive and customizable data collection, and help ensure the performance, availability, and efficiency of your infrastructure and applications.<\/p>\n\n\n\n<p>Utilizing the telegraf agent you can run custom scripts in the end point VM and collect custom data which can then be consumed as a metric.<\/p>\n\n\n\n<p>One very important constraint is that the <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">script has to delivery exactly one int64 value.<\/mark><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Problem Statement<\/h5>\n\n\n\n<p>If you need to return multiple values or even multiple decimals or floating point values you will need to have multiple scripts for every single value and encode and decode any decimals or floating point metrics.<\/p>\n\n\n\n<p>Even if configuring and running multiple scripts is a doable approach sometimes you have one script providing multiple metrics and breaking down such single script into multiple ones is not an option.<\/p>\n\n\n\n<p>Challenge now is: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">how to put the multiple metrics into one value and how to revert this one value back into multiple metrics<\/mark>. Basically an <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">encode &#8211; decode problem statement<\/mark>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Solution<\/h5>\n\n\n\n<p>Let&#8217;s start with some basics in math and recall how the <strong>decimal system<\/strong> works. For this I will refresh your memories deconstructing a large number into small pieces &#8211; <strong>420230133702600<\/strong>. The following picture shows how this number looks like in the decimal system. I have truncated the sum expression for visibility but you get the point, the number is the sum of it positional values multiplied with the corresponding power of 10.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"226\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1024x226.png\" alt=\"\" class=\"wp-image-1668\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1024x226.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-300x66.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-768x170.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1536x339.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-2048x452.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The idea now is very simple. I will encode two values (in my working use case I use two but it works for any number as long as inn the end it fits into <strong>int64<\/strong>) into a larger number using the positions within this single number as displayed in the next picture for four independent values: <code>7, 62, 230, 4200<\/code> which will give es one number &#8211; <code>7622304200<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1.png\" alt=\"\" class=\"wp-image-1670\" width=\"370\" height=\"239\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1.png 740w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-1-300x194.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 02: Encoding four numbers into one number.<\/em><\/figcaption><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">So how to do that encoding mathematically?<\/h6>\n\n\n\n<p>Depending on the length of the single numbers we need to determine the power of 10 at the position where this single number should start within the final value. 4200 starts at 10^0, 230 at 10^4, 62 at 10^7 and 7 at 10^9. The sum is our single value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>4200 * 10^0 + \n230  * 10^4 +\n62   * 10^7 +\n7    * 10^9 = 4.200 + 2.300.000 + 620.000.000 + 7.000.000.000 = 7622304200<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">And now, how to decode that number back into single values?<\/h6>\n\n\n\n<p>What we have now is one large number with encoded four values, <code>n1, n2, n3, n4<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\" alt=\"\" class=\"wp-image-1675\" width=\"395\" height=\"291\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png 790w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3-300x221.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3-768x566.png 768w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 03: Encoding four numbers into one number and the resulting sum.<\/em><\/figcaption><\/figure>\n\n\n\n<p>The math goes backwards this time, and we need two additional mathematical expressions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>floor()<\/code><\/strong> always rounds down and returns the largest integer less than or equal to a given number<\/li>\n\n\n\n<li>the <strong>modulo<\/strong> (mod, or %) operation returns the remainder or signed remainder of a division<\/li>\n<\/ul>\n\n\n\n<p>We start with the most left number and divide it by its starting power of 10 and apply the <strong><code>floor()<\/code><\/strong> function to the result of the division. The subsequent numbers further to the right need a slightly different approach:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>divide the single large number <code>modulo<\/code> by the power of 10 corresponding to the beginning of the previous number to the left<\/li>\n\n\n\n<li>divide the result of the previous step by the power of 10 corresponding to the beginning of the actual number we want to extract<\/li>\n\n\n\n<li>apply the <strong><code>floor()<\/code><\/strong> function to the result of the previous step<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>n1 = floor(7622304200 \/ 10^9) = 7\nn2 = floor((7622304200 mod 10^9) \/ 10^7) = 62\nn3 = floor((7622304200 mod 10^7) \/ 10^4) = 230\nn4 = floor((7622304200 mod 10^4) \/ 10^0) = 4200<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">How to do all of it in Aria Operations and telegraf?<\/h6>\n\n\n\n<p>In my easy to follow example I need to get two metrics from a Virtual Machine using <strong>telegraf custom script<\/strong>. For simplicity it is <code>CPU usage in %<\/code> with values between 0.0 and 100.0 and <code>memory usage in MB<\/code> ranging theoretically from 0 to 1816 according to the configuration of my VM. I know, we have these metrics in Aria Operations OOTB but this is just an example.<\/p>\n\n\n\n<p>First of all we need to agree on a format to encode both metrics as shown in the next picture. As the CPU usage might become 100.0% and we need to get rid of the decimal value, we need to multiply every CPU usage value by 10, thus we need four positions for this metric.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-4.png\" alt=\"\" class=\"wp-image-1678\" width=\"318\" height=\"189\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-4.png 636w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-4-300x178.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 04: Encoding two numbers into one number and their positions.<\/em><\/figcaption><\/figure>\n\n\n\n<p>The steps are as follows:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Convert the decimal value into integer. It is one figure precision so simply multiply by 10<\/li>\n\n\n\n<li>Convert both values into one value. Again my assumptions:\n<ul class=\"wp-block-list\">\n<li>first number will be 0 >= n1 &lt;= 1000, thus four digits<\/li>\n\n\n\n<li>Second number will be (due to my config) also 0 >= n2 &lt;= 1000, thus four digits<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>This is the shell script to calculate both values and encode them into one <code>int64<\/code> number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n# This script returns current CPU and memory usage values\n\ncpuUsage=$(top -bn1 | awk '\/Cpu\/ { print $2}')\nmemUsage=$(free -m | awk '\/Mem\/{print $3}')\n\n# echo \"CPU Usage: $cpuUsage%\"\n# echo \"Memory Usage: $memUsage MB\"\n\nn1=$cpuUsage\nn2=$memUsage\n\n# Calculate the sum using bc\nsum=$(echo \"($n1*10*10^0)+($n2*10^4)\" | bc)\n\n# Print the result\n# echo \"Sum: $sum\"\n\noutput=${sum%.*}\necho $output<\/code><\/pre>\n\n\n\n<p>Now we can configure the script as telegraf custom script as show in the next picture where I run my telegraf on a Linux VM.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-1024x434.png\" alt=\"\" class=\"wp-image-1683\" width=\"840\" height=\"356\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-1024x434.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-300x127.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-768x326.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-1536x651.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-5-2048x869.png 2048w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 05: Configuration of the telegraf custom script.<\/em><\/figcaption><\/figure>\n\n\n\n<p>After few minute you will see the new metric coming in.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-1024x283.png\" alt=\"\" class=\"wp-image-1684\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-1024x283.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-300x83.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-768x212.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-1536x425.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-6-2048x567.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 06: Telegraf custom script and ist new metric &#8211; the single large number.<\/em><\/figcaption><\/figure>\n\n\n\n<p>As last task we need to extract or decode the single values for CPU and memory usage from this number. <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Aria Operations Super Metrics<\/mark> are the best way to do this.<\/p>\n\n\n\n<p>The next two pictures show both super metrics. Important to know is, that this are not so called <code>THIS Super Metrics<\/code> as the metric provided by the custom script is not added to the VM object itself but to the <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Custom Script object <\/mark>related to the VM, thus the <code>depth=0<\/code> in the Super Metric formula.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-1024x397.png\" alt=\"\" class=\"wp-image-1685\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-1024x397.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-300x116.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-768x298.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-1536x596.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-7-2048x795.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 07: Super Metric to decode the first number &#8211; memory usage.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-1024x328.png\" alt=\"\" class=\"wp-image-1686\" width=\"840\" height=\"269\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-1024x328.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-300x96.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-768x246.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-1536x492.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-8-2048x656.png 2048w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 08: Super Metric to decode the second number &#8211; CPU usage.<\/em><\/figcaption><\/figure>\n\n\n\n<p>You can find the script and the Super Metrics here: <a href=\"https:\/\/github.com\/tkopton\/aria-operations-content\/tree\/main\/telegraf-script-multimetric\">https:\/\/github.com\/tkopton\/aria-operations-content\/tree\/main\/telegraf-script-multimetric<\/a><\/p>\n\n\n\n<p>The final result is shown in the next picture.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"625\" src=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-1024x625.png\" alt=\"\" class=\"wp-image-1689\" srcset=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-1024x625.png 1024w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-300x183.png 300w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-768x469.png 768w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-1536x938.png 1536w, https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-9-2048x1251.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>Figure 09: Both Super Metrics and the single large number returned by the custom script.<\/em><\/figcaption><\/figure>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Stay<\/mark><\/strong> <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#f5d800\" class=\"has-inline-color\">safe<\/mark><\/strong>.<\/p>\n\n\n\n<p>Thomas \u2013&nbsp;<a href=\"https:\/\/twitter.com\/ThomasKopton\">https:\/\/twitter.com\/ThomasKopton<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using VMware Aria Operations, integrating telegraf can significantly enhance your monitoring capabilities, provide more extensive and customizable data collection, and help ensure the performance, availability, and efficiency of your infrastructure and applications. Utilizing the telegraf agent you can run custom scripts in the end point VM and collect custom data which can then be &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1675,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57,39,15,14,75,2],"tags":[58,18,4,43,3],"class_list":["post-1663","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aria-operations","category-content","category-super-metric","category-supermetric","category-telegraf","category-vrops","tag-aria-operations","tag-super-metric","tag-supermetric","tag-telegraf","tag-vrops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps\" \/>\n<meta property=\"og:description\" content=\"When using VMware Aria Operations, integrating telegraf can significantly enhance your monitoring capabilities, provide more extensive and customizable data collection, and help ensure the performance, availability, and efficiency of your infrastructure and applications. Utilizing the telegraf agent you can run custom scripts in the end point VM and collect custom data which can then be ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\" \/>\n<meta property=\"og:site_name\" content=\"TOMsOps\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-01T18:43:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-01T18:48:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"790\" \/>\n\t<meta property=\"og:image:height\" content=\"582\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Thomas Kopton\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thomas Kopton\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#article\",\"isPartOf\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\"},\"author\":{\"name\":\"Thomas Kopton\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82\"},\"headline\":\"Multiple Metrics with Aria Operations Telegraf Custom Scripts\",\"datePublished\":\"2023-08-01T18:43:59+00:00\",\"dateModified\":\"2023-08-01T18:48:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\"},\"wordCount\":944,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage\"},\"thumbnailUrl\":\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\",\"keywords\":[\"Aria Operations\",\"Super Metric\",\"SuperMetric\",\"Telegraf\",\"vROps\"],\"articleSection\":[\"Aria Operations\",\"Content\",\"Super Metric\",\"SuperMetric\",\"telegraf\",\"vROps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\",\"url\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\",\"name\":\"Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps\",\"isPartOf\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage\"},\"image\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage\"},\"thumbnailUrl\":\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\",\"datePublished\":\"2023-08-01T18:43:59+00:00\",\"dateModified\":\"2023-08-01T18:48:22+00:00\",\"author\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82\"},\"breadcrumb\":{\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thomas-kopton.de\/vblog\/?p=1663\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage\",\"url\":\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\",\"contentUrl\":\"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png\",\"width\":790,\"height\":582},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/?p=1663#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thomas-kopton.de\/vblog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multiple Metrics with Aria Operations Telegraf Custom Scripts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#website\",\"url\":\"https:\/\/thomas-kopton.de\/vblog\/\",\"name\":\"TOMsOps\",\"description\":\"Just another VMware Cloud Management Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thomas-kopton.de\/vblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82\",\"name\":\"Thomas Kopton\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e746aafbd3733172ceb4d600ba1feda61bc87cd3b70f5a9dfb581907cc7973b1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e746aafbd3733172ceb4d600ba1feda61bc87cd3b70f5a9dfb581907cc7973b1?s=96&d=mm&r=g\",\"caption\":\"Thomas Kopton\"},\"url\":\"https:\/\/thomas-kopton.de\/vblog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps","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:\/\/thomas-kopton.de\/vblog\/?p=1663","og_locale":"en_US","og_type":"article","og_title":"Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps","og_description":"When using VMware Aria Operations, integrating telegraf can significantly enhance your monitoring capabilities, provide more extensive and customizable data collection, and help ensure the performance, availability, and efficiency of your infrastructure and applications. Utilizing the telegraf agent you can run custom scripts in the end point VM and collect custom data which can then be ...","og_url":"https:\/\/thomas-kopton.de\/vblog\/?p=1663","og_site_name":"TOMsOps","article_published_time":"2023-08-01T18:43:59+00:00","article_modified_time":"2023-08-01T18:48:22+00:00","og_image":[{"width":790,"height":582,"url":"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png","type":"image\/png"}],"author":"Thomas Kopton","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Thomas Kopton","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#article","isPartOf":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663"},"author":{"name":"Thomas Kopton","@id":"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82"},"headline":"Multiple Metrics with Aria Operations Telegraf Custom Scripts","datePublished":"2023-08-01T18:43:59+00:00","dateModified":"2023-08-01T18:48:22+00:00","mainEntityOfPage":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663"},"wordCount":944,"commentCount":2,"image":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage"},"thumbnailUrl":"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png","keywords":["Aria Operations","Super Metric","SuperMetric","Telegraf","vROps"],"articleSection":["Aria Operations","Content","Super Metric","SuperMetric","telegraf","vROps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thomas-kopton.de\/vblog\/?p=1663#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663","url":"https:\/\/thomas-kopton.de\/vblog\/?p=1663","name":"Multiple Metrics with Aria Operations Telegraf Custom Scripts - TOMsOps","isPartOf":{"@id":"https:\/\/thomas-kopton.de\/vblog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage"},"image":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage"},"thumbnailUrl":"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png","datePublished":"2023-08-01T18:43:59+00:00","dateModified":"2023-08-01T18:48:22+00:00","author":{"@id":"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82"},"breadcrumb":{"@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thomas-kopton.de\/vblog\/?p=1663"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#primaryimage","url":"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png","contentUrl":"https:\/\/thomas-kopton.de\/vblog\/wp-content\/uploads\/2023\/08\/image-3.png","width":790,"height":582},{"@type":"BreadcrumbList","@id":"https:\/\/thomas-kopton.de\/vblog\/?p=1663#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thomas-kopton.de\/vblog"},{"@type":"ListItem","position":2,"name":"Multiple Metrics with Aria Operations Telegraf Custom Scripts"}]},{"@type":"WebSite","@id":"https:\/\/thomas-kopton.de\/vblog\/#website","url":"https:\/\/thomas-kopton.de\/vblog\/","name":"TOMsOps","description":"Just another VMware Cloud Management Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thomas-kopton.de\/vblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/892d6b96c66b1dd4b75c6e32fdbfea82","name":"Thomas Kopton","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thomas-kopton.de\/vblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e746aafbd3733172ceb4d600ba1feda61bc87cd3b70f5a9dfb581907cc7973b1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e746aafbd3733172ceb4d600ba1feda61bc87cd3b70f5a9dfb581907cc7973b1?s=96&d=mm&r=g","caption":"Thomas Kopton"},"url":"https:\/\/thomas-kopton.de\/vblog\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/posts\/1663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1663"}],"version-history":[{"count":19,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/posts\/1663\/revisions"}],"predecessor-version":[{"id":1692,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/posts\/1663\/revisions\/1692"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=\/wp\/v2\/media\/1675"}],"wp:attachment":[{"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-kopton.de\/vblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}