Giter VIP home page Giter VIP logo

ansible-role-monasca-agent's Introduction


This is a fork of hpcloud-mon/ansible-monasca-agent which is no longer being updated.


#monasca-agent Installs the monasca-agent part of the Monasca project. It is installs it into a virtualenv on the box.

Requirements

virtualenv must be installed on the system.

  • keystone_url:
  • monasca_agent_user:
  • monasca_agent_password:
  • monasca_agent_project:

Optional

  • monasca_agent_check_frequency - Sets how often the collection run for the agent will occur

  • monasca_agent_system_only - setting to true will cause Monasca setup to run in system_only mode

  • monasca_agent_service:

  • monasca_agent_dimensions: 'role:monitoring,region:a'

  • monasca_api_url: if undefined it will be pulled from the keystone service catalog.

  • monasca_agent_version: Defines a specific version to install, defaults to latest

  • monasca_agent_branch: Defines a specific branch to install. Ignored if monasca_agent_version is set.

  • monasca_log_level: Log level of the agent logs, default is WARN

  • monasca_endpoint_type: Keystone endpoint type for monitoring service, eg: public, internal etc.

  • monasca_pip_extra_args: Additional args to pass to pip, such as upper constraints.

  • monasca_project_domain_name: Keystone project domain name for Monasca

  • monasca_project_domain_id: Keystone project domain ID for Monasca

  • monasca_region_name: Keystone API URL region name for Monasca

  • monasca_service_type: Keystone API URL service type for Monasca

  • monasca_user_domain_name: Keystone project domain name for Monasca

  • monasca_user_domain_id: Keystone project domain ID for Monasca

  • monasca_user: User which runs the Monasca Agent. Defaults to 'mon-agent'.

  • monasca_agent_custom_plugin_repos: A list of git repos containing custom plugins. See below.

  • monasca_skip_detection_plugins: List of plugins to skip automatic detection of. For example, if you configure custom NTP configuration, you can add the NTP plugin here to prevent the custom config getting overwritten.

  • monasca_agent_statsd_aggregation_interval: Statsd metric aggregation interval in seconds.

  • pip_index_url: Index URL to use instead of the default for installing pip packages

  • run_mode: One of Deploy, Stop, Install, Start, or Use. The default is Deploy which will do Install, Configure, then Start. 'Use' can be set if the only desire is to use the monasca_agent_plugin module

Optionally supply monasca_checks variable which is a dictionary with each entry consisting of a plugin name followed by the plugin config, typically with two sections init_config and instances. Refer to the specific monasca-agent plugin documentation for more detail.

An example ssh check:

monasca_checks:
  host_alive:
    init_config:
      ssh_port: 22
      ssh_timeout: 0.5
      ping_timeout: 1
    instances:
      - name: devstack
        host_name: 192.168.10.5
        alive_test: ssh

monasca_agent_plugin module

This role contains the module monasca_agent_plugin which can be used to run monasca-setup for specific detection plugins. This is particularly useful when used with the monasca_agent_system_only option of the role. In a deployment of many machines every machine can have the role applied in system only mode then as different services are installed they can selectively enable different agent plugins using this module. Example usage:

- name: Monasca agent ntp plugin configuration
  monasca_agent_plugin: name="ntp"
- name: Monasca agent plugin configuration
  monasca_agent_plugin:
    names:
        - ntp
        - mysql

You must have the monasca-agent role in your playbook. If the agent is already deployed and you just need to use monasca_agent_plugin, then you can add the role in and have it skip all install, configure and start steps by using these lines in your playbook:

roles: - {role: monasca-agent, run_mode: Use}

To copy custom detection and/or check plugins to the machine before running the monasca_agent_plugin module there are two options. The first is to use the copy module with the published variables monasca_agent_check_plugin_dir or monasca_agent_detection_plugin_dir for example:

- name: Copy example check plugin
  copy: src=files/check/example.py dest="{{ monasca_agent_check_plugin_dir }}"
- name: Copy example detection plugin
  copy: src=files/detection/example.py dest="{{ monasca_agent_detection_plugin_dir }}"
- name: Run Monasca agent example plugin configuration
  monasca_agent_plugin: name="example"

The second is to specify a list of git repos containing pip installable plugins as a role variable, for example:

monasca_agent_custom_plugin_repos:
    - "https://github.com/stackhpc/stackhpc-monasca-agent-plugins.git@some_branch"

It is assumed that pip will install the plugins to the correct check and detection plugin directories as mentioned above.

##License Apache

##Author Information Tim Kuhlman Monasca Team email [email protected]

ansible-role-monasca-agent's People

Contributors

brtkwr avatar craigbr avatar davidschroeder avatar dougszumski avatar oneilcin avatar oneswig avatar pescobar avatar tkuhlman avatar

Watchers

 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.