Supported Providers
Prometheus
Prometheus provider allows integration with Prometheus for monitoring and alerting purposes.
Inputs
query
: str : The Prometheus query to executetime_range
: str (optional) : Time range for the query in Prometheus’ duration format (e.g.,1h
,30m
)
Outputs
result
: The result of the Prometheus query, returned in a dictionary format containing the data.
Authentication Parameters
prometheus_url
: URL of the Prometheus server where the queries will be executed.api_token
: API token for secure access to Prometheus server (optional if server is open).
Connecting with the Provider
- Set up a Prometheus server and make sure it’s running.
- Get the
prometheus_url
where your Prometheus instance is accessible. - (Optional) Obtain the API token from your Prometheus configuration if it’s protected.
- Provide these values in the provider configuration.