Dispaly Top N process consuming cpu and memory

Hi,

I am trying create grafana dashboard which would display top N process using cpu and memory of an specific node but couldn’t able to figure out exactly.

We are using tickstk components telegraf,influxdb,kapacitor and grafana in our environment.

Any help would be appreciated.

Regards
Kumar