Phantas0s/devdash

Config example to monitor multiple resources

inktrap opened this issue · 2 comments

Currently the docs show how to monitor one resource.

projects:
  - name: Default dashboard located at $HOME/.config/devdash/default.yml
    services:
      monitor:
        address: "https://example.org"
    widgets:
      - row:
          - col:
              size: "M"
              elements:
                - name: mon.box_availability
                  options:
                    title: " thevaluable.dev status "
                    color: yellow

I would like to add multiple addresses, so maybe make monitor take a list of dicts (each dict with name, address fields?)?

If you grab the last release (v0.4.2), you can specify the address directly in the widget:

projects:
  - name: Default dashboard located at $HOME/.config/devdash/default.yml
    services:
      monitor:
        address: "https://thevaluable.dev"
    widgets:
      - row:
          - col:
              size: "M"
              elements:
                - name: mon.box_availability
                  options:
                    title: " thevaluable.dev status "
                    color: yellow
                - name: mon.box_availability
                  options:
                    title: " example.com "
                    address: "https://example.com"
                    color: yellow

If you want the two widgets in two columns:

projects:
  - name: Default dashboard located at $HOME/.config/devdash/default.yml
    services:
      monitor:
        address: "https://thevaluable.dev"
    widgets:
      - row:
          - col:
              size: "XS"
              elements:
                - name: mon.box_availability
                  options:
                    title: " thevaluable.dev status "
                    color: yellow
          - col:
              size: "XS"
              elements:
                - name: mon.box_availability
                  options:
                    title: " example.com "
                    address: "https://example.com"
                    color: yellow

Hey :) thanks for your answer :) I just ended up writing my own application based on python-rich.