InfluxDB Downsampling
Yes, influx provides continuous queries(CQ). 

Continuous queries (CQ) are InfluxQL queries that run automatically and periodically on realtime data and store query results in a specified measurement.

Syntax

CREATE CONTINUOUS QUERY &lt;cq_name&gt; ON &lt;database_name&gt;
BEGIN
  &lt;cq_query&gt;
END


where cq_query is 

SELECT &lt;function[s]&gt; INTO &lt;destination_measurement&gt; FROM &lt;measurement&gt; [WHERE &lt;stuff&gt;] GROUP BY time(&lt;interval&gt;)[,&lt;tag_key[s]&gt;]


Example:

CREATE CONTINUOUS QUERY "cq_basic" ON "transportation"
BEGIN
  SELECT mean("passengers") INTO "average_passengers" FROM "bus_data" GROUP BY time(1h)
END


P.S One thing needs to be noted here is that, the fields created into the new measurement are prefixed with the function name. In above case, mean_passengers would be inserted as column name. To overcome this you can use 'AS'.

Refer this link for detailed https://docs.influxdata.com/influxdb/v1.7/query_language/continuous_queries/