Back Home or loki

Docker Install

Clone the github directory https://github.com/grafana/loki/tree/master/production and docker-compose up

Logs

/var/log/grafana/grafana.log

Alerting

* Default configuration from $WORKING_DIR/conf/defaults.ini

  • Custom configuration from $WORKING_DIR/conf/custom.ini
  • The custom configuration file path can be overridden using the –config parameter Note. If you have installed Grafana using the deb or rpm packages, then your configuration file is located at /etc/grafana/grafana.ini. This path is specified in the Grafana init.d script using –config file parameter.

Configuration docs http://docs.grafana.org/installation/configuration/#smtp

Configuration 5.3

Grafana 5.3 has 2 core config files

  • Default configuration from $WORKING_DIR/conf/defaults.ini
  • Custom configuration from $WORKING_DIR/conf/custom.ini

with the docker WORKING_DIR being /usr/share/grafana/conf

A number if the config file options can be configured with an environment variable

########## Paths ###########
[paths]
# folder that contains provisioning config files 
# that grafana will apply on startup and while running.
provisioning = conf/provisioning

This provisioning directory can have other two directories inside it:

  • datasources: holds a list of .yaml files that configure data sources (e.g, Prometheus instance …).
  • dashboards: holds a list of .yaml files with configuration files that tell Grafana where to look for dashboards to initialize on startup;

Making Changes to Dashboards

There is a difference to the interactive dashboards and the json provided dashboards. Json dashboards

  • Changes are not auto saved and have to be written back to file (by hand)
 
grafana.txt · Last modified: 2019/05/13 05:22 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd