Prometheus
Extract data from a Prometheus instance
Last updated
Was this helpful?
Extract data from a Prometheus instance
The following credentials keys are accepted:
http_url (required) -> The HTTP url of the instance
token (optional) -> the token key to use to access the instance
tenant (optional) -> the tenant id for Grafana Mimir authentication and authorization
user (optional) -> the username to use to access the instance via Basic Auth
password (optional) -> the password to use to access the instance via Basic Auth
tls (optional β v1.2.7) -> whether to use TLS for connecting (true/false).
cert_file (optional β v1.2.7) -> the client certificate to use to access the instance via TLS (file path)
cert_key_file (optional β v1.2.7) -> the client key to use to access the instance via TLS (file path)
cert_ca_file (optional β v1.2.7) -> the client CA certificate to use to access the instance via TLS (file path)
sling connsHere are examples of setting a connection named PROMETHEUS. We must provide the type=prometheus property:
$ sling conns set PROMETHEUS type=prometheus http_url=<http_url> api_key=<api_key> See here to learn more about the .env.sling file.
See here to learn more about the sling env.yaml file.
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?
Was this helpful?
export PROMETHEUS='{type: prometheus, http_url: "<http_url>", api_key: "<api_key>" }'connections:
PROMETHEUS:
type: prometheus
http_url: <http_url>
api_key: <api_key>
tls: true # if TLS connection needed