Looking for an easy way to work with New Relic via the command line? Look no further friends, the NewRelicPS PowerShell module is now publicly available in the PSGallery!
What can you do with this?
- Backup, Restore, or Copy a dashboard in a single line (yes, it works with the new multi-page dashboards too)
Copy-NRDashboard -APIKey $MyPersonalAPIKey -DashboardID $SourceDashboardGuid -DestinationId $DestinationAccountId -UpdateWidgetAccountIds
- Get information on all conditions in an account
Get-NRQLCondition -APIKey $APIKey -AccountId 12345678
- Create a Synthetic Monitor
New-NRSyntheticMonitor -APIKey $APIKey -Name 'MySyntheticMonitor' -Locations
'AWS_US_EAST_1,AWS_US_EAST_2' -URI 'https://some.net'
-
Manage your entire alerting configuration from a YAML definition! Check out the docs.
-
So much more. Check out the list of currently available CMDLets:
Add-NRNotificationChannelToAlertPolicy
Copy-NRDashboard
Get-NRAlertPolicy
Get-NRDashboard
Get-NRDashboardList
Get-NRInsightsQuery
Get-NRNotificationChannel
Get-NRQLCondition
Get-NRSyntheticLocationCondition
Get-NRSyntheticLocationList
Get-NRSyntheticMonitor
Get-NRSyntheticMonitorScript
Get-NRSyntheticSecureCredential
New-NRAlertPolicy
New-NRDashboard
New-NRNotificationChannel
New-NRQLCondition
New-NRSyntheticLocationCondition
New-NRSyntheticMonitor
New-NRSyntheticSecureCredential
Remove-NRAlertPolicy
Remove-NRCondition
Remove-NRDashboard
Remove-NRNotificationChannel
Remove-NRNotificationChannelFromAlertPolicy
Remove-NRSyntheticLocationCondition
Remove-NRSyntheticMonitor
Remove-NRSyntheticSecureCredential
Restore-NRDashboard
Update-NRAlertPolicy
Update-NRConfiguration
Update-NRDashboard
Update-NRQLCondition
Update-NRSyntheticLocationCondition
Update-NRSyntheticMonitor
Update-NRSyntheticMonitorScript
Update-NRSyntheticSecureCredential