How to get all jobs list in variable?

Hi. I want to create variables(loki datasource) with:

  • List of all servers who send logs to Loki
  • List of all jobs
  • List of all lables
    How i can create this variables?