Yum list installed |grep something dashboard or dpkg -l |grep something dashboard

How Can i make above dashboard using inputs.exec ? but not able to create dashboard in grafana someone please could help me!!!