GithubHelp home page GithubHelp logo

jdbaldry / ansible-cortex Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 48 KB

Deploy Cortex or Grafana Metrics Enterprise (horizontally scalable, highly available, multi-tenant, long term Prometheus) using Ansible.

License: Apache License 2.0

Makefile 23.89% Dockerfile 17.16% HTML 58.94%

ansible-cortex's Introduction

ansible-cortex

Deploy Cortex or Grafana Metrics Enterprise (horizontally scalable, highly available, multi-tenant, long term Prometheus) using Ansible.

Requirements

  • Ansible >= 2.8 (lower version may work but are untested)

Role variables

Name Default value Description
enterprise false Set to true to deploy Grafana Metrics Enterprise instead of Cortex.
name "{% if enterprise -%} metrics-enterprise {%- else -%} cortex {%- endif %}" Name of the service, used to interpolate file names, service names, etc.. name is parameterized for use with different targets like compactor.
bin_name "{% if enterprise -%} metrics-enterprise {%- else -%} cortex {%- endif %}" Name of the binary on the remote system. Parameterized so that multiple services on a single host can use the same binary.
bin_dir "/usr/local/bin" Directory in which to install the binary.
config_dir "/etc/{{ name }}" Directory in which configuration files are stored.
config_file "{{ name }}.yml" Name of the configuration file. Combined with config\_dir for the absolute path to the servers configuration file.
config_template "{{ name }}.yml.j2" Name of the local template file used for templating the Cortex/Grafana Metrics Enterprise configuration file.
data_dir "/var/lib/{{ name }}" Directory used as the users home directory and where server files (like the write-ahead log) are stored by default.
http_listen_port 9009 Server HTTP port.
user "{{ name }}" Name for the user running the server.
group "{{ name }}" Name for the group running the server.
bin_arguments ["-config.file={{ config_dir }}/{{ config_file }}"] List of command line arguments passed to the binary.
cortex_version "1.4.0" Cortex version without leading 'v'. If "latest" is used, the playbook will download the latest. Using "latest" is not recommended for production use.
cortex_checksum "15982475d875ca1f7c8b70e7cf48b0c5ad850d7eb73f8789c0a60bf57effac57" SHA256 checksum for the Cortex binary.
metrics_enterprise_version "1.0.2" Grafana Metrics Enterprise version without a leading 'v'.
metrics_enterprise_checksum "dceda7c43bcde4b76c5aab9cd9da1db7aa01df5f99dec2bdfcceaf49ecafb708" SHA256 checksum for the Grafana Metrics Enterprise binary.
metrics_enterprise_cluster_name Name of the cluster configured in the Grafana Labs issued license file.
metrics_enterprise_license_file Name of the Grafana Labs issued license file.

Example playbooks

More examples can be found by reviewing the test scenarios in /molecule

Single process Cortex

Start a single instance of Cortex running in single process mode with the blocks storage engine configured to use the local filesystem as a store. Cortex servers will not cluster with this configuration.

---
- hosts: all
  roles: jdbaldry/ansible-cortex

Single process Grafana Metrics Enterprise

Start a single instance of Grafana Metrics Enterprise running in single process mode with the blocks storage engine configured to use the local filesystem as a store. Grafana Metrics Enterpise servers will not cluster with this configuration.

---
- hosts: all
  roles: jdbaldry/ansible-cortex
  vars:
    enterprise: true
    metrics_enterprise_cluster_name: my-grafana-metrics-enterprise-cluster
    metrics_enterprise_license_file: license.jwt

License

Apache License 2.0

ansible-cortex's People

Contributors

jdbaldry avatar

Watchers

 avatar  avatar

ansible-cortex's Issues

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.