Skip to content

Commit

Permalink
Fix punctuation in Prometheus documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
timflannagan authored and ebyhr committed Sep 2, 2020
1 parent e7199db commit ef190cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions presto-docs/src/main/sphinx/connector/prometheus.rst
Expand Up @@ -3,12 +3,12 @@ Prometheus Connector
====================

The Prometheus connector allows reading
`Prometheus <https://prometheus.io/>`_.
`Prometheus <https://prometheus.io/>`_
metrics as tables in Presto.

The mechanism for querying Prometheus is to use the Prometheus HTTP API. Specifically, all queries are resolved to Prometheus Instant queries
with a form like: http://localhost:9090/api/v1/query?query=up[21d]&time=1568229904.000"
In this case the ``up`` metric is taken from the Presto query table name. ``21d`` is the duration of the query. The Prometheus ``time`` value
with a form like: http://localhost:9090/api/v1/query?query=up[21d]&time=1568229904.000.
In this case the ``up`` metric is taken from the Presto query table name, ``21d`` is the duration of the query. The Prometheus ``time`` value
corresponds to the ``timestamp`` field. Presto queries are translated from their use of the ``timestamp`` field to a duration and time value
as needed. Presto splits are generated by dividing the query range into attempted equal chunks.

Expand Down

0 comments on commit ef190cc

Please sign in to comment.