I am thinking about using telegraf instead of prometheus because I have it in use anyway and don’t have to maintain 2 services.
I have seen that there are inputs.prometheus but do not know exactly how I have to write my config then.
In Prometheus I added several targets to a scrape job and then gave them a service tag:
You can repeat the above section for every target if you need custom configs for each of them. Or you can specify different plugins for each and then set specific tags for each: