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
  • 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 | 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 1.2k 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 Offline
      girishG Offline
      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 Offline
        girishG Offline
        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
          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