title: How can I scrape label value using prometheus query from metrics and set alerts
body: <p><em>How can I scrape label <strong>task_attempt_num</strong> value from below metrics and configure alerts if its greater than 0</em></p>
  
  <pre><code>flink_taskmanager_numrecordout{instance="eu99",task_attempt_num="2",task_id=2}
  flink_taskmanager_numrecordout{instance="eu99",task_attempt_num="0",task_id=2}
  flink_taskmanager_numrecordout{instance="eu99",task_attempt_num="1",task_id=1}
  flink_taskmanager_numrecordout{instance="eu99",task_attempt_num="0",task_id=3}```
  </code></pre>