Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override global command list #21

Closed
deven96 opened this issue Nov 8, 2022 · 2 comments
Closed

Override global command list #21

deven96 opened this issue Nov 8, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@deven96
Copy link
Member

deven96 commented Nov 8, 2022

Currently the metrics are defined globally and all hosts attempt to run them, however we would like to be able to extend commands for a single host by doing something like

hosts:
  children:
    "0.0.0.0":
      metrics:
        docker:
      connection:
        type: ssh 
        username: ci-dev
        port: 2222
        private_key_path: "/home/diretnan/Projects/Personal/saido/ssh-key/ci/ci-test-key"
    "localhost":
      connection:
        type: local
metrics:
  custom: "cat /proc/uptime"
  loadavg:

poll-interval: 10

Docker metric (along with custom and loadavg) would only run for 0.0.0.0 while Custom and Loadavg would be run for the rest i.e localhost

@deven96 deven96 self-assigned this Nov 8, 2022
@deven96 deven96 added the enhancement New feature or request label Nov 8, 2022
@deven96
Copy link
Member Author

deven96 commented Dec 4, 2022

@Nurudeen38 I've added the individual metrics extension.... but now the metric I added for just one server tends to show up for all on the frontend

@deven96
Copy link
Member Author

deven96 commented Dec 4, 2022

@Nurudeen38 Also I'm still having the issue of not seeing any of my metrics except on one server

@deven96 deven96 closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant