Skip to main content

image0 image1 image2

NeReS is a cli tool to manage NewRelic Synthetics monitors with a Synthetics Lite account (Pro should work too). The tool emulates the actions of a user in the browser and doesn’t use the Synthetics API since that’s only available to the Pro accounts.

With this tool you can:

  • List all your monitors, including their success rate, locations, notifications etc.

  • Create, update and delete monitors

  • List available locations for monitor installation and

  • everything else available though the Web console.

image3

Installation

$ pip install neres

Configuration

  1. You will need a newrelic account

  2. Start by using the login command

  3. Read the docs or run –help

Use

Login to NewRelic

Login to NewRelic with the login command:

$ neres login

If you have multiple NewRelic accounts you can have different environments:

$ neres --environment work login

List Accounts

You can list all the accounts connected to the email you used to connect using:

$ neres list-accounts

By default neres will act on the first account listed. This command will help you select a different account by using the ID of the account in combination with the –account option or by setting NERES_ACCOUNT in your environment.

List Locations

Lists available monitor locations:

$ neres list-locations

List Monitors

Lists available monitors:

$ neres list-monitors

You can only list IDs of the monitors:

$ neres list-monitors --ids-only

Or get the raw JSON output from NewRelic:

$ neres list-monitors --raw

Add Monitor

Adds a Synthetics monitor:

$ neres add-monitor monitorName http://example.com

Use –help to get a full list of supported options for the command. All options are optional.

Get Monitor

Get details on a monitor

$ neres get-monitor de310b69-3195-435e-b1ef-3a0af67499de

Update Monitor

Update an existing monitor

$ neres update-monitor de310b69-3195-435e-b1ef-3a0af67499de --name "Foobar"

Use –help to get a full list of supported options for the command. All options are optional.

Open Monitor

Open monitor in the browser

$ neres open de310b69-3195-435e-b1ef-3a0af67499de

Get state of all monitors of account

Export the state of all monitors of account in YAML format with

$ neres get-state

Save the output into a file, edit and use in combination with the update-from-statefile command to update multiple monitors at once.

$ neres get-state > state.yaml

Update monitors from statefile

Update monitors from statefile with

$ neres update-from-statefile state.yaml

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.4.0 (2017-06-02)

  • Use NewRelic’s “stoplight” to determine monitor health.

0.3.0 (2017-05-25)

  • Multiple monitors management with get-state and update-from-statefile

  • Bug fixes

0.2.0 (2017-05-11)

  • Python 3 fixes

  • Bugfixes

  • Tests!

0.1.1 (2017-04-27)

  • First release on PyPI.

0.1.0 (2017-04-12)

  • Cookiecutter import

Metadata

Release files for neres 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neres 0.4.7
File Size Uploaded
neres-0.4.7.tar.gz 23.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neres 0.4.7
File Interpreter ABI Platform
neres-0.4.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 36.3 kB

Release files / neres-0.4.7.tar.gz

Download URL neres-0.4.7.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
72bd2d7083083ac569bdc0abee597fb7181523fd7db4bae50ee5e8ac1e6ddce1
BLAKE2b-256 checksum
How to use checksums
a7a10f14d8b4860d5142b0979a44e4098f5537939eb9aaa329f220f59278abd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release files / neres-0.4.7-py2.py3-none-any.whl

Download URL neres-0.4.7-py2.py3-none-any.whl
Size 13.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ae40fa42329e5ab1ec033ce4019f6bc936b338f733ae1fd862ca06c4e29d336c
BLAKE2b-256 checksum
How to use checksums
3ae130a9ef80a7c04ac97f523543e46c6e4b05f02d7eef2724df95a881dd341a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.4.7 This release

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page