<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goyoki</author_name>
  <author_url>https://blog.hatena.ne.jp/goyoki/</author_url>
  <blog_title>千里霧中</blog_title>
  <blog_url>https://goyoki.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>監視対象が動的に増減するような状況においてPrometheusで監視を行う場合、サービスティスカバリ機能が便利です。今回はその例として、Prometheusのファイルサービスディスカバリで監視対象を動的に変更する方法についてまとめます。 動作環境の構築 まずdocker-composeで最低限の環境を構築します。 次のディレクトリ構成を用意します。 docker-compose.yaml prometheus/ prometheus.yaml targets.jsondocker-compose.yamlは次の通りです。prometheusとnode-exporterのdockerコンテナを用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoyoki.hatenablog.com%2Fentry%2F2020%2F04%2F21%2F214440&quot; title=&quot;Prometheusでファイルサービスディスカバリを使って監視対象を動的に変える - 千里霧中&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://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;MarketPlace=JP&amp;ASIN=4873118778&amp;ServiceVersion=20070822&amp;ID=AsinImage&amp;WS=1&amp;Format=_SL160_&amp;tag=i006-22</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-21 21:44:40</published>
  <title>Prometheusでファイルサービスディスカバリを使って監視対象を動的に変える</title>
  <type>rich</type>
  <url>https://goyoki.hatenablog.com/entry/2020/04/21/214440</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
