2019-04-24 18:18:10 +02:00
|
|
|
.. _readme:
|
|
|
|
|
|
|
|
prometheus-formula
|
|
|
|
================
|
|
|
|
|
|
|
|
|img_travis| |img_sr|
|
|
|
|
|
|
|
|
.. |img_travis| image:: https://travis-ci.com/saltstack-formulas/prometheus-formula.svg?branch=master
|
|
|
|
:alt: Travis CI Build Status
|
|
|
|
:scale: 100%
|
|
|
|
:target: https://travis-ci.com/saltstack-formulas/prometheus-formula
|
|
|
|
.. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
|
|
|
|
:alt: Semantic Release
|
|
|
|
:scale: 100%
|
|
|
|
:target: https://github.com/semantic-release/semantic-release
|
2019-06-23 15:04:48 +02:00
|
|
|
Manage Prometheus on MacOS, GNU/Linux and FreeBSD.
|
2019-04-24 18:18:10 +02:00
|
|
|
|
|
|
|
.. contents:: **Table of Contents**
|
|
|
|
|
|
|
|
General notes
|
|
|
|
-------------
|
|
|
|
|
|
|
|
See the full `SaltStack Formulas installation and usage instructions
|
|
|
|
<https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
|
|
|
|
|
|
|
|
If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
|
|
|
|
which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
|
|
|
|
|
|
|
|
See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
|
|
|
|
|
|
|
|
Contributing to this repo
|
|
|
|
-------------------------
|
|
|
|
|
2019-10-14 12:48:39 +02:00
|
|
|
**Commit message formatting is significant!!**
|
|
|
|
|
|
|
|
Please see `How to contribute <https://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst>`_ for more details.
|
2019-04-24 18:18:10 +02:00
|
|
|
|
|
|
|
Available states
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
``prometheus``
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
*Meta-state (This is a state that includes other states)*.
|
|
|
|
|
|
|
|
This installs the prometheus package,
|
|
|
|
manages the prometheus configuration file and then
|
|
|
|
starts the associated prometheus service.
|
|
|
|
|
2019-06-08 19:39:21 +02:00
|
|
|
``prometheus.archive``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will install the prometheus from archive file only.
|
|
|
|
|
2019-06-22 19:24:19 +02:00
|
|
|
``prometheus.archive.alternatives``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will install the prometheus linux alternatives for archives only.
|
|
|
|
|
2019-04-24 18:18:10 +02:00
|
|
|
``prometheus.package``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will install the prometheus package only.
|
|
|
|
|
2019-06-08 19:39:21 +02:00
|
|
|
``prometheus.package.repo``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will install the prometheus package only.
|
|
|
|
|
2019-04-24 18:18:10 +02:00
|
|
|
``prometheus.config``
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will configure the prometheus service and has a dependency on ``prometheus.install``
|
|
|
|
via include list.
|
|
|
|
|
|
|
|
``prometheus.service``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will start the prometheus service and has a dependency on ``prometheus.config``
|
|
|
|
via include list.
|
|
|
|
|
|
|
|
``prometheus.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
*Meta-state (This is a state that includes other states)*.
|
|
|
|
|
|
|
|
this state will undo everything performed in the ``prometheus`` meta-state in reverse order, i.e.
|
|
|
|
stops the service,
|
|
|
|
removes the configuration file and
|
|
|
|
then uninstalls the package.
|
|
|
|
|
|
|
|
``prometheus.service.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will stop the prometheus service and disable it at boot time.
|
|
|
|
|
|
|
|
``prometheus.config.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will remove the configuration of the prometheus service and has a
|
|
|
|
dependency on ``prometheus.service.clean`` via include list.
|
|
|
|
|
|
|
|
``prometheus.package.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will remove the prometheus package and has a depency on
|
|
|
|
``prometheus.config.clean`` via include list.
|
|
|
|
|
2019-06-08 19:39:21 +02:00
|
|
|
``prometheus.package.archive.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will uninstall the prometheus archive-extracted directory only.
|
|
|
|
|
2019-06-22 19:24:19 +02:00
|
|
|
``prometheus.package.archive.alternatives.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will uninstall the prometheus linux alternatives for archives only.
|
|
|
|
|
2019-06-08 19:39:21 +02:00
|
|
|
``prometheus.package.repo.clean``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will uninstall the prometheus upstream package repository only.
|
|
|
|
|
2019-04-26 13:09:43 +02:00
|
|
|
``prometheus.exporters``
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This state will manage prometheus exporters according to Pillar ``prometheus:exporters``.
|
|
|
|
It includes sub-states like ``prometheus.exporters.node``.
|
|
|
|
If you don't want to use Pillar data for this you may use the sub-states directly.
|