newrelic / newrelic-unix-monitor

Monitoring service for Unix (AIX, Linux, HP-UX, MacOS, Solaris) systems
https://docs.newrelic.com/docs/infrastructure/host-integrations/host-integrations-list/unix-monitoring-integration/
Other
30 stars 23 forks source link

Deploying a custom dashboard at startup #30

Closed clrosier closed 3 years ago

clrosier commented 3 years ago

Hi everyone. I was wondering if it's possible to deploy a custom dashboard at plugin startup as opposed to the 7 default ones that get created.

Can dashboards be defined by a json file or something like that?

Thank you!

sschwartzman commented 3 years ago

Hi @clrosier - unfortunately that's not doable with what we have set up here. This dashboard deployment is a lambda we have running that pulls the dashboards from S3 depending on which service (in this case unix monitor) is asking.

That said, I'd be happy to provide you the lambda code as a Gist to run yourselves, then you'd just have to change the start shell script to point at your lambda endpoint rather than ours.

If you want that src, let me know!

clrosier commented 3 years ago

@sschwartzman That would be really cool if you could provide that for us! I'd really appreciate that personally :)

sschwartzman commented 3 years ago

@clrosier so I went back and looked and it's a little more complex than can be dropped into a single Gist. How urgent is this request? I ask because I need to figure out what makes sense in terms of releasing it or just guiding you through what it's doing.

sschwartzman commented 3 years ago

@clrosier due to changes in the dashboards API, we've decided to simply the dashboard deployment by removing it from the Unix Monitor itself, and let the user use the NR1 Quickstarts app instead. So if you want to push your own custom dashboard from the startup script, you can do that as it's own thing using our dashboards API.

Here's the release with the dashboard deployment removed: https://github.com/newrelic/newrelic-unix-monitor/releases/tag/0.2.3