Skip to content

Instantly share code, notes, and snippets.

Last active December 20, 2019 16:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# タイムゾーン設定
$ sudo timedatectl set-timezone Asia/Tokyo

# Graphiteインストール
$ sudo apt update && sudo apt install -y apache2 libapache2-mod-wsgi graphite-web graphite-carbon python-whisper
$ sudo rm -f /etc/apache2/sites-enabled/000-default.conf
$ sudo ln -s /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-enabled/
$ sudo systemctl restart apache2

# の手順でデータディスクを /var/lib/graphite/whisper にマウント

# の手順でmackerel-agentをインストール

# の手順でmackerel-agent-pluginsをインストール

# mackerel-agentのメトリック収集の設定
$ sudo bash -c 'cat << EOF >> /etc/mackerel-agent/mackerel-agent.conf
command = "mackerel-plugin-graphite -type cache -webhost"
$ sudo systemctl restart mackerel-agent

# 負荷テストツール haggar のインストール
$ sudo apt install -y golang
$ echo "PATH=$PATH:~/go/bin" >> ~/.bashrc
$ source ~/.bashrc
$ go get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment