外部 collectd サーバーを設置
your GitHub Enterprise Server instanceにcollectd の転送をま� 有効にしていない� �合は、外部の collectd サーバを設置する必要があります。 collectd サーバは、collectd 5.x 以降のバージョンを実行している必要があります。
- collectdサーバにログインする
- collectdを作成、または編集することで、ネットワークプラグインをロードし、適切な値をサーバとポートのディレクティブに追� する。 たいていのディストリビューションでは、これは- /etc/collectd/collectd.confにあります。
collectd サーバを実行するための見本のcollectd.conf
LoadPlugin network
...
...
<Plugin network>
    Listen "0.0.0.0" "25826"
</Plugin>
GitHub Enterpriseでcollectd転送を有効にする
デフォルトでは、collectd 転送は GitHub Enterprise で無効になっています。 次の手� �に従って、collectd 転送を有効にして設定します。
- 
From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .  
- 
If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.  
- 
左のサイドバーでManagement Consoleをクリックしてく� さい。  
- 
ログの転送設定の下にある、Enable collectd forwarding を選択する 
- 
Server address の欄には GitHub Enterpriseのアプライアンスの統計を転送したい collectdサーバのアドレスを入力する。
- 
Portの欄には、 collectdサーバーに接続するためのポートを入力する。 (デフォルトは 25826)
- 
Cryptographic setup のドロップダウンメニューでは、 collectdサーバーとのコミュニケーションのセキュリティーレベルを選択する。 (なし、署名付きパケット、または暗号化されたパケット。)
- 
左のサイドバーの下でSave settings(設定の保存)をクリックしてく� さい。  Note: Saving settings in the Management Console restarts system services, which could result in user-visible downtime. 
- 
設定が完了するのを待ってく� さい。  
collectd データの ghe-export-graphsでのエクスポート
ghe-export-graphs のコマンドラインツールは、collectd が RRD データベースに保存するデータをエクスポートします。 This command turns the data into XML and exports it into a single tarball (.tgz).
その主な用途は、Support Bundleを一括ダウンロードする必要なく、GitHub Enterprise Supportのチー� に仮想マシンのパフォーマンスに関するデータ提供することです。 定期的なバックアップエクスポートに含めてはなりません。また、その逆のインポートもありません。 GitHub Enterprise Supportに連絡したとき、問題解決を容易にするため、このデータが必要となる� �合があります。
使い方
ssh -p 122 admin@[hostname] -- 'ghe-export-graphs' && scp -P 122 admin@[hostname]:~/graphs.tar.gz .トラブルシューティング
中心の collectd サーバはデータを受信していない
GitHub Enterprise は collectd バージョン 5.x に付属しています。 collectd 5.x は、4.x リリースシリーズとの下位互換性がありません。 your GitHub Enterprise Server instanceから送られるデータを受信するには、中心のcollectdサーバは 5.x 以上のバージョンでなければなりません。
他に質問や問題がある� �合、GitHub Enterprise Supportまでお問い合わせく� さい。