Script Development / Prometheus
The Prometheus Connector primarily provides methods to interact with Prometheus.
This Connector is based on HTTP protocol for connecting to Prometheus
DFF.CONN(...) parameters are as follows:
| Parameter | Type | Required / Default | Description |
|---|---|---|---|
connector_id |
str | Required | Connector ID |
.query(...)
Sends an HTTP request to Prometheus, parameters are as follows:
| Parameter | Type | Required / Default | Description |
|---|---|---|---|
method |
str | Required | Request method: GET, POST, etc. |
path |
str | None |
Request path |
query |
dict | None |
Request URL parameters |
body |
dict | None |
Request body |
| Example | |
|---|---|
1 2 3 4 5 6 | |
This method is parameter passthrough
This method is essentially a parameter passthrough and does not perform any processing itself.
For more information on Prometheus HTTP API, refer to Prometheus Official Guide / Querying / HTTP API