Create Opsgenie Incident
Overview
This self-service guide facilitates creating incidents in Opsgenie from Port using Port's self service actions. With this, you can manage incidents in opsgenie without leaving Port.
Prerequisites
- Port's GitHub app needs to be installed.
- In your GitHub repository, go to Settings > Secrets and add the following secrets:
OPSGENIE_API_KEY
- OPSGENIE API KEY generated by the user.PORT_CLIENT_ID
- Your portclient id
How to get the credentials.PORT_CLIENT_SECRET
- Your portclient secret
How to get the credentials.
- Optional - Install Port's Opsgenie integration learn more
Opsgenie Integration
This step is not required for this example, but it will create all the blueprint boilerplate for you, and also ingest and update the catalog in real time with your opsgenie incidents.
- In Case you decided not to install the Opsgenie integration, you will need to create a blueprint for the Opsgenie incident in Port.
Opsgenie Incident Blueprint
GitHub Workflow
Create the file .github/workflows/create-opsgenie-incident.yml
in the .github/workflows
folder of your repository.
Dedicated Workflows Repository
We recommend creating a dedicated repository for the workflows that are used by Port actions.
GitHub Workflow
Port Configuration
Create a new self service action using the following JSON configuration.
Create an Opsgenie Incident (Click to expand)
Let's test it!
- Head to the Self Service hub
- Click on the
Create Incident
action for opsgenie - Enter the required details in the input fields
- Click on
Execute
- Done! wait for the ticket's status and assignee to be changed in Jira