Script Development / Prometheus
The Prometheus connector operation object primarily provides methods for operating Prometheus.
This connector connects to and accesses Prometheus based on the HTTP protocol
DFF.CONN(...) parameters are as follows:
| Parameter | Type | Required / Default | Description |
|---|---|---|---|
connector_id |
str | Required | Connector ID |
.query(...)
Send 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 a parameter passthrough
This method is essentially a parameter passthrough and does not perform any processing itself.
For information on the Prometheus HTTP API, please refer to the Prometheus Official Documentation / Querying / HTTP API