# promQL up query

```promql
up
```

<figure><img src="/files/RWxKQLn5QAgDK4ocoZMI" alt=""><figcaption></figcaption></figure>

`up` fonksiyonu, belirtilen süre içinde scrape edilen hedeflerin durumunu belirtir.  Hedeflerin belirtilen süre içinde scrape edilip edilmediğini, scrape işlemlerinin başarılı olup olmadığını ve hedeflerin mevcut durumunu gösterir.  `up` fonksiyonu, `1` veya `0` değeri ile sonuçlanır. `1`, hedefin scrape edildiği ve metriklerin başarıyla alındığı anlamına gelirken, `0`, hedefin scrape edilemediği veya scrape işleminin başarısız olduğu anlamına gelir.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.onurbolatoglu.com/prometheus/promql-up-query.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
