Skip to content

Latest commit

 

History

History
 
 

grafana

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

monasca/grafana Dockerfile

This image contains Grafana built with Keystone support and the Monasca data source. For more information on the Monasca project, see the wiki.

Sources: monasca/grafana · monasca-docker · Dockerfile

Tags

The images in this repository follow a few tagging conventions:

  • latest: refers to the latest snapshot build of the source repository
  • 4.1.0-pre1-1.0.0: a.k.a. [grafana version]-[image version]. In this case the image revision 1.0.0 has been built from a snapshot of grafana 4.1.0-pre1

Usage

Grafana does not require any configuration to run normally:

docker run -p 3000:3000 -it monasca/grafana:latest

To make use of the Monasca datasource in Monasca's docker-compose environment, log in using a valid keystone user and password (by default, mini-mon and password). Create a new data source with the following properties:

  • Type: Monasca
  • Url: http://monasca:8070/
  • Access: proxy
  • Token: leave empty
  • Keystone auth: enabled / checked

Note that in the Kubernetes environment, the URL should instead be http://monasca-api:8070/.

The dashboard for monasca-ui, which is opened by clicking on "Graph Metric" of the 'Alarm' tab, is available. You can use this dashboard outside of monasca-ui with the following link. http://your-grafana-url:3000/dashboard/script/drilldown.js Specify the metric name with the key "metric" and dimensions as additional parameters if necessary as below. http://your-grafana-url:3000/dashboard/script/drilldown.js?metric=sample&dim1=val1

Configuration

Variable Default Description
GRAFANA_ADMIN_USER grafana-admin Grafana admin user name
GRAFANA_ADMIN_PASSWORD admin Grafana admin user password

Grafana can be configured using environment variables, though a configuration file can also be mounted into the image at /etc/grafana/grafana.ini. Plugins should be placed in /var/lib/grafana/plugins.