I already have done that. The customer(s) also want to gather data for 30/45 secs or 1 min and 15/30/45 secs or 2 min 15/30/45 secs ... Since smartstor can only use three tiers, i am having a hard time grouping the time. I have a query below but the limitation was it only queries per minute. The old Introscope JDBC (Using the JDBC API - CA Application Performance Management - 9.7 - CA Technologies Documentation ) has a "period" column where user can input if you want data in 15/30/45 secs and even 1:15/1:30/1:45 minutes.
SELECT agent_host,
agent_name,
EXTRACT(MONTH from ts) as "Month", EXTRACT(DAY from ts) as "Day",
EXTRACT(HOUR from ts) as "Hour", EXTRACT(MINUTE from ts) as "Minute",
sum(value_count) as "value_count"
FROM numerical_metric_data
WHERE metric_path = 'Servlets:Average Response Time (ms)'
AND agent_host != 'Custom Metric Host (Virtual)'
AND ts between Timestampadd(sql_tsi_day, -12, Now()) AND Now()
GROUP BY agent_host,
agent_name,
EXTRACT(MONTH from ts),
EXTRACT(DAY from ts),
EXTRACT(HOUR from ts),
EXTRACT(MINUTE from ts)