scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

Install Grafana and InfluxDB to store and visualize benchmark results. #211

Closed retronym closed 6 years ago

adriaanm commented 7 years ago

EC2-wise, I created an m4.large instance (named influxdb) in us-west-1c (vpc-99b04cfc / subnet-4bb3b80d) from image ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20161214 (ami-d8bdebb8)

there are three ebs devices, sda1 is the 8GiB root, sdb a 16GiB ssd (gp2), sdc has 32GiB

the security group allows inbound ssh and http at 3000,8083-8086

retronym commented 7 years ago
    2  wget https://dl.influxdata.com/influxdb/releases/influxdb_1.1.1_amd64.deb
    3  md5sum influxdb_1.1.1_amd64.deb
    4  sudo dpkg -i influxdb_1.1.1_amd64.deb
    5  wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.0.2-1481203731_amd64.deb
    6  sudo apt-get install -y adduser libfontconfig
    7  sudo dpkg -i grafana_4.0.2-1481203731_amd64.deb
    9  sudo vim /etc/grafana/grafana.ini
   11  sudo systemctl start influxdb
   13  sudo systemctl status influxdb
   15  sudo systemctl daemon-reload
   16  sudo systemctl start grafana-server
   17  sudo systemctl status grafana-server
   18  sudo systemctl enable grafana-server.service
   19  sudo systemctl enable influxdb.service
   21  sudo vi /etc/influxdb/influxdb.conf
   39  vim /var/log/grafana/grafana.log
   40  sudo vim /var/log/grafana/grafana.log

I can't get GitHub auth to work for Grafana, having problems similar to https://github.com/grafana/grafana/issues/2451

Influx setup:

> CREATE DATABASE scala_benchmark
> USE scala_benchmark
Using database scala_benchmark
> CREATE USER "admin" WITH PASSWORD '<removed>' WITH ALL PRIVILEGES
> CREATE USER "scala" WITH PASSWORD '<removed>'
> GRANT ALL ON scala_benchmark TO "scala"
adriaanm commented 7 years ago

nginx: https://github.com/scala/scala-jenkins-infra/pull/212

SethTisue commented 6 years ago

I believe this is considered complete now, reopen if not