Skip to content

Instantly share code, notes, and snippets.

View yosukehara's full-sized avatar

Yosuke Hara yosukehara

View GitHub Profile

Set up InfluxDB, Grafana and Telegraf for LeoFS's Storage (Ubuntu)

Install influxdb

$ wget https://s3.amazonaws.com/influxdb/influxdb_nightly_amd64.deb
$ sudo dpkg -i influxdb_nightly_amd64.deb
$ sudo service influxdb start

Install Grafana

Preparation

Build PLT files. (Get types of core libraries.) The file .dialyzer_plt is created in your home directory. It will take time (more than a minute).

$ dialyzer --build_plt --apps erts kernel stdlib crypto mnesia sasl common_test eunit
@mocchira
mocchira / s3siggen.erl
Created October 23, 2013 08:59
calc AWS Auht header with leofs default user
-module(s3siggen).
-export([gen_sig/2]).
-include("leo_s3_auth.hrl").
-define(S3_ACC_KEY, "05236").
-define(S3_SEC_KEY, "802562235").
-define(S3_CONTENT_TYPE, "application/octet-stream").