Agent for Monasca
Go to file
Doug Szumski a2400fcf12 Fix parsing of StatsD metrics with Py3
When running with Py3 we compare a byte string to a unicode string
when parsing StatsD metrics. This patch adds some unit tests to
reproduce the bug and decodes the bytestring to make the existing
comparisons valid under Py3. When backporting to Train we can use
Oslo encodeutils. Clearly we could have more unit tests, but
this makes a start.

Change-Id: I6341f96f5c186428d2d829cabf618a6f84f40ce2
Story: 2007684
Task: 39796
2020-05-22 21:08:28 +01:00
conf.d Add swift_handoffs check plugin to monasca 2019-10-18 17:16:14 +02:00
docker Update hacking for Python3 2020-03-31 06:49:33 +00:00
docs Fix libvirt ping_checks documentation 2020-05-14 11:08:02 +00:00
monasca_agent Fix parsing of StatsD metrics with Py3 2020-05-22 21:08:28 +01:00
monasca_setup Merge "Do not copy /sbin/ip to /usr/bin/monasa-agent-ip" 2020-04-27 16:43:40 +00:00
packaging Removed dependency on supervisor 2018-06-27 11:28:43 +02:00
playbooks Push Docker image to Docker Hub from Zuul 2019-09-25 12:30:41 +02:00
releasenotes/notes Merge "Add support for gathering Slab memory usage" 2020-01-13 18:00:27 +00:00
tests Fix parsing of StatsD metrics with Py3 2020-05-22 21:08:28 +01:00
tests_to_fix Add python36 support 2018-10-25 09:09:53 -04:00
.gitignore Removed dependency on supervisor 2018-06-27 11:28:43 +02:00
.gitreview OpenDev Migration Patch 2019-04-19 19:40:33 +00:00
.stestr.conf Switch to using stestr 2018-08-13 11:19:12 -04:00
.testr.conf Extend CI for monasca-agent 2017-03-30 06:33:59 +02:00
.zuul.yaml [ussuri][goal] Drop python 2.7 support and testing 2019-11-16 14:09:24 +00:00
agent.yaml.template Support setting statsd metric aggregation interval 2019-02-21 14:23:21 +00:00
bindep.txt Move other-requirements.txt to bindep.txt 2016-08-25 06:43:35 +00:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2020-05-19 16:14:45 +02:00
LICENSE Add HPE copyright 2016-02-02 10:34:10 -07:00
mkdocs.yml Add HPE copyright 2016-02-02 10:34:10 -07:00
README.rst Merge "Add information about Prometheus plugin to README" 2019-05-30 13:15:49 +00:00
requirements.txt [ussuri][goal] Drop python 2.7 support and testing 2019-11-16 14:09:24 +00:00
setup.cfg Cleanup py27 support 2020-04-14 19:25:34 +02:00
setup.py Cleanup py27 support 2020-04-14 19:25:34 +02:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-05-12 19:29:40 -05:00
tox.ini Update hacking for Python3 2020-03-31 06:49:33 +00:00

Team and repository tags

Team and repository tags

Introduction

The Monasca Agent is a modern Python monitoring agent for gathering metrics and sending them to the Monasca API. The Agent supports collecting metrics from a variety of sources as follows:

System metrics

such as cpu and memory utilization.

Prometheus

The Monasca Agent supports scraping metrics from endpoints provided by Prometheus exporters or Prometheus instrumented applications.

Statsd

The Monasca Agent supports an integrated StatsD daemon which can be used by applications via a statsd client library.

OpenStack metrics

The agent can perform checks on OpenStack processes.

Host alive

The Monasca Agent can perform active checks on a host to determine if it is alive using ping (ICMP) or SSH.

Process checks

The Monasca Agent can check a process and return several metrics on the process such as a number of instances, memory, io and threads.

Http Endpoint checks

The Monasca Agent can perform active checks on http endpoints by sending an HTTP request to an API.

Service checks

The Monasca Agent can check services such as MySQL, RabbitMQ, and many more.

Nagios plugins

The Monasca Agent can run Nagios plugins and send the status code returned by the plugin as a metric to the Monasca API.

The Agent can automatically detect and setup checks on certain processes and resources.

The Agent is extensible through the configuration of additional plugins, written in Python.

Detailed Documentation

For an introduction to the Monasca Agent, including a complete list of the metrics that the Agent supports, see the "Agent" detailed documentation.

The Agent is extensible through the configuration of additional check and setup plugins, written in Python. See the "Agent Customizations" detailed documentation.

Agent

https://opendev.org/openstack/monasca-agent/src/branch/master/docs/Agent.md

Agent Customizations

https://opendev.org/openstack/monasca-agent/src/branch/master/docs/Customizations.md

Monasca Metrics

https://opendev.org/openstack/monasca-agent/src/branch/master/docs/MonascaMetrics.md

Agent Plugin details

https://opendev.org/openstack/monasca-agent/src/branch/master/docs/Plugins.md