department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 205 forks source link

Add monitoring to NoK/EC requests from VA Profile v3 service #76239

Closed radavis closed 7 months ago

radavis commented 9 months ago

Description

Follow-up from #67088

User story

As a Cartographer, I want to know if a request for NOK/EC data from VA Profile fails, so that I can understand why it failed.

As a Cartographer, I want to know how many requests were made for NOK/EC data, so that I can know if users are taking advantage of this feature.

Notes

Possible tasks:

Tasks

Acceptance Criteria

wesrowe commented 8 months ago

Richard, Lynne and I met with Travis C today, and Travis showed us the existing Profile dashboard in datadog. I modified the ticket above to capture our learnings.

radavis commented 8 months ago

@wesrowe: "Datadog should not log a 404 for the application if the connection from front-end to vets-api is successful" is outside the scope of monitoring. This will require a separate ticket for changes to vets-api and vets-website.

radavis commented 8 months ago

Added graphs of response status codes for /v0/profile/contacts in staging to the Authenticated Experience: Profile dashboard

Screenshot 2024-03-15 085100

radavis commented 8 months ago

To add StatsD metrics to a backend client, add the Monitoring concern to the client, then wrap HTTP calls in a with_monitoring block. Client should have STATSD_KEY_PREFIX declared on the client or in the inheritance chain.

radavis commented 7 months ago

Datadog monitor: https://vagov.ddog-gov.com/monitors/210521?view=spans

wesrowe commented 7 months ago

we had a review meeting with Carlos yesterday – looked good, can close.