GithubHelp home page GithubHelp logo

brentavery / ansible-role-grafana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manala/ansible-role-grafana

0.0 0.0 0.0 103 KB

[READ-ONLY] Ansible role dealing with the setup of Grafana

Home Page: https://galaxy.ansible.com/manala/grafana/

Makefile 4.53% HTML 95.47%

ansible-role-grafana's Introduction

Ansible Role: Grafana Build Status

โ— Report issues and send Pull Requests in the main Ansible Role repository โ—

This role will deal with the configuration of Grafana.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

This role is made to work with the grafana official debian packages, available on the grafana debian repository. Please use the manala.apt role to handle it properly.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.grafana

Using ansible galaxy requirements file:

- src: manala.grafana

Role Handlers

Name Type Description
grafana restart Service Restart grafana server

Role Variables

Name Default Type Description
manala_grafana_version ~ String Installed version
manala_grafana_install_packages ~ Array Dependency packages to install
manala_grafana_install_packages_default ['grafana'] Array Default dependency packages to install
manala_grafana_config_file '/etc/grafana/grafana.ini' String Configuration file path
manala_grafana_config_template 'config/default.j2' String Configuration base template path
manala_grafana_config [] Array Configuration directives
manala_grafana_api_url 'http://127.0.0.1:3000' String API endpoint
manala_grafana_api_user 'admin' String API user
manala_grafana_api_password 'admin' String API password
manala_grafana_datasources_exclusive false Boolean Remove old datasources
manala_grafana_datasources [] Array Datasources
manala_grafana_dashboards_exclusive false Boolean Remove old dashboards
manala_grafana_dashboards [] Array Dashboards

Configuration example

See : http://docs.grafana.org/installation/configuration/

manala_grafana_config:
  - app_mode: production
  - server:
    - http_port: 3001
  - security:
    - admin_user: admin
    - admin_password: admin

manala_grafana_api_url: http://127.0.0.1:3000
manala_grafana_api_user: admin
manala_grafana_api_password: admin

manala_grafana_datasources_exclusive: true
manala_grafana_datasources:
  - name:      telegraf
    type:      influxdb
    isDefault: true
    access:    proxy
    basicAuth: false
    url:       http://localhost:8086
    database:  telegraf
    username:  ''
    password:  ''

manala_grafana_dashboards_exclusive: true
manala_grafana_dashboards:
    - template: grafana/dashboards/system.json
      inputs:
        - name:     "DS_TELEGRAF"
          pluginId: "influxdb"
          type:     "datasource"
          value:    "telegraf"
      overwrite: true

Example playbook

- hosts: grafana
  roles:
    - { role: manala.grafana }

Licence

MIT

Author information

Manala (http://www.manala.io/)

ansible-role-grafana's People

Contributors

greedybro avatar nervo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.