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. Prometheus
  3. Prometheus.yml file does not appear to work and other config is read-only

Prometheus.yml file does not appear to work and other config is read-only

Scheduled Pinned Locked Moved Solved Prometheus
4 Posts 2 Posters 2.1k Views 2 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.
  • L Offline
    L Offline
    lcd_official
    wrote on last edited by
    #1

    Hi, Cloudron community!

    Hope you can help.
    I am attempting to update my prometheus.yml file in /app/data/config, however the changes to not seem to be working. I noticed that there is another prometheus.yml in /app/code, however this one is read-only. I gather from this topic that the /app/data/config version is the one to go with, but I am surprised that the one in /app/code does not update after reboot.

    I also tried editing /app/code/prometheus.yml directly in Recovery mode, only to have the changes there wiped out after app restart.

    Is there somewhere else I should be making these changes, or is /app/data/config the correct one and I'm barking up the wrong tree assuming this is the source of my issues?

    Background if anyone needs it: I have installed node_exporter on my host VPS and am attempting to add the following to scrape_config:

      - job_name: "node"
        static_configs:
         - targets: ["localhost:9100"]
    

    Thanks!

    girishG 1 Reply Last reply
    1
    • L lcd_official

      Hi, Cloudron community!

      Hope you can help.
      I am attempting to update my prometheus.yml file in /app/data/config, however the changes to not seem to be working. I noticed that there is another prometheus.yml in /app/code, however this one is read-only. I gather from this topic that the /app/data/config version is the one to go with, but I am surprised that the one in /app/code does not update after reboot.

      I also tried editing /app/code/prometheus.yml directly in Recovery mode, only to have the changes there wiped out after app restart.

      Is there somewhere else I should be making these changes, or is /app/data/config the correct one and I'm barking up the wrong tree assuming this is the source of my issues?

      Background if anyone needs it: I have installed node_exporter on my host VPS and am attempting to add the following to scrape_config:

        - job_name: "node"
          static_configs:
           - targets: ["localhost:9100"]
      

      Thanks!

      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #2

      @lcd_official your yaml changes, you have to change /app/data/config/prometheus.yml . Use the filemanager to edit the file.

      L 1 Reply Last reply
      1
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #3

        Added this info in https://docs.cloudron.io/apps/prometheus/#custom-config

        1 Reply Last reply
        3
        • girishG girish

          @lcd_official your yaml changes, you have to change /app/data/config/prometheus.yml . Use the filemanager to edit the file.

          L Offline
          L Offline
          lcd_official
          wrote on last edited by
          #4

          @girish Pefect. As always, thank you for the quick response!

          1 Reply Last reply
          0
          • nebulonN nebulon marked this topic as a question on
          • nebulonN nebulon has marked this topic as solved on

          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