<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lirlia</author_name>
  <author_url>https://blog.hatena.ne.jp/lirlia/</author_url>
  <blog_title>フラミナル</blog_title>
  <blog_url>https://blog.framinal.life/</blog_url>
  <categories>
    <anon>stackdriver</anon>
    <anon>collectd</anon>
    <anon>GCP</anon>
    <anon>Metrics</anon>
  </categories>
  <description>GoとかPythonでOpenCensusでいちいち書くのが煩わしすぎるので、手軽にシェルでstackdriverでメトリクスを送信する方法です。 元ネタ stackoverflow.com /home/testuser/test.sh duした値を出力するだけです。 #!/bin/bash INTERVAL=10 HOSTNAME=test FOLDER=&quot;/home/testuser&quot; while true; do DU=$(du -sm ${FOLDER} | awk '{print $1}') # https://collectd.org/documentation/manpages/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.framinal.life%2Fentry%2F2021%2F10%2F02%2F012518&quot; title=&quot;【stackdriver】 PUTVALでカスタムメトリクスを送信する(collectd経由) - フラミナル&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/l/lirlia/20211002/20211002011928.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-02 01:25:18</published>
  <title>【stackdriver】 PUTVALでカスタムメトリクスを送信する(collectd経由)</title>
  <type>rich</type>
  <url>https://blog.framinal.life/entry/2021/10/02/012518</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
