Run PromQL queries, inspect alert state, and troubleshoot OAuth2 or OIDC client-credentials access to Prometheus-compatible APIs.
95
Quality
95%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Use the bundled Python scripts instead of re-implementing token handling or Prometheus HTTP requests.
python3 scripts/check_config.py when the user may have missing or malformed environment variables.python3 scripts/prom_query.py config to inspect the redacted effective configuration.python3 scripts/prom_query.py query --expr '<promql>' for instant PromQL queries.python3 scripts/prom_query.py alerts --state firing|pending|inactive to inspect alert state.python3 scripts/prom_query.py token --refresh only when debugging token acquisition or cache issues.Read docs/index.md when you need setup examples, configuration reference, or troubleshooting details.
Set these environment variables before querying:
PROM_QUERY_PROMETHEUS_URLPROM_QUERY_TOKEN_URLPROM_QUERY_CLIENT_IDPROM_QUERY_CLIENT_SECRETOptional:
PROM_QUERY_SCOPEPROM_QUERY_CA_BUNDLEPROM_QUERY_TIMEOUTquery prints a JSON object with the submitted expression and the Prometheus API response body.alerts prints a JSON object with the alert state, generated expression, and the Prometheus API response body.config prints a redacted configuration and validation report.token prints cache and expiry metadata without exposing the raw token.check_config.py prints a validation report and exits non-zero when the required configuration is incomplete or invalid.check_config.py before deeper debugging when the user does not know which variable is wrong.alerts as a convenience wrapper around ALERTS{alertstate="<state>"}.Install with Tessl CLI
npx tessl i jobe-skills/prometheus-oidc-query