You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "Puvendhan (via GitHub)" <gi...@apache.org> on 2024/07/19 08:46:50 UTC

[I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Puvendhan opened a new issue, #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   Hi Everyone, The PagerDuty connection is pulling incident data but this is not being reflected in metrics.
   Devlake is running on v1.0.0-beta11.
   The PagerDuty connection is pulling incident data but this is not being reflected in metrics. Where configured Jira data is acting as an incident count but from PagerDuty it is possible to see incidents in DevLake but these are not impacting the counts.
   
   ### What do you expect to happen
   
   Hi Everyone, The PagerDuty connection is pulling incident data but this is not being reflected in metrics.
   Devlake is running on v1.0.0-beta11.
   The PagerDuty connection is pulling incident data but this is not being reflected in metrics. Where configured Jira data is acting as an incident count but from PagerDuty it is possible to see incidents in DevLake but these are not impacting the counts.
   
   ### How to reproduce
   
   Hi Everyone, I deployed the devlake and added pagerduty data connection.
   Added the dashboards in grafana. 
   
   ### Anything else
   
   Hi Everyone, The PagerDuty connection is pulling incident data but this is not being reflected in metrics.
   Devlake is running on v1.0.0-beta11.
   The PagerDuty connection is pulling incident data but this is not being reflected in metrics. Where configured Jira data is acting as an incident count but from PagerDuty it is possible to see incidents in DevLake but these are not impacting the counts.
   
   ### Version
   
   v1.0.0-beta11
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2244456716

   @Puvendhan  Please describe your problem in detail, step by step.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2255454442

   @Puvendhan   We have a new release today. https://github.com/apache/incubator-devlake/releases


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "Puvendhan (via GitHub)" <gi...@apache.org>.
Puvendhan commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2283460982

   Scope config for pagerduty is missing in the devkake.
   
   ![devlake-pagerduty](https://github.com/user-attachments/assets/36c3f1d1-631d-49ab-818b-9a8dcbad5428)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "Puvendhan (via GitHub)" <gi...@apache.org>.
Puvendhan commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2268940772

   Hi , I rolled out the version [v1.0.1-beta4](https://github.com/apache/incubator-devlake/releases/tag/v1.0.1-beta4) , however the incidents are visible only at the bottom of the dashboard, but still the overall incident count is showing 0. Could please take a look at it?
   
   
   ![image](https://github.com/user-attachments/assets/22d5018d-e0b5-4562-951c-47bc595599d8)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 closed issue #7766: [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics.
URL: https://github.com/apache/incubator-devlake/issues/7766


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2238738303

   <!-- Answer -->
   The issue you're experiencing with PagerDuty incident data not being reflected in the metrics is likely due to how the incidents are classified and processed. Here are a few steps to ensure proper configuration:
   
   1. **Classification of Incidents**: Ensure that the incidents are correctly classified and stored in the `issues` table with the type set to 'INCIDENT'. The incidents are extracted from the `issues` table in MySQL with the condition `type = 'INCIDENT'`.
   
   2. **PagerDuty Plugin Invocation**: As of v0.15.x, the `PagerDuty` plugin can only be invoked through the DevLake API, and its support in Config-UI is still a work in progress. Make sure you have correctly set up the PagerDuty data connection and created a blueprint to collect data from PagerDuty using the DevLake API.
   
   3. **Data Processing**: If the data is visible in DevLake but not in the metrics, it is likely that the data is not being correctly processed or classified for the metrics computation. Verify the data flow and ensure that the incidents are being processed correctly.
   
   For more detailed debugging, you can use the `TestIncidentDataFlow` function in the `incident_test.go` file, which demonstrates the use of the `e2ehelper.DataFlowTester` to trace the data flow from PagerDuty to the metrics computation. This tool allows you to import raw data into tables, verify the extraction and transformation of data, and compare the results with expected CSV snapshots <sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.15/Plugins/pagerduty.md)</sup><sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.16/Plugins/pagerduty.md)</sup><sup>[[3]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/pagerduty/e2e/incident_test.go)</sup>.
   
   If you need further assistance, please provide more details about your setup and any logs that might help diagnose the issue.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "Puvendhan (via GitHub)" <gi...@apache.org>.
Puvendhan commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2252256022

   Is this been rolled out in the helm-charts, if so which version ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "Puvendhan (via GitHub)" <gi...@apache.org>.
Puvendhan commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2255428949

   Hi Team, Any update on this?
   
   Is this been rolled out in the helm-charts, if so which version ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #7766:
URL: https://github.com/apache/incubator-devlake/issues/7766#issuecomment-2270356253

   @Puvendhan  Incidents which are related to deployments will be shown here.
   
   ```
   _failure_caused_by_deployments as (
   -- calculate the number of incidents caused by each deployment
   	SELECT
   		d.deployment_id,
   		d.deployment_finished_date,
   		count(distinct case when i.type = 'INCIDENT' then d.deployment_id else null end) as has_incident
   	FROM
   		_deployments d
   		left join project_incident_deployment_relationships pim on d.deployment_id = pim.deployment_id
   		left join issues i on pim.id = i.id
   	GROUP BY 1,2
   )
   ```
   Please make sure there are relations in table `project_incident_deployment_relationships`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org