Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    How to add Prometheus data source to Grafana?

    Grafana
    5
    5
    3219
    Loading More Posts
    • 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.
    • C
      cyberfreakde last edited by

      When I try to add the Prometheus url http://localhost:9090/metrics to Grafana I get the error

      Unknown error during query transaction. Please check JS console logs.
      

      Am I missing something?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @cyberfreakde last edited by

        @cyberfreakde I don't have much experience with either of these but you should add it by prometheus' domain name. Since each app is a container, the "localhost" of each app is different.

        1 Reply Last reply Reply Quote 1
        • jimcavoli
          jimcavoli App Dev last edited by

          Yeah, you likely don't want localhost you want the uuid of the installation as the hostname since that's what's exposed in the docker virtual network.

          1 Reply Last reply Reply Quote 0
          • Jan Macenka
            Jan Macenka last edited by

            having the same problem currently, where can i find the containers UUID?

            jdaviescoates 1 Reply Last reply Reply Quote 0
            • jdaviescoates
              jdaviescoates @Jan Macenka last edited by

              @Jan-Macenka I see you worked that out:

              @Jan-Macenka said in Prometheus + Grafana actually working:

              just had the same issue and wanted to add something here as a documentation:

              If both Grafana and Prometheus are running as a cloudron-app, you can add Prometheus as a data-source in Grafana by inputting http://<PROMETHEUS-SERVICE-UUID>:9090 in the URL-field where PROMETHEUS-SERVICE-UUID can be found form the prometheus container either by looking up its installation location in the Storage-Tab or by connecting via terminal and copying the hostname.

              Cheers,
              Jan

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Powered by NodeBB