鈍足ランナーのIT日記

走るのが好きな5流のITエンジニアのブログ。

趣味の範囲は広いけど、どれも中途半端なクソブロガー楽しめるWebアプリを作ってあっと言わせたい。サーバーサイドPerl(Mojolicious)、クライアントサイドVue.js。Arduinoにも触手を伸ばす予定。

マカレル使うか

以前インストールして全く使っていなかったのでGratanリリースしたので
監視して見ますか。


soudai.hatenablog.com

mackerel-agentのインストール

nginxのビルド

cd nginx-x.x.x   // ソースを解凍したディレクトリ
./configure --prefix=/usr/local/nginx --with-http_ssl_module --without-http_uwsgi_module --with-http_realip_module --add-module=./ngx_aws_auth --with-debug --with-http_stub_status_module
make
make install

nginx_statusの有効化

nginx.confの編集

        location /nginx_status {
            stub_status on;
            access_log off;
            allow 127.0.0.1;
            deny all;
        }

なんかグラフでない

qiita.com

なんかnginxのプラグインの設定かくとエージェントが起動失敗する

/etc/mackerel-agent/mackerel-agent.confのapi_keyを記述するいちが[plugin.metrics.nginx]より
後ろだったためのようでした。前の方にapi_keyの記述を移動して上げたら無事起動できました。