弊社のポート監視インテグレーションは、TCP、UDP などのネットワーク ポートのステータスを監視し、稼働時間や停止データをNew Relicに報告します。

ヒント
この統合はGithub 上でオープンソースとして公開されています。 最新のアップデートについては、変更ログもそこで入手できます。
統合をインストールする
インテグレーションをインストールするには、以下の手順に従ってください。
インフラストラクチャエージェントをインストールします
ポート監視インテグレーションを使用するには、まず同じホストにインフラストラクチャエージェントをインストールする必要があります。 すべてのオンホスト インテグレーションには、メトリックをNew Relicに公開してレポートするインフラストラクチャ エージェントが必要です。
インテグレーションをダウンロードして準備する
GitHub リポジトリからプラットフォーム用のリリースを選択してダウンロードします。例えば:
bash$wget https://github.com/newrelic/nri-port-monitor/releases/download/1.4/nri-port-monitor_x86_64.tar.gz && tar -zxvf nri-port-monitor_x86_64.tar.gznri-port-monitor実行ファイルを/var/db/newrelic-infra/newrelic-integrationsにコピーします。port-monitor-config.ymlをコピー/etc/newrelic-infra/integrations.dbash$cp nri-port-monitor /var/db/newrelic-infra/newrelic-integrations && cp port-monitor-config.yml /etc/newrelic-infra/integrations.dバイナリ ファイル
nri-port-monitorの実行権限を設定して、正しく実行できるようにします。bash$chmod +x /var/db/newrelic-infra/newrelic-integrations/nri-port-monitor
統合を構成する
port-monitor-config.ymlを開き、監視したいすべてのポート インスタンスを含む構成を編集します (監視するアドレス/ポートごとに複数のスタンザを統合ブロックに追加します)。インテグレーション:
名前: nri-port-モニター 間隔: 60 秒 環境:
ネットワークの種類。既知のネットワークは次のとおりです。
tcp、tcp4(IPv4のみ)、tcp6(IPv6のみ)、
udp、udp4(IPv4のみ)、udp6(IPv6のみ)、
ip、ip4(IPv4のみ)、ip6(IPv6のみ)、
unix、unixgram、unixpacket
ネットワーク: tcp
確認するアドレス(ホスト:ポートの形式)
アドレス: localhost:80
タイムアウト(秒)
タイムアウト: 5 ラベル: env: production
</Step><Step>## Find your data [#find-data]To easily find your Port Monitoring data, download our pre-built dashboard:
Go to one.newrelic.com and click on + Integrations & Agents.
Click on Dashboards tab.
In the search box, search for Port Monitoring.
Click on the Port Monitoring dashboard to install it.
Here's an example NRQL query that returns the status of configured ports:
SELECT latest(status) FROM NetworkPortSample FACET address SINCE 30 MINUTES AGO TIMESERIES