Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is an overview of what you need to do to onboard your CI/CD systems and tools and maintain a single pane of solution on Opsera.

...

  1. Solution - 1

    1. Customers who already have tools running in their own Instance and want to integrate with Opsera

  2. Solution - 2

    1. Customers who don’t have tools in place and want to integrate directly with Opsera

Solution -1: Customers who already have tools:

Jenkins

...

Install Logstash plugin and add point to https://customerdomain-logstash.opsera.io

  1. Login to Jenkins > Manage Jenkins >  Manage Plugins > search for logstash plugin and install. 

    1. Screenshot :

    2. Image Removed

  2. Login to Jenkins > Manage Jenkins > Configure > Under Logstash 

    1. Index : Elasticsearch 

    2. URI : https://logstash-url.opsera.io

    3. (Leave Username and password blank) 

...

  1. Follow the below process to configure the Webhook.

Log into Opsera Portal and select Tool Registry from left navigation.

Image Added

Click + New Tool Button to add a tool.

Image Added

Once you click Add Tool, a popup will be displayed. Type Jenkins Tool Name in the Tool Name input and Type Jenkins as Tool Identifier in the dropdown.

Image Added

Once you click Create tool from the Modal Popup, Choose your Tool Name from the Main Tool Registry screen. Then, Click the Connections TAB to enter all the below fields.

Image Added

Hit Save Button once you are done. With these steps completed, now Log into Jenkins Tool to complete below steps.

Click the Create Tool Button once you have completed previous inputs in the popup.

Image Added

Log into Jenkins

Image Added

Click Manage Jenkins

Image Added

In the Manage Jenkins page, Choose Notification

Image Added

Once you select the Job and click install, Jenkins Installation will start as shown below.

Image Added

Once Installation is complete, Jenkins will restart.

Image Added

Once the Restart is completed, Click Configure from left Navigation.

Image Added

Goto Job Notifications TAB and enter the Webhook URL

Image Added

Now you have completed all the steps required. Once you run any job via Jenkins on your end, Analytics will be available at Opsera Portal.

Sonarqube

  1. From the sonarqube dashboard, 

    1. Create a user and token with and share it with via opsera portal. 

      1. User > My Account > Security 

      2. Screenshot : Fig 2

    2. (we (Opsera team) are manually setting logstash environment variable)

  2. Customer to add Webhook to send data to https://customerdomain-logstash.opsera.io

    1. During onboarding process, email will be sent to customer with Logstash URL

    2. Login to sonarqube dashboard

    3. Administration > configuration > webhooks > create 

      1. Screenshot : sonar-add-webhook.png

    4. Enter logstash URL and create

  3. To Unsubscribe, from sonarqube, 

    1. Administration > configuration > webhooks >Delete.

      1. Screenshot : sonar-add-webhook.png

...

  1. Login into gitlab

  2. Select project > Settings(left panel) >  Webhook > 

  3. Add webhook to send all events to logstash

    1. https://customerdomain-logstash.opsera.io/webhook/gitlab

Screenshot : gitlab-add-webhook.png

...

Codeship

  1. Add webhook and point to 

    1. Login to codeship dashboard > projects > “select your project” >  Project settings (top-right) > Notifications >  

    2. https://customerdomain-logstash.opsera.io/webhook/codeship

    3. Create user with read privileges and share  username and password with opsera via email

    4. Screenshot : Screenshot : codeship-add-webhook.png

Solution -2: Customers who don’t have tools installed

Tool Jenkins

  1. Goto Platform page (https://opsera.io)

  2. Create an application name

  3. Select the tools you want to integrate and hit submit.

  4. Once you submit, Email will be sent with Tool/URL information. This will take approximately 15 mins.

  5. Logstash plugin and Filebeat is automatically configured by java-microservice.

  6. ELK stack and DB details will be sent via email.

...