> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/p/prometheus.md).

# Prometheus

Prometheus is a monitoring system. OctoXLabs runs a PromQL query that you write and turns each returned series into a domain asset, using the `EntityName` label as its name.

## Use cases

* List domains that come from your Prometheus query.

```
Adapters = prometheus
```

## Before you begin

### Network

| Source              | Destination                                            | Port                                       | Protocol                          |
| ------------------- | ------------------------------------------------------ | ------------------------------------------ | --------------------------------- |
| OctoXLabs connector | Prometheus server, for example `prom.example.com:9090` | 9090 by default (part of the Domain value) | HTTP, or HTTPS if Is Secure is on |

### Required permissions

None. The adapter does not authenticate. The endpoint must be reachable without credentials, directly or behind a reverse proxy that handles authentication.

## Create credentials in Prometheus

{% stepper %}
{% step %}

### Write the PromQL query

Write a PromQL expression whose series carry the labels `EntityName` (required), and optionally `ip` and `Schema`. Series without `EntityName` are skipped.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                                                                                                                                                                                                       |
| ------------ | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain       | Yes      | String  |         | Host of the Prometheus instance, without `http://` or `https://`. Include the port if it is the default, for example `prom.example.com:9090`. If Prometheus runs under a path prefix, add it, for example `sreprometheus.example.com/prometheus`. |
| Custom Query | Yes      | String  |         | PromQL expression that returns the series to project into Domain Inventory.                                                                                                                                                                       |
| Is Secure    | No       | Boolean | False   | Use HTTPS.                                                                                                                                                                                                                                        |
| Proxy        | No       | String  |         | Proxy address. The connector sends traffic through it as `http://<proxy>`.                                                                                                                                                                        |
| Timeout      | No       | Integer | 30      | Seconds to wait for API responses.                                                                                                                                                                                                                |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 6.4.1.
{% endhint %}
