Metadata-Version: 2.0
Name: datadog-openmetrics
Version: 1.2.0
Summary: The openmetrics check
Home-page: https://github.com/DataDog/integrations-core
Author: Datadog
Author-email: packages@datadoghq.com
License: BSD-3-Clause
Keywords: datadog agent openmetrics check
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: System :: Monitoring
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: datadog-checks-base

# OpenMetrics Integration

## Overview

Extract custom metrics from any OpenMetrics endpoints.

**Note:** All the metrics retrieved by this integration are considered as [custom metrics][1].

## Setup

Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the [Autodiscovery Integration Templates][2] for guidance on applying these instructions.

### Installation

The OpenMetrics check is packaged with the [Datadog Agent starting version 6.6.0][3].

### Configuration

Edit the `openmetrics.d/conf.yaml` file at the root of your [Agent's configuration directory][4] to add the different OpenMetrics instances you want to retrieve metrics from.

Each instance is at least composed of the following parameters:

* `prometheus_url`: Points to the metric route (**Note:** it must be unique)
* `namespace`: Namespace to be prepended to all metrics (allows to avoid metrics name collision)
* `metrics`: A list of metrics that you want to retrieve as custom metrics, for each metric you can either simply add it to the list `- metric_name` or renaming it like `- metric_name: renamed`. It's also possible to use a `*` wildcard such as `- metric*` that fetches all matching metrics (to use with caution as it can potentially send a lot of custom metrics).

There is also a couple of more advanced settings (`ssl`, `labels joining`, `tags`,...) that are documented in the [`conf.yaml` example configuration][5]

### Validation

[Run the Agent's `status` subcommand][6] and look for `openmetrics` under the Checks section.

## Data Collected
### Metrics

All metrics collected by the OpenMetrics check are forwarded to Datadog as custom metrics.

### Events

The OpenMetrics check does not include any events.

### Service Checks

The OpenMetrics check does not include any service checks.

## Troubleshooting

Need help? Contact [Datadog support][7].

## Further Reading

* [Configuring a OpenMetrics Check][8]
* [Writing a custom OpenMetrics Check][9]

[1]: https://docs.datadoghq.com/developers/metrics/custom_metrics
[2]: https://docs.datadoghq.com/agent/autodiscovery/integrations
[3]: https://app.datadoghq.com/account/settings#agent
[4]: https://docs.datadoghq.com/agent/guide/agent-configuration-files/?tab=agentv6#agent-configuration-directory
[5]: https://docs.datadoghq.com/agent/openmetrics
[6]: https://docs.datadoghq.com/agent/guide/agent-commands/?tab=agentv6#agent-status-and-information
[7]: https://docs.datadoghq.com/help
[8]: https://docs.datadoghq.com/agent/openmetrics
[9]: https://docs.datadoghq.com/developers/openmetrics


