Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Grafana with Infinity and server api

Grafana with Infinity and server api

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 53.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    MarcusH
    wrote on last edited by
    #1

    Hi,

    Started migrating our Grafana to Infinity and new server api.
    Saw the techtalk video on youtube and the blog post nice work.

    One thing i noticed was that you use $__from/1000 and $__to/1000 for seconds and was having issue it not working, found that Grafana has these variables i guess they are cleaner to use ${__from📅seconds} and ${__to📅seconds}

    Also trying to get relative time to work, i have dashboard on last 30min beacuse they are used on TV screens but some DCI just collects once a day and i have 12h relative on them, tried ${__from📅seconds}-43200 but does not seem to work i get all 3 days that are in history.

    is it supposed to calc before query or send it to api? URL is ?timeFrom=1760509472-43200&timeTo=1760511272

    Running 5.2.6 and latest Inifinity

    1 Reply Last reply
    0
    • M
      M
      MarcusH
      wrote on last edited by
      #2

      Actually when i think about it would be great if there is a parameter for objects history that just returns latest value regardless of time. That would solve a lot of time related challenges we have in Grafana for dashboards with lots of values with first calculation option.

      Edit:

      found it maxRows=1

      1 Reply Last reply
      0
      • M
        M
        MarcusH
        wrote on last edited by
        #3

        Is it possible to create permanent auth token for new API server?

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          You can issue a token from Users and groups by right-clicking on a user.

          1 Reply Last reply
          0
          • M
            M
            MarcusH
            wrote on last edited by
            #5

            I did that but after server restart everything got 401 unauthorized and i had to reissue token.
            I see now that log states "New persistent authentication token issued for user grafana [10]" i guess something might be wrong with token save then.

            1 Reply Last reply
            0
            • F
              F
              Filipp Sudanov
              wrote on last edited by
              #6

              I've checked (but on 5.2.8) - token survived server restart. You can check if your token appears in auth_tokens DB table.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups