ToolJet/marketplace/plugins/prometheus/lib/operations.json
Ganesh Kumar 0eb2440023
Release: Marketplace sprint 12 (#13207)
* Feature: Prometheus plugin (#13161)

* prometheus plugin

* added existing props

* Host and database can be dynamically configured in query builder for PostgreSQL and MySQL data sources (#13163)

* Fix: Postgresql datasource tries to connect via ssl even when ssl toggle is off (#13167)

* The ability to provide a partition key for deleting items in CosmosDB datasource has been enabled (#13166)

* Feature: Ability to configure the database name in Redis datasource (#13165)

* Fix: Avoid setting Content-Type header for requests without body and configure different host for all environments in OpenAPI [PRE-RELEASE] (#13230)

* Send content-type only with body in request

* Persist OpenAPI parameters per operation only

* Configure different host

* Add disable styles to the select input

* Feat: New fields 'client id' and 'client secret' have been introduced in the Slack datasource configuration page in pre-release (#13162)

* Update slack frontend

* Update slack backend to handle custom creds

* Add backfill migrations

* Dynamically change dropdown according to versions

* Change migration file name

* Correctly access scope in chat:write logic

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Parth <108089718+parthy007@users.noreply.github.com>
Co-authored-by: Akshay <akshaysasidrn@gmail.com>
2025-07-11 12:15:39 +05:30

134 lines
No EOL
3.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
"title": "Prometheus Operations",
"placeholder": "Operations supported by Prometheus plugin",
"type": "api",
"defaults": {
"operation": "instant_query",
"iq_requestMethod": "get",
"rq_requestMethod": "get"
},
"properties": {
"operation": {
"label": "Operation",
"key": "operation",
"type": "dropdown-component-flip",
"placeholder": "Single select dropdown for operation",
"list": [
{
"value": "instant_query",
"name": "Instant Query with PromQL"
},
{
"value": "range_query",
"name": "Range Query with PromQL"
}
]
},
"instant_query": {
"iq_query": {
"label": "Query",
"key": "iq_query",
"type": "codehinter",
"tooltip": "Prometheus expression query string",
"placeholder": "http_requests_total{job=\"apiserver\", handler=\"/api/comments\"}"
},
"iq_time": {
"label": "Time",
"key": "iq_time",
"type": "codehinter",
"tooltip": "Evaluation timestamp",
"placeholder": "2015-07-01T20:10:51.781Z",
"helpText": "Expects rfc3339 or unix_timestamp"
},
"iq_timeout": {
"label": "Timeout",
"key": "iq_timeout",
"type": "codehinter",
"tooltip": "Evaluation timeout. Defaults to and is capped by the value of the -query.timeout flag",
"placeholder": "60s"
},
"iq_limit": {
"label": "Limit",
"key": "iq_limit",
"type": "codehinter",
"tooltip": "Maximum number of returned series. Doesnt affect scalars or strings but truncates the number of series for matrices and vectors. 0 means disabled."
},
"iq_requestMethod": {
"label": "Request method",
"key": "iq_requestMethod",
"type": "dropdown-component-flip",
"list": [
{
"name": "POST",
"value": "post"
},
{
"name": "GET",
"value": "get"
}
]
}
},
"range_query": {
"rq_query": {
"label": "Query",
"key": "rq_query",
"type": "codehinter",
"tooltip": "Prometheus expression query string",
"placeholder": "http_requests_total{job=\"apiserver\", handler=\"/api/comments\"}"
},
"rq_start": {
"label": "Start",
"key": "rq_start",
"type": "codehinter",
"tooltip": "Start timestamp, inclusive",
"placeholder": "2025-05-28T11:00:00Z",
"helpText": "Expects rfc3339 or unix_timestamp"
},
"rq_end": {
"label": "End",
"key": "rq_end",
"type": "codehinter",
"tooltip": "End timestamp, inclusive",
"placeholder": "2025-05-28T12:00:00Z",
"helpText": "Expects rfc3339 or unix_timestamp"
},
"rq_step": {
"label": "Step",
"key": "rq_step",
"type": "codehinter",
"tooltip": "Query resolution step width in duration format or float number of seconds",
"placeholder": "60s"
},
"rq_timeout": {
"label": "Timeout",
"key": "rq_timeout",
"type": "codehinter",
"tooltip": "Evaluation timeout. Defaults to and is capped by the value of the -query.timeout flag",
"placeholder": "60s"
},
"rq_limit": {
"label": "Limit",
"key": "rq_limit",
"type": "codehinter",
"tooltip": "Maximum number of returned series. 0 means disabled."
},
"rq_requestMethod": {
"label": "Request method",
"key": "rq_requestMethod",
"type": "dropdown-component-flip",
"list": [
{
"name": "POST",
"value": "post"
},
{
"name": "GET",
"value": "get"
}
]
}
}
}
}