<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba-yan</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba-yan/</author_url>
  <blog_title>しばやん雑記</blog_title>
  <blog_url>https://blog.shibayan.jp/</blog_url>
  <categories>
    <anon>Azure</anon>
    <anon>Azure Cosmos DB</anon>
    <anon>Azure Monitor</anon>
  </categories>
  <description>仕事で Cosmos DB を使ってアプリケーションを書きましたが、最近はあらかじめ割り当てておいた RU を突き抜けることがあって原因の調査を行っていました。その時に Cosmos DB のメトリックだけではコレクション別でしか RU を確認出来ず、Application Insights では処理時間しか取得されておらず不便だったので、自前で消費した RU を送信するようにしました。RU を送信する処理は Repository のベースクラスに仕込んだので、少しの修正だけで済みました。上で挙げたサンプルクラスに以下のような処理を追加して、適当なタイミングで呼び出しているだけです。RU 以外…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayan.jp%2Fentry%2F2017%2F12%2F04%2F232918&quot; title=&quot;Application Insights に Cosmos DB で消費された RUs を送信すると非常に捗った話 - しばやん雑記&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/s/shiba-yan/20171204/20171204230014.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-04 23:29:18</published>
  <title>Application Insights に Cosmos DB で消費された RUs を送信すると非常に捗った話</title>
  <type>rich</type>
  <url>https://blog.shibayan.jp/entry/2017/12/04/232918</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
