title: What is list of Prometheus labels and variables that can be used in alert template
body: <p>I am writing some checks for Prometheus, and I would like to find out, which variables I may use in templates. I am using <code>$labels.container</code>, but <code>$labels.service</code> and <code>$labels.instance</code> does not work. For example, I am using instance in prometheus queries, but I am not able to use it in template. How can I find out all labels, or other variables I can use in template? I implemented own exporter written in python that controls which containers in docker swarm keep restarting.</p>
  <p>I am new with Prometheus and Alertmanager and documentation does not looks very clear according to me. Thank you.</p>