Skip to content

Support for Time series Panels #34

Open

Description

@logut

Are Time series supported ? If so could you provide an exemple Panel with query ?

I tried select date_trunc('minute',CAST(datetime AS Timestamp)) as datetime, host, count(*) as count from httpaccess where status like '2%' group by host, date_trunc('minute',CAST(datetime AS Timestamp));, it works when adding in the Panel a Transform Convert field type to manually set datetime field as Time type.
I would also like to have multiple series based on the host field but can't get it to work.

Activity

  1. nitisht commented on Sep 3, 2023

    @nitisht
    Member

    Thanks for reporting @logut . Do you have an example - what are the columns and what type of output you're looking for?

  2. trueleo commented on Sep 3, 2023

    @trueleo

    @nitisht i think this is what they are referring to https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/time-series/

    from query it looks like. It is series on different hosts where Y values are count and X is time in minutes

  3. logut commented on Sep 9, 2023

    @logut
    Author

    Stream is for http server access logs and looks like:

    {
      "datetime": "2023-09-08 18:18:52.228",
      "host": "example.com",
      "hostname": "server01",
      "p_metadata": "",
      "p_tags": "",
      "p_timestamp": "2023-09-08T16:19:12.223",
      "status": "200",
      "timetakenms": "485",
      "ua": "Uptime-Kuma/1.23.1",
      "uid": "ZPtJbDECRXzn_xsGypWcQQAAAAc",
      "uri": "/index.php",
    }

    The output might look like:
    image

  4. nitisht commented on Nov 23, 2023

    @nitisht
    Member

    Thanks @logut we'll see how to add this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions