DQL - show detected services number trend

Yes, second approach is as good start. Here is my query:

timeseries {req=sum(dt.service.request.count), timestamp=start()}, by:{dt.entity.service}, from:now()-10d, to:now(), interval:24h
| fieldsAdd d=record(req=req[], timestamp=timestamp[])
| expand d 
| filterOut isNull(d[req])
| makeTimeseries service_count=countDistinct(dt.entity.service), interval: 24h, time: d[timestamp]

We need to unwrap request count timeseries and in order no too lose information to which information each datapoint belongs we need to user special function start() and later combine it with each datapoint in a record.
After expand we need to get read rows where number of request was null - these are days when “service did not exists”. Now we can build new timeseries with makeTimeseries when each datapoint will be count of unique service entity ids.