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4.0
- 10.3.1
- 10.3.0
- 10.2.13
- 10.2.12
- 10.2.11
- 10.2.10
- 10.2.9
- 10.2.8
- 10.2.7
- 10.2.6
- 10.2.5
- 10.2.4
- 10.2.3
- 10.2.2
- 10.2.1
- 10.2.0
- 10.1.0
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.7.1
- 9.7.0
- 9.6.2
- 9.6.1
- 9.6.0
- 9.5.2
- 9.5.1
- 9.5.0
- 9.4.1
- 9.4.0
- 9.3.0
- 9.2.1
- 9.2.0
- 9.1.0
- 9.0.0
- 8.8.0
- 8.7.1
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.2
- 8.4.1
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.1
- 8.1.0
- 8.0.0
- 7.1.1
- 7.1.0
- 7.0.0
- 6.0.1
- 6.0.0
- 5.1.1
- 5.1.0
- 5.0.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.1
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.4
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.6
Installs/Configures Grafana Server
cookbook 'grafana', '= 1.3.1', :supermarket
knife supermarket install grafana
knife supermarket download grafana
grafana Cookbook
A stand-alone cookbook for Grafana
Requirements
- apt
- nginx
- git
Attributes
As with most cookbooks I write, this one is hopefully flexible enough to be wrapped by allowing you to override as much as possible
grafana::default
-
node['grafana']['install_type']
- The type of install we are going to use eithergit
orzipfile
-
node['grafana']['git']['url']
- The url for the git repo to use for Grafana -
node['grafana']['git']['branch']
- The sha or branch name to use -
node['grafana']['file']['type']
- the type of archive file.zip
only at this stage -
node['grafana']['file']['url']
- The zipfile URL for the latest Grafana build -
node['grafana']['file']['checksum']
- The sha256 of the Grafana zipfile -
node['grafana']['install_path']
- The root directory where Grafana will be installed -
node['grafana']['install_dir']
- The directory to checkout into. Acurrent
symlink will be created in this directory as well. -
node['grafana']['es_server']
- The ipaddress or hostname of your elasticsearch server -
node['grafana']['es_port']
- The port of your elasticsearch server's http interface -
node['grafana']['es_role']
- eventually for wiring up discovery of your elasticsearch server -
node['grafana']['es_scheme']
- Scheme helper if elasticsearch is outside of this cookbookhttp://
orhttps://
-
node['grafana']['graphite_server']
- The ipaddress or hostname of your graphite server -
node['grafana']['graphite_port']
- The port of your graphite server's http interface -
node['grafana']['graphite_role']
- eventually for wiring up discovery of your graphite server -
node['grafana']['graphite_scheme']
- Scheme helper if graphite is outside of this cookbookhttp://
orhttps://
-
node['grafana']['user']
- The user who will own the files from the git checkout. (default: the web server user) -
node['grafana']['config_template']
- The template to use for Grafana'sconfig.js
-
node['grafana']['config_cookbook']
- The cookbook that contains said config template -
node['grafana']['webserver']
- Which webserver to use: apache, nginx or '' -
node['grafana']['webserver_hostname']
- The primary vhost the web server will use for Grafana -
node['grafana']['webserver_aliases']
- Array of any secondary hostnames that are valid vhosts -
node['grafana']['webserver_listen']
- The ip address the web server will listen on -
node['grafana']['webserver_port']
- The port the webserver will listen on -
node['grafana']['webserver_scheme']
- Scheme helper if webserver is outside of this cookbookhttp://
orhttps://
-
node['grafana']['timezone_offset']
- Timezone offset config, example: "-0500" (for UTC - 5 hours) (default: "null") -
node['grafana']['grafana_index']
- Elasticsearch index to use for Grafana (default: 'grafana-index') -
node['grafana']['unsaved_changes_warning']
- Enable disable unsaved changes warning in UI (default: 'true') -
node['grafana']['playlist_timespan']
- Playlist timespan config (default: '1m')
kibana::nginx
-
node['grafana']['nginx']['template']
- The template file to use for the nginx site configuration -
node['grafana']['nginx']['template_cookbook']
- The cookbook containing said template
Removed:
-
node['grafana']['nginx']['enable_default_site']
- usenode['nginx']['enable_default_site']
Usage
grafana::default
The default recipe will:
- install Grafana from
master
into/opt/grafana/master
and create a symlink calledcurrent
in the same directory tomaster
- install
nginx
and serve the grafana application
If you want to use the zipfile distribution of Grafana update node['grafana']['install_type']
attribute to zipfile
. Set node['grafana']['zipfile_checksum']
to appropriate sha256 value of latest zipfile.
If you don't want this cookbook to handle the webserver config simply set node['grafana']['webserver']
to ''
in a role/environment/node somewhere.
Please note that in this case you have to set node['grafana']['user']
.
Nginx recipe, by default, will configure the appropriate proxy to your ElasticSearch server such that you don't have to expose it to the world.
NOTE
There is NO security enabled by default on any of the content being served.
If you would like to modify the nginx
parameters, you should:
- create your own cookbook i.e.
my-grafana
- copy the template for the webserver you wish to use to your cookbook
- modify the template as you see fit (add auth, setup ssl)
- use the appropriate webserver template attributes to point to your cookbook and template
Testing
kitchen-test
Requires Vagrant >= 1.2 with the following plugins :
- vagrant-berkshef
- vagrant-omnibus
$ bundle install
$ kitchen test
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
--
bundle exec strainer test
- Submit a Pull Request using Github
License and Authors
Primary author:
- Jonathan Tron jonathan@tron.name
Contributors:
- Grégoire Seux (@kamaradclimber)
- Anatoliy D. (@anatolijd)
- Greg Fitzgerald (@gregf)
Based on chef-kibana
cookbook by:
- John E. Vincent lusis.org+github.com@gmail.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
CHANGELOG for grafana
This file is used to list changes made in each version of grafana.
1.3.1:
- Update
Grafana
to1.7.1-rc1
. It fixes a regression introduced when merging #16. Thanks to Greg Fitzgerald for reporting it.
1.3.0:
- Allow attribute configuration for datasources (Grégoire Seux) #16
1.2.0:
breaking changes
- Update
ark
dependency to>= 0.7.2
and deprecation warning by usingstrip_component
(Grégoire Seux) #15
minor changes
- Support newer
nginx
cookbook by specifyingtemplate: false
when enabling thegrafana
site (Grégoire Seux) #15
1.1.1:
- Update default attributes to install Grafana 1.6.1 (Greg Fitzgerald) #14
1.1.0:
breaking changes
-
config.js
data forgraphite
andelasticsearch
changed back to use:window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/_graphite"
window.location.protocol+"//"+window.location.hostname+":"+window.location.port
The idea is to allow external access without CORS
problems or credential leaks in config.js
.
- Value for
default['grafana']['install_path']
changed from/opt
to/srv/apps
(Greg Fitzgerald) #13 - Default installation uses zip file instead of git (Greg Fitzgerald) #13
minor changes
- Major cleanup and additional tests (Greg Fitzgerald) #13
1.0.6:
- Releasing to opscode community site Thanks to @gregf in #12
1.0.5:
breaking changes
-
config.js
was unintentionally changed to use node info to configure graphite and elasticsearch index. - Value for
default['grafana']['grafana_index']
changed fromgrafana-dash
tografana-index
(Greg Fitzgerald) #11 - Update grafana to 1.6.0 (Greg Fitzgerald) #11
1.0.4:
- Update config.js based on the one in 1.5.4
- Update to grafana 1.5.4
- Update to new download URL
1.0.3:
Add some basic specs, foodcritic, knife test and enable TravisCI
Fix error with undefined grafana_user variable Thanks to @klamontagne
Fix timezone value quoting in config.js (Anatoliy D.) #9
Update grafana to 1.5.2 (Grégoire Seux) #7
Don't set normal attribute
node['nginx']['default_site_enabled']
(Grégoire Seux) #5Remove
"use strict";
fromconfig.js
as it seems to not be present in
grafana releases, thanks to @iiro for proposing it in #1Don't search when
node['grafana']['es_server']
ornode['grafana']['graphite_server']
is set and don't use normal attributes (Grégoire Seux) #3Refactor and separate install in two recipes:
install_git
andinstall_file
(Grégoire Seux) #2
1.0.2:
- Update file release to 1.5.1
1.0.1:
- Update file release to 1.5.0
1.0.0:
- Initial release of grafana