Sling
Slingdata.ioBlogGithubHelp!
  • Introduction
  • Sling CLI
    • Installation
    • Environment
    • Running Sling
    • Global Variables
    • CLI Pro
  • Sling Platform
    • Sling Platform
      • Architecture
      • Agents
      • Connections
      • Editor
      • API
      • Deploy from CLI
  • Concepts
    • Replications
      • Structure
      • Modes
      • Source Options
      • Target Options
      • Columns
      • Transforms
      • Runtime Variables
      • Tags & Wildcards
    • Hooks / Steps
      • Check
      • Command
      • Copy
      • Delete
      • Group
      • Http
      • Inspect
      • List
      • Log
      • Query
      • Replication
      • Store
      • Read
      • Write
    • Pipelines
    • Data Quality
      • Constraints
  • Examples
    • File to Database
      • Custom SQL
      • Incremental
    • Database to Database
      • Custom SQL
      • Incremental
      • Backfill
    • Database to File
      • Incremental
    • Sling + Python 🚀
  • Connections
    • Database Connections
      • Athena
      • BigTable
      • BigQuery
      • Cloudflare D1
      • Clickhouse
      • DuckDB
      • DuckLake
      • MotherDuck
      • MariaDB
      • MongoDB
      • Elasticsearch
      • MySQL
      • Oracle
      • Postgres
      • Prometheus
      • Proton
      • Redshift
      • StarRocks
      • SQLite
      • SQL Server
      • Snowflake
      • Trino
    • Storage Connections
      • AWS S3
      • Azure Storage
      • Backblaze B2
      • Cloudflare R2
      • DigitalOcean Spaces
      • FTP
      • Google Drive
      • Google Storage
      • Local Storage
      • Min.IO
      • SFTP
      • Wasabi
Powered by GitBook
On this page
  • Setup
  • Using sling conns
  • Environment Variable
  • Sling Env File YAML
  • Guides
  1. Connections
  2. Database Connections

Prometheus

Extract data from a Prometheus instance

Setup

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)

Using sling conns

Here 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> 

Environment Variable

export PROMETHEUS='{type: prometheus, http_url: "<http_url>", api_key: "<api_key>" }'

Sling Env File YAML

connections:
  PROMETHEUS:
    type: prometheus
    http_url: <http_url>
    api_key: <api_key>
    tls: true # if TLS connection needed

Guides

PreviousPostgresNextProton

Last updated 5 months ago

See to learn more about the sling env.yaml file.

If you are facing issues connecting, please reach out to us at , on or open a Github Issue .

here
support@slingdata.io
discord
here
Export Data From Prometheus into any Database