Avenue Launches Data Enrichment: Use Multiple Data Sources for Alerting
Avenue users can now build one monitor that is triggered by multiple data sources.
What is Data Enrichment?
Data enrichment is a process that involves combining first-party data collected from internal sources (such as subscriber forms) with data collected from other internal sources or third-party external sources.
Why is it useful?
This feature is useful when you need to join data from more than one source. For example, if you had customer data in one data warehouse (like Snowflake or Redshift) and you wanted to join to outbound email data (from Front or Customer.IO). This feature is helpful for companies whose data sits across more than 1 database.
How it works?
In the Monitors view, add a new database and write sql query
Select the columns that you want to relate between databases (note: the fields you seek to join must contain identical values)
Examples:
1. A business collects data from a wifi device that is stored in their data warehouse, while their onboarding and customer data are saved in a separate database. By utilizing the multi-data source feature, they can seamlessly merge data from both sources and gain deeper insights.
2. Another organization has real-time data stored in their postgres microservices, but broader store information is saved in Snowflake. By integrating data from both sources, they can gain a more complete view of their business operations and make informed decisions.
3. A ride-sharing company stores device data in Presto and driver information in Hive. By leveraging the multi-data source feature, they can merge data from both sources to obtain a more comprehensive picture of their business.
Using Handlebars
To make it easier to ask for specific information, you can use the handlebars syntax in the enrich sql. Handlebars helps you organize your data so you can find what you're looking for more easily. When you use handlebars, the data is put into a context variable which contains all of the rows of information from your other query. This variable organizes the information so it's easier for you to read and understand.
Let’s assume that the original query returned the following results:
Which handlebars would then compile into: