Skip to content

AMI Integration 1: Custom Plugins

This third tutorial in the series will cover how to create a custom datasource adapter, in this case, for the Cassandra DBMS. We will start by setting up a Java project, built using Gradle, for our custom plugin and then explore the two components we need to create: a Plugin and an Adapter. Custom datasources can provide user specified configuration options that will be presented to the user in the AMI Web UI which we will use to allow the user to choose the port Cassandra is running on. We will then create the translation between the AMI and Cassandra grammars, for example, mapping greater than to '>' or equals to '='. With this done we can move onto creating the datasource adapter itself building up all of the required functionality. This requires us to implement a number of methods that take queries from AMI, relay them to our custom datasource (Cassandra) and then translate the resulting data into the required AMI types. With the custom datasource created we will add it to AMI and test it out by creating visualizations that use data from a Cassandra database.

  • Topics Covered


    • Plugin project setup
    • What is a Custom Datasource?
    • Creating a DatasourcePlugin
    • Option Configuration
    • Grammar mapping
  • Topics Covered continued...


    • Creating a DatasourceAdapter
    • Converting data into required AMI classes
    • Installing plugins
    • Using a custom plugin