prometheus-mysqld-exporter-service

Example:

# Install the Prometheus mysqld exporter.
- prometheus-mysqld-exporter-service:
    mysqld_exporter_web_listen_address: 192.168.1.14

Description

This role is not fully functional yet. #TODO

Resources

Variables

Name Type Default Description

version

string --

The version of the mysqld exporter.

web_listen_address

string --

Address on which the mysqld exporter will listen. Defaults to '0.0.0.0:9104'

Examples

Example 1

Install the Prometheus mysqld exporter.

Code
- prometheus-mysqld-exporter-service:
    mysqld_exporter_web_listen_address: 192.168.1.14

Code

doc:
  short_help: Installs the Prometheus mysqld exporter.
  help: |
    This role is not fully functional yet. #TODO
  references:
    Prometheus mysqld exporter GitHub: https://github.com/prometheus/mysqld_exporter
    cloudalchemy.mysqld-exporter Ansible role: https://github.com/cloudalchemy/ansible-mysqld-exporter
  examples:
  - title: Install the Prometheus mysqld exporter.
    vars:
      mysqld_exporter_web_listen_address: 192.168.1.14

args:
  version:
    doc:
      short_help: The version of the mysqld exporter.
    type: string
    required: false
  web_listen_address:
    doc:
      short_help: Address on which the mysqld exporter will listen.
      help: |
        Address on which the mysqld exporter will listen. Defaults to '0.0.0.0:9104'
    type: string
    required: false

frecklets:
- task:
    become: true
    include-type: import
  frecklet:
    name: cloudalchemy.mysqld-exporter
    type: ansible-role
    resources:
      ansible-role:
      - cloudalchemy.mysqld-exporter
    desc:
      short: installing Prometheus mysqldexporter
      references:
        "'cloudalchemy.mysqld-exporter' Ansible role": https://github.com/cloudalchemy/ansible-mysqld-exporter
    properties:
      elevated: true
      idempotent: true
      internet: true
  vars:
    mysqld_exporter_version: '{{:: version ::}}'
    mysqld_exporter_web_listen_address: '{{:: web_listen_address ::}}'
frecklecute prometheus-mysqld-exporter-service --help

Usage: frecklecute prometheus-mysqld-exporter-service [OPTIONS]

  This role is not fully functional yet. #TODO

Options:
  --version VERSION               The version of the mysqld exporter.
  --web-listen-address WEB_LISTEN_ADDRESS
                                  Address on which the mysqld exporter will
                                  listen.
  --help                          Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.prometheus_mysqld_exporter_service.PrometheusMysqldExporterService
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class PrometheusMysqldExporterService(AutoPycklet):
    """This role is not fully functional yet. #TODO

       Args:
         version: The version of the mysqld exporter.
         web_listen_address: Address on which the mysqld exporter will listen.

    """

    FRECKLET_ID = "prometheus-mysqld-exporter-service"

    version: str = None
    web_listen_address: str = None


    def __post_init__(self):
        super(PrometheusMysqldExporterService, self).__init__(var_names=["version", "web_listen_address"])


frecklet_class = PrometheusMysqldExporterService
# -*- coding: utf-8 -*-


#
# module path: pycklets.prometheus_mysqld_exporter_service.PrometheusMysqldExporterService
#


from pyckles import AutoPycklet

class PrometheusMysqldExporterService(AutoPycklet):
    """This role is not fully functional yet. #TODO

       Args:
         version: The version of the mysqld exporter.
         web_listen_address: Address on which the mysqld exporter will listen.

    """

    FRECKLET_ID = "prometheus-mysqld-exporter-service"

    def __init__(self, version=None, web_listen_address=None):

        super(PrometheusMysqldExporterService, self).__init__(var_names=["version", "web_listen_address"])
        self._version = version
        self._web_listen_address = web_listen_address

    @property
    def version(self):
        return self._version

    @version.setter
    def version(self, version):
        self._version = version

    @property
    def web_listen_address(self):
        return self._web_listen_address

    @web_listen_address.setter
    def web_listen_address(self, web_listen_address):
        self._web_listen_address = web_listen_address



frecklet_class = PrometheusMysqldExporterService