wget https://dl.grafana.com/oss/release/grafana_6.0.1_amd64.deb
sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_6.0.1_amd64.deb
Semicolons (the ; char) are the standard way to comment out lines in a .ini file. Change the port number to 9530
vim /etc/grafana/grafana.ini
in grafana ini file, comment starts with #
, value comments with ;
# The http port to use
http_port = 9530
# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
root_url = http://localhost:9530
save and restart grafana service
systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server
systemctl restart grafana-server
check if grafana works: open browser to http://localhost:9530
more about grafana configuration
-
generate certification file and key save to /etc/ssl/grafana-key.pem, /etc/ssl/grafana-cert.pem
move to grafana configuration directory
cd /etc/grafana
create a temporary self-signed certificate
openssl genrsa -out selfsigned-grafana.key 2048
openssl req -new -key selfsigned-grafana.key -out selfsigned-grafana.csr
openssl x509 -req -days 365 -in selfsigned-grafana.csr -signkey selfsigned-grafana.key -out selfsigned-grafana.crt
Enter passphrase, and answers some stupid questions like
* Country Name
* State
* Locality
* Orgnization
* Unit Name
change the certification and key file permission
chown grafana:grafana selfsigned-grafana.crt
chown grafana:grafana selfsigned-grafana.key
chmod 400 selfsigned-grafana.crt
chmod 400 selfsigned-grafana.key
- change grafana configuration file and restart service
vim /etc/grafana/grafana.ini
[server]
# Protocol (http, https, socket)
protocol = https
# The http port to use
http_port = 9530
# enable gzip
enable_gzip = true
# https certs & key file
cert_file = "/etc/grafana/selfsigned-grafana.crt"
cert_key = "/etc/grafana/selfsigned-grafana.key"
# set to true if you host Grafana behind HTTPS. default is false.
cookie_secure = true
- restart the grafana service
systemctl status grafana-server
systemctl restart grafana-server
- check the grafana logging
vim /var/log/grafana/grafana.log
- verify https works, open browser and go to https://localhost:9530
- install influxdb
add apt repo from the offical website
wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
install from apt repo
sudo apt-get update && sudo apt-get install influxdb
sudo service influxdb start
everything looks fine
Connected to http://localhost:8086 version 1.7.4
InfluxDB shell version: 1.7.4
Enter an InfluxQL query
> exit
-
Configure Influxdb enable https, and set the endpoint to https://localhost:8086
-
create user for influxdb
-
create a database
-
grafana dash board is defined in
testnet-dashboard-stable.json
-
set the configuration parameter
export DASHBOARD_DB_CONFIG="host=<metrics host>,db=<database name>,u=<username>,p=<password>"
-
run
init.sh
to initilize metrics database -
publish the dashboard
- make sure you have the access to avoid ```[email protected]: Permission denied (publickey)``
./publish-metrics-dashboard.sh
$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt-preview
$ rustup update
$ sudo apt-get install libssl-dev pkg-config zlib1g-dev llvm clang
$ cargo build --all
Run the test suite:
$ cargo test --all
To emulate all the tests that will run on a Pull Request, run:
$ ./ci/run-local.sh
if erros like happened:
E: Malformed entry 63 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
E: Malformed entry 63 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
This error message told us the 63 line of the file /etc/apt/sources.list
is invalid, so just commented out the line would be ok.
use vim to open /etc/apt/sources.list, and comment out the 63 line, or any other number of line