Switch the kpi module to use flattened data

By extending datasource in the kpi module collectionOptions. This is the
first time one of the server modules uses collectionOptions.