Aggregation metrics step size

I’m trying to do a simple count_over_time query to count the number of GET requests per 10 seconds for a period of 1 minute, I expect the result to have 6 values, 1 value per 10 seconds, but I’m getting a value per 1 second, is this is the expected behavior?

This is the logcli command I’m using and its result.

logcli query --timezone=UTC --from="2022-09-01T10:00:00Z" --to="2022-09-01T10:01:00Z" 'count_over_time({env="production",app="api"} |= "Started GET" [10s])'
query=count_over_time%28%7Benv%3D%22production%22%2Capp%3D%22api%22%7D+%7C%3D+%22Started+GET%22+%5B10s%5D%29&start=1662026400000000000
[
  {
    "metric": {
      "app": "api",
      "env": "production",
      "filename": "/mnt/api/log/production.log",
      "host": "production-api-primary",
      "loglevel": "INFO"
    },
    "values": [
      [
        1662026400,
        "2"
      ],
      [
        1662026401,
        "2"
      ],
      [
        1662026402,
        "2"
      ],
      [
        1662026403,
        "3"
      ],
      [
        1662026404,
        "3"
      ],
      [
        1662026405,
        "4"
      ],
      [
        1662026406,
        "5"
      ],
      [
        1662026407,
        "6"
      ],
      [
        1662026408,
        "9"
      ],
      [
        1662026409,
        "9"
      ],
      [
        1662026410,
        "9"
      ],
      [
        1662026411,
        "10"
      ],
      [
        1662026412,
        "10"
      ],
      [
        1662026413,
        "9"
      ],
      [
        1662026414,
        "10"
      ],
      [
        1662026415,
        "9"
      ],
      [
        1662026416,
        "8"
      ],
      [
        1662026417,
        "7"
      ],
      [
        1662026418,
        "4"
      ],
      [
        1662026419,
        "4"
      ],
      [
        1662026420,
        "4"
      ],
      [
        1662026421,
        "3"
      ],
      [
        1662026422,
        "3"
      ],
      [
        1662026423,
        "3"
      ],
      [
        1662026424,
        "2"
      ],
      [
        1662026425,
        "2"
      ],
      [
        1662026426,
        "3"
      ],
      [
        1662026427,
        "4"
      ],
      [
        1662026428,
        "4"
      ],
      [
        1662026429,
        "4"
      ],
      [
        1662026430,
        "5"
      ],
      [
        1662026431,
        "6"
      ],
      [
        1662026432,
        "6"
      ],
      [
        1662026433,
        "6"
      ],
      [
        1662026434,
        "6"
      ],
      [
        1662026435,
        "6"
      ],
      [
        1662026436,
        "5"
      ],
      [
        1662026437,
        "4"
      ],
      [
        1662026438,
        "4"
      ],
      [
        1662026439,
        "4"
      ],
      [
        1662026440,
        "3"
      ],
      [
        1662026441,
        "2"
      ],
      [
        1662026442,
        "2"
      ],
      [
        1662026443,
        "2"
      ],
      [
        1662026444,
        "2"
      ],
      [
        1662026445,
        "2"
      ],
      [
        1662026446,
        "6"
      ],
      [
        1662026447,
        "6"
      ],
      [
        1662026448,
        "6"
      ],
      [
        1662026449,
        "6"
      ],
      [
        1662026450,
        "8"
      ],
      [
        1662026451,
        "8"
      ],
      [
        1662026452,
        "8"
      ],
      [
        1662026453,
        "8"
      ],
      [
        1662026454,
        "8"
      ],
      [
        1662026455,
        "9"
      ],
      [
        1662026456,
        "5"
      ],
      [
        1662026457,
        "5"
      ],
      [
        1662026458,
        "5"
      ],
      [
        1662026459,
        "5"
      ],
      [
        1662026460,
        "3"
      ]
    ]
  }
]

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.