Skip to content

Commit

Permalink
Issue #419 - rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Sep 5, 2019
1 parent 2d50634 commit 50de16a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
7 changes: 7 additions & 0 deletions docs/source/awslimitchecker.alerts.pagerdutyv1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
awslimitchecker.alerts.pagerdutyv1 module
=========================================

.. automodule:: awslimitchecker.alerts.pagerdutyv1
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/awslimitchecker.alerts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ Submodules

awslimitchecker.alerts.base
awslimitchecker.alerts.dummy
awslimitchecker.alerts.pagerdutyv1

39 changes: 27 additions & 12 deletions docs/source/cli_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ use as a Nagios-compatible plugin).
[--list-metrics-providers]
[--metrics-provider METRICS_PROVIDER]
[--metrics-config METRICS_CONFIG]
[--list-alert-providers]
[--alert-provider ALERT_PROVIDER]
[--alert-config ALERT_CONFIG]
Report on AWS service limits and usage via boto3, optionally warn about any
services with usage nearing or exceeding their limits. For further help, see
<http://awslimitchecker.readthedocs.org/>
Expand Down Expand Up @@ -129,6 +132,15 @@ use as a Nagios-compatible plugin).
Specify key/value parameters for the metrics provider
constructor. See documentation for further
information.
--list-alert-providers
List available alert providers and exit
--alert-provider ALERT_PROVIDER
Alert provider class name, to enable sending
notifications
--alert-config ALERT_CONFIG
Specify key/value parameters for the alert provider
constructor. See documentation for further
information.
awslimitchecker is AGPLv3-licensed Free Software. Anyone using this program,
even remotely over a network, is entitled to a copy of the source code. Use
`--version` for information on the source code location.
Expand Down Expand Up @@ -506,8 +518,8 @@ can be seen with the ``--list-metrics-providers`` option:
The configuration options required by each metrics provider are specified in the
providers' documentation:

* :py:class:`~awslimitchecker.metrics.dummy.Dummy`
* :py:class:`~awslimitchecker.metrics.datadog.Datadog`
* :py:class:`~awslimitchecker.metrics.dummy.Dummy`


For example, to use the :py:class:`~awslimitchecker.metrics.datadog.Datadog`
Expand Down Expand Up @@ -536,27 +548,30 @@ of awslimitchecker can be seen with the ``--list-alert-providers`` option:

.. code-block:: console
(venv)$ awslimitchecker --list-metrics-providers
Available metrics providers:
Datadog
(venv)$ awslimitchecker --list-alert-providers
Available alert providers:
Dummy
PagerDutyV1
The configuration options required by each alert provider are specified in the
providers' documentation:

* :py:class:`~awslimitchecker.metrics.dummy.Dummy`
* :py:class:`~awslimitchecker.metrics.datadog.Datadog`
* :py:class:`~awslimitchecker.alerts.pagerdutyv1.PagerDutyV1`
* :py:class:`~awslimitchecker.alerts.dummy.Dummy`

For example, to use the :py:class:`~awslimitchecker.metrics.datadog.Datadog`
metrics provider which requires an ``api_key`` paramater (also accepted as an
environment variable) and an optional ``extra_tags`` parameter:

For example, to use the :py:class:`~awslimitchecker.alerts.pagerdutyv1.PagerDutyV1`
alert provider which requires a ``critical_service_key`` paramater (also accepted as an
environment variable) and an optional ``account_alias`` parameter:

.. code-block:: console
(venv)$ awslimitchecker \
--metrics-provider=Datadog \
--metrics-config=api_key=123456 \
--metrics-config=extra_tags=foo,bar,baz:blam
--alert-provider=PagerDutyV1 \
--alert-config=critical_service_key=012345 \
--alert-config=account_alias=myacct
Alerts will be pushed to the provider only when awslimitchecker is done checking
all limits, or when an exception is encountered during the checking process.
Expand Down

0 comments on commit 50de16a

Please sign in to comment.