You can graph anything in Grafana as long as you have metrics for it.
You can create an application and have prometheus scrape that application, use any of the supported libs that can instrument you app for prometheus and add any custom counters & metrics you want and graph them in Grafana