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

Update the event view to display check command with token substitution #254

Open
jgrasser opened this issue Jan 30, 2020 · 1 comment
Open

Comments

@jgrasser
Copy link

Update the event view to display check command with token substitution

Feature Suggestion

I would like the check command to be displayed above the check result. This is available on the page, but it's buried in the check configuration summary. Additionally, I would like the annotations and labels to be replaced with the configured values.

Ultimately, it would really be awesome if I there was something I could copy and paste into the terminal.

Example:
Check Definition:

check-disk-usage.rb -w {{.annotations.disk_warning | default 75}} -c {{.annotations.disk_critical | default 85}}

Rendered:

/bin/sensuctl check execute check-cpu-usage -w 45 -c 75

/var/cache/sensu/sensu-agent/0ce9d52b270b77f4cab754e55732ae002228201d0bd01a89b954a0655b88c1ee6546e2f82cfd1eec04689af90ad940cde128e8867912d9e415f4a58d7fdcdadf/bin/check-disk-usage.rb -w 45 -c 75

Possible Implementation

Screen Shot 2020-01-30 at 1 19 26 PM

@echlebek
Copy link
Contributor

I'm going to transfer this issue to github.com/sensu/web, as it pertains to that project.

@echlebek echlebek transferred this issue from sensu/sensu-go Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants