Implemented the custom index type for composite metrics