sensu / sensu-plugin-sdk

A framework for creating Sensu plugins
MIT License
7 stars 8 forks source link

Added hostname function to templates #46

Closed portertech closed 3 years ago

portertech commented 3 years ago

Allow Sensu Go plugin users to use the local system's hostname in command line argument templating. For example:

"{{.Entity.Name}}/{{.Check.Name}} : {{.Check.Output}} - https://{{ Hostname }}:3000/c/~/n/default/events/{{.Entity.Name}}/{{.Check.Name}}"