Skip to main content

metriql Looker integration

Project description

metriql Looker Integration

Generates LookML model from your metriql datasets. The idea is to leverage metriql datasets in your Looker setup without any additional modeling.

Usage

The library is available in PyPI so you can install it via pip as follows:

pip install metriql-lookml

The library expects stdin for the metriql metadata and outputs a ZIP file to stdout. Here is an example:

curl http://metriql-server.com/api/v0/metadata | metriql-lookml --connection myproject > metriql.zip

You can use --file argument instead of reading the metadata from stdin as an alternative.

The command outputs a zip file to stdout by default, if you pass --out myfile.zip argument, it will write to the specified file instead.

How does it work?

  1. Create a connection to metriql from Looker using its Trino interface.

  2. Run metriql-lookml passing the relevant connection argument for metriql.

You need to enable JDBC in your metriql server to be able to use metriql's Trino interface.

Build from source

Requires pipenv and python >=3.7

# From root folder
# Install
pipenv install --dev

# Run
pipenv run metriql2lookml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metriql-lookml-0.3.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

metriql_lookml-0.3-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page