promql.info Open in urlscan Pro
66.241.124.131  Public Scan

URL: https://promql.info/
Submission: On July 21 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

POST /

<form action="/" method="POST">
  <textarea style="width: 100%; height: 200px; border: 1px solid black; display: none;" name="query" id="query"># Load data in a trivial way.
load 5m
	http_requests{path="/foo"}	0 1 2 3 2 3 4

# Test the increase() function.
eval instant at 30m increase(http_requests[30m])
    {path="/foo"} 7

# Clear storage.
clear

# Load data in a different way.
load 5m
  http_requests{job="api-server", instance="0", group="production"} 0+10x10
  http_requests{job="api-server", instance="1", group="production"} 0+20x10
  http_requests{job="api-server", instance="0", group="canary"}   0+30x10
  http_requests{job="api-server", instance="1", group="canary"}   0+40x10

# Test simple sum.
eval instant at 50m sum by (group) (http_requests{job="api-server"})
  {group="canary"} 700
  {group="production"} 300

# Clear storage.
clear

# Test time-related functions without loading any data.
eval instant at 0m year()
  {} 1970

eval instant at 1ms time()
  0.001

eval instant at 50m time()
  3000</textarea>
  <div class="CodeMirror cm-s-juejin" translate="no">
    <div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 5px; left: 35px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0"
        style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; min-height: 1em; outline: none;"></textarea></div>
    <div class="CodeMirror-vscrollbar" tabindex="-1" cm-not-content="true" style="bottom: 0px; width: 18px; visibility: hidden;">
      <div style="min-width: 1px; height: 0px;"></div>
    </div>
    <div class="CodeMirror-hscrollbar" tabindex="-1" cm-not-content="true" style="height: 18px; visibility: hidden;">
      <div style="height: 100%; min-height: 1px; width: 0px;"></div>
    </div>
    <div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div>
    <div class="CodeMirror-gutter-filler" cm-not-content="true"></div>
    <div class="CodeMirror-scroll" tabindex="-1">
      <div class="CodeMirror-sizer" style="margin-left: 30px; margin-bottom: 0px; border-right-width: 50px; min-height: 533px; min-width: 592.109px; padding-right: 0px; padding-bottom: 0px;">
        <div style="position: relative; top: 0px;">
          <div class="CodeMirror-lines" role="presentation">
            <div role="presentation" style="position: relative; outline: none;">
              <div class="CodeMirror-measure">
                <pre class="CodeMirror-line-like"><span>xxxxxxxxxx</span></pre>
              </div>
              <div class="CodeMirror-measure"></div>
              <div style="position: relative; z-index: 1;"></div>
              <div class="CodeMirror-cursors">
                <div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 15px;">&nbsp;</div>
              </div>
              <div class="CodeMirror-code" role="presentation" style="">
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">1</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Load data in a trivial way.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">2</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">load 5m</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">3</div>
                  </div>
                  <pre class=" CodeMirror-line "
                    role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>http_requests{path="/foo"}<span class="cm-tab" role="presentation" cm-text="	">  </span>0 1 2 3 2 3 4</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">4</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">5</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Test the increase() function.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">6</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">eval instant at 30m increase(http_requests[30m])</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">7</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">    {path="/foo"} 7</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">8</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">9</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Clear storage.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">10</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">clear</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">11</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">12</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Load data in a different way.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">13</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">load 5m</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">14</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  http_requests{job="api-server", instance="0", group="production"} 0+10x10</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">15</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  http_requests{job="api-server", instance="1", group="production"} 0+20x10</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">16</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  http_requests{job="api-server", instance="0", group="canary"}   0+30x10</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">17</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  http_requests{job="api-server", instance="1", group="canary"}   0+40x10</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">18</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">19</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Test simple sum.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">20</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">eval instant at 50m sum by (group) (http_requests{job="api-server"})</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">21</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  {group="canary"} 700</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">22</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  {group="production"} 300</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">23</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">24</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Clear storage.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">25</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">clear</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">26</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">27</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># Test time-related functions without loading any data.</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">28</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">eval instant at 0m year()</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">29</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  {} 1970</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">30</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">31</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">eval instant at 1ms time()</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">32</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  0.001</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">33</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">34</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">eval instant at 50m time()</span></pre>
                </div>
                <div style="position: relative;">
                  <div class="CodeMirror-gutter-wrapper" aria-hidden="true" style="left: -30px;">
                    <div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 21px;">35</div>
                  </div>
                  <pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">  3000</span></pre>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div style="position: absolute; height: 50px; width: 1px; border-bottom: 0px solid transparent; top: 533px;"></div>
      <div class="CodeMirror-gutters" style="height: 583px;">
        <div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 29px;"></div>
      </div>
    </div>
  </div>
  <input type="submit" value="Submit">
</form>

Text Content

PROMQL.INFO

# Load data in a trivial way. load 5m http_requests{path="/foo"} 0 1 2 3 2 3 4 #
Test the increase() function. eval instant at 30m increase(http_requests[30m])
{path="/foo"} 7 # Clear storage. clear # Load data in a different way. load 5m
http_requests{job="api-server", instance="0", group="production"} 0+10x10
http_requests{job="api-server", instance="1", group="production"} 0+20x10
http_requests{job="api-server", instance="0", group="canary"} 0+30x10
http_requests{job="api-server", instance="1", group="canary"} 0+40x10 # Test
simple sum. eval instant at 50m sum by (group) (http_requests{job="api-server"})
{group="canary"} 700 {group="production"} 300 # Clear storage. clear # Test
time-related functions without loading any data. eval instant at 0m year() {}
1970 eval instant at 1ms time() 0.001 eval instant at 50m time() 3000

xxxxxxxxxx



 
1

# Load data in a trivial way.

2

load 5m

3

    http_requests{path="/foo"}  0 1 2 3 2 3 4

4

​

5

# Test the increase() function.

6

eval instant at 30m increase(http_requests[30m])

7

    {path="/foo"} 7

8

​

9

# Clear storage.

10

clear

11

​

12

# Load data in a different way.

13

load 5m

14

  http_requests{job="api-server", instance="0", group="production"} 0+10x10

15

  http_requests{job="api-server", instance="1", group="production"} 0+20x10

16

  http_requests{job="api-server", instance="0", group="canary"}   0+30x10

17

  http_requests{job="api-server", instance="1", group="canary"}   0+40x10

18

​

19

# Test simple sum.

20

eval instant at 50m sum by (group) (http_requests{job="api-server"})

21

  {group="canary"} 700

22

  {group="production"} 300

23

​

24

# Clear storage.

25

clear

26

​

27

# Test time-related functions without loading any data.

28

eval instant at 0m year()

29

  {} 1970

30

​

31

eval instant at 1ms time()

32

  0.001

33

​

34

eval instant at 50m time()

35

  3000





RESULT

✅ All tests passed


SHARE LINK

Share this link with others to show them the current query:

https://promql.info/?b64=IyBMb2FkIGRhdGEgaW4gYSB0cml2aWFsIHdheS4KbG9hZCA1bQoJaHR0cF9yZXF1ZXN0c3twYXRoPSIvZm9vIn0JMCAxIDIgMyAyIDMgNAoKIyBUZXN0IHRoZSBpbmNyZWFzZSgpIGZ1bmN0aW9uLgpldmFsIGluc3RhbnQgYXQgMzBtIGluY3JlYXNlKGh0dHBfcmVxdWVzdHNbMzBtXSkKICAgIHtwYXRoPSIvZm9vIn0gNwoKIyBDbGVhciBzdG9yYWdlLgpjbGVhcgoKIyBMb2FkIGRhdGEgaW4gYSBkaWZmZXJlbnQgd2F5Lgpsb2FkIDVtCiAgaHR0cF9yZXF1ZXN0c3tqb2I9ImFwaS1zZXJ2ZXIiLCBpbnN0YW5jZT0iMCIsIGdyb3VwPSJwcm9kdWN0aW9uIn0gMCsxMHgxMAogIGh0dHBfcmVxdWVzdHN7am9iPSJhcGktc2VydmVyIiwgaW5zdGFuY2U9IjEiLCBncm91cD0icHJvZHVjdGlvbiJ9IDArMjB4MTAKICBodHRwX3JlcXVlc3Rze2pvYj0iYXBpLXNlcnZlciIsIGluc3RhbmNlPSIwIiwgZ3JvdXA9ImNhbmFyeSJ9ICAgMCszMHgxMAogIGh0dHBfcmVxdWVzdHN7am9iPSJhcGktc2VydmVyIiwgaW5zdGFuY2U9IjEiLCBncm91cD0iY2FuYXJ5In0gICAwKzQweDEwCgojIFRlc3Qgc2ltcGxlIHN1bS4KZXZhbCBpbnN0YW50IGF0IDUwbSBzdW0gYnkgKGdyb3VwKSAoaHR0cF9yZXF1ZXN0c3tqb2I9ImFwaS1zZXJ2ZXIifSkKICB7Z3JvdXA9ImNhbmFyeSJ9IDcwMAogIHtncm91cD0icHJvZHVjdGlvbiJ9IDMwMAoKIyBDbGVhciBzdG9yYWdlLgpjbGVhcgoKIyBUZXN0IHRpbWUtcmVsYXRlZCBmdW5jdGlvbnMgd2l0aG91dCBsb2FkaW5nIGFueSBkYXRhLgpldmFsIGluc3RhbnQgYXQgMG0geWVhcigpCiAge30gMTk3MAoKZXZhbCBpbnN0YW50IGF0IDFtcyB0aW1lKCkKICAwLjAwMQoKZXZhbCBpbnN0YW50IGF0IDUwbSB0aW1lKCkKICAzMDAw

Github | Prometheus

Prometheus is licensed by The Prometheus Authors under Apache 2.0 License.