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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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 (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Grafana
  3. How to add Prometheus data source to Grafana?

How to add Prometheus data source to Grafana?

Scheduled Pinned Locked Moved Grafana
5 Posts 5 Posters 5.5k Views 5 Watching
  • 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 Offline
    C Offline
    cyberfreakde
    wrote on last edited by
    #1

    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?

    girishG 1 Reply Last reply
    0
    • C cyberfreakde

      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?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      1
      • jimcavoliJ Offline
        jimcavoliJ Offline
        jimcavoli
        App Dev
        wrote on last edited by
        #3

        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
        0
        • Jan MacenkaJ Offline
          Jan MacenkaJ Offline
          Jan Macenka
          wrote on last edited by
          #4

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

          jdaviescoatesJ 1 Reply Last reply
          0
          • Jan MacenkaJ Jan Macenka

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

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #5

            @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
            2

            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.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search