---
title: "Share external events to monitor"
canonical: "https://docs.perspectium.com/space/gold/1263536/Share%20external%20events%20to%20monitor"
format: markdown
---
Custom external events  can be posted directly to Observer for monitoring. The following is an example using python and the AMQP python client to create a method that will post a flag for external events to Observer: #!/usr/bin/env python

import pika
credentials = pika.PlainCredentials('username','password')
connection = pika.BlockingConnection(pika.ConnectionParameters('<perspectium_mesh_url>',5672,'<customer_vhost>',credentials))
channel = connection.channel()
channel.queue_declare(queue="")
channel.basic_publish(exchange='',routing_key='psp.in.servicenow',body='{ topic:"monitor", type:"statsx", key:"demo005", name:"transaction_sec", value: "1423"}')
connection.close() Where  <perspectium_mesh_url>  is the Perspectium Mesh URL and  <customer_vhost>  is your vhost as provided by Perspectium. Similar topics Contact Perspectium Support US:  1 888 620 8880 UK:  44 208 068 5953 support@perspectium.com