Skip to main content

Prometheus

Prometheus is an open-source systems monitoring and alerting toolkit designed for reliability and scalability in cloud-native and containerized environments. It provides powerful time-series data collection, storage, and querying capabilities for infrastructure and application monitoring, performance tracking, and observability.

CategoryObservability
DirectionQuery source
Sign-inNo Authentication
Query languagesSQLite
Tables7
Query templates25
Websiteprometheus.io

Before you start​

Prometheus needs no credentials — Huntbase queries it without signing in.

Connect Prometheus​

  1. Go to Connections and click New connection, or click New connection on the Prometheus product page.
  2. On Product, pick Prometheus and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your Prometheus lives:

FieldRequiredNotes
Prometheus AddressNoThe HTTP address of your Prometheus server, such as http://localhost:9090.
MetricsNoRegular expressions for the metric names to expose as tables, such as prometheus_http_requests_.*.

Credentials​

The only Method is No Authentication. Enter a Credential label (for example Production), then fill in:

No fields — choose this method to connect without credentials.

Query it​

Once connected, Prometheus can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 7 tables listed below, alongside every other connected source.

Example: SQLite​

List all alerts — Gain insights into all the alerts currently active in your system.

select
*
from
prometheus_alert;

Prometheus ships with 25 query templates. Find them in Library › Queries — see Query templates.

Tables​

Prometheus adds 7 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 7 tables
TableContains
prometheus_alertAlerts currently firing on the Prometheus server.
prometheus_labelLabels used in metrics in the Prometheus server.
prometheus_metricQuery metrics in the Prometheus server.
prometheus_ruleRules in the Prometheus server.
prometheus_rule_groupRule groups in the Prometheus server.
prometheus_seriesSeries in the Prometheus server.
prometheus_targetTarget scraped by the Prometheus server.

Next steps​