• Jérome Perrin's avatar
    software/grafana: include a telegraf plugin to get slapos process metrics · 561511c1
    Jérome Perrin authored
    For now this still have to be enabled with a config like this in a .conf
    file in srv/telegraf/extra-config/  :
    
        [[inputs.execd]]
          name_override = "slapos"
          # this needs sudo when using can not access supervisor socket, like when being installed in root slapos
          command = ["/usr/bin/sudo", "$SOFTWARE_DIR/go.work/bin/telegraf-input-slapos", "-config", "/path/to/slapos.conf"]
    
    /path/to/slapos.conf would contain something like this:
    
        [[inputs.slapos]]
          ## Folder where partitions are located
          instance_root = "/srv/slapgrid/"
    
          ## filepath.Glob pattern to look for recursive instances
          recursive_instance_glob_pattern = "*/srv/runner/inst*/"
    
          ## Path of supervisor socket, relative to instance root
          socket_name = "sv.sock"
    561511c1
software.cfg 3.86 KB