The elementary
utility enables you to automate test report generation and anomaly detection using Elementary
EDK Based Plugin
Getting Started
Prerequisites
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration
-
Add the elementary utility to your
project using
:meltano add
-
Configure the elementary
settings using
:meltano config
meltano add utility elementary
meltano config elementary set --interactive
Next steps
This a dbt extension, and therefore requires knowledge and understanding of dbt before adding to your project. Please install one of the available dbt extensions from Meltano Hub before proceeding with the rest of the setup.
- Specify your dbt adapter in the
pip_url
and in your profiles directory
Example, in the case of BigQuery:
pip_url: elementary-data[bigquery] git+https://github.com/potloc/elementary-ext.git config: profiles_dir: ${MELTANO_PROJECT_ROOT}/transform/profiles/
- Run dbt deps
This will populate you dbt_packages
folder with pertinent dbt models
It is important to note that you will need to update your dbt packages file when you update your your elementary pip url. These 2 different packages Should have the same version
- Follow elementary setup tutorial
Tutorial found here: https://docs.elementary-data.com/quickstart
- Invoke Elementary
Run meltano invoke elementary:monitor-report
and see your brand new report!
If you run into any issues, learn how to get help.
Capabilities
This plugin currently has no capabilities defined. If you know the capabilities required by this plugin, please contribute!Settings
The
elementary
settings that are known to Meltano are documented below. To quickly
find the setting you're looking for, click on any setting name from the list:
You can also list these settings using
with the meltano config
list
subcommand:
meltano config elementary list
You can
override these settings or specify additional ones
in your meltano.yml
by adding the settings
key.
Please consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.
File Path (file-path)
-
Environment variable:
ELEMENTARY_FILE-PATH
Location of the file generated by the monitor-report
commands
Configure this setting directly using the following Meltano command:
meltano config elementary set file-path [value]
Profiles Directory (profiles-dir)
-
Environment variable:
ELEMENTARY_PROFILES-DIR
Profiles directory path for your dbt project
Configure this setting directly using the following Meltano command:
meltano config elementary set profiles-dir [value]
Project Directory (project_dir)
-
Environment variable:
ELEMENTARY_PROJECT_DIR
-
Default Value:
${MELTANO_PROJECT_ROOT}/transform/
Project directory path for your dbt project
Configure this setting directly using the following Meltano command:
meltano config elementary set project_dir [value]
Slack Channel Name (slack-channel-name)
-
Environment variable:
ELEMENTARY_SLACK-CHANNEL-NAME
-
Default Value:
elementary-notifs
If necessary, slack channel name in which to send notifications to
Configure this setting directly using the following Meltano command:
meltano config elementary set slack-channel-name [value]
Slack Token (slack-token)
-
Environment variable:
ELEMENTARY_SLACK-TOKEN
If necessary, slack token for sending notifications to slack
Configure this setting directly using the following Meltano command:
meltano config elementary set slack-token [value]
Commands
The elementary utility supports the following commands that can be used withmeltano invoke
:describe
-
Equivalent to:
describe
meltano invoke elementary:describe [args...]
initialize
-
Equivalent to:
initialize
Allows you to initialize your Elementary extension.
meltano invoke elementary:initialize [args...]
monitor-report
-
Equivalent to:
monitor-report
Allows you to generate a report and sent to to your file path
meltano invoke elementary:monitor-report [args...]
monitor-send-report
-
Equivalent to:
monitor-send-report
Allows you to generate a report and send it through slack
meltano invoke elementary:monitor-send-report [args...]
Something missing?
This page is generated from a YAML file that you can contribute changes to.
Edit it on GitHub!Looking for help?
#plugins-general
channel.