<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>OpenSearch on Ingenboy.inc</title>
    <link>https://blog.ingenboy.com/tags/opensearch/</link>
    <description>Recent content in OpenSearch on Ingenboy.inc</description>
    <image>
      <title>Ingenboy.inc</title>
      <url>https://blog.ingenboy.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.ingenboy.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.152.2</generator>
    <language>en</language>
    <lastBuildDate>Sun, 23 Feb 2025 00:38:12 +0900</lastBuildDate>
    <atom:link href="https://blog.ingenboy.com/tags/opensearch/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>O11y</title>
      <link>https://blog.ingenboy.com/post/o11y/</link>
      <pubDate>Sun, 23 Feb 2025 00:38:12 +0900</pubDate>
      <guid>https://blog.ingenboy.com/post/o11y/</guid>
      <description>&lt;h1 id=&#34;oss-o11y-最強セット&#34;&gt;oss o11y 最強セット&lt;/h1&gt;
&lt;p&gt;題名の通り。
o11yを実施するためのoss最強セットです。
構築していきたいと思います。&lt;/p&gt;
&lt;h1 id=&#34;環境&#34;&gt;環境&lt;/h1&gt;
&lt;p&gt;hugo_server : Grafana, Gateway&lt;/p&gt;
&lt;p&gt;hugo_server -&amp;gt; jhonny : Openvpn tunneling&lt;/p&gt;
&lt;p&gt;jhonny : Prometheus, Opensearch, (maybe kafka?)&lt;/p&gt;
&lt;h1 id=&#34;集めたいデータ&#34;&gt;集めたいデータ&lt;/h1&gt;
&lt;h2 id=&#34;gslb周り&#34;&gt;GSLB周り&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;GSLBのHCデータ&lt;/li&gt;
&lt;li&gt;GSLBのアクセスログ&lt;/li&gt;
&lt;li&gt;GSLB clusterの各ノードの状態&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;openvpn周り&#34;&gt;openvpn周り&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;vpnserverのログ&lt;/li&gt;
&lt;li&gt;vpnserverのステータス&lt;/li&gt;
&lt;/ol&gt;
&lt;h1 id=&#34;構築&#34;&gt;構築&lt;/h1&gt;
&lt;h2 id=&#34;grafana&#34;&gt;Grafana&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;apt install grafana-serverでインストール&lt;/li&gt;
&lt;li&gt;sudo systemctl enable grafana-serverでデーモン化&lt;/li&gt;
&lt;li&gt;sudo vim /etc/grafana/grafana.ini でホストヘッダーを設定&lt;/li&gt;
&lt;li&gt;sudo vim /etc/nginx/nginx.confでプロキシの設定&lt;/li&gt;
&lt;li&gt;grafanaにアクセス。初期ユーザ、パスワード：admin,admin&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;prometheus&#34;&gt;prometheus&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;公式からprometheusのbinary + 設定ファイルのtarをダウンロード
&lt;a href=&#34;https://prometheus.io/docs/prometheus/latest/getting_started/&#34;&gt;ref&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;設定ファイルやbinaryを移動する
/etc/prometheus/prometheus.yml、/var/lib/prometheus/data/、&lt;/li&gt;
&lt;li&gt;ユニットファイルを作る（/lib/systemd/system/prometheus.service）&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Unit]
Description=Prometheus Server
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/local/bin/prometheus \
  --config.file=/etc/prometheus/prometheus.yml \
  --storage.tsdb.path=/var/lib/prometheus/data \
  --web.listen-address=0.0.0.0:9090

Restart=always
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;sudo systemctl daemon-reload&lt;/li&gt;
&lt;li&gt;sudo systemctl start prometheus&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;という感じですね。完璧ですー。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
