Skip to content

Conversation

@ryanbrandenburg
Copy link
Contributor

These two log-points account for ~94% of total AppInsights logs, which can add up to significant infrastructure spend. By moving them to the debug level we can avoid those costs for the modest trade-off of one of the status sub-functions (the query for which could probably be re-worked to account for their absence by someone more knowledgeable).

Copy link
Collaborator

@qtomlinson qtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The three definition related functionalities of the API service are: retrieving (‘computed definition available’), computing (‘recomputed definition available’), and harvesting (‘definition not available’) definitions. Would it be possible to update the query logic in statusService to preserve the metrics?

I’ve noticed there are currently some duplicate logging entries in Application Insights. Reducing these duplicates would not only improve clarity but also help lower our monitoring costs.

_getStatusLookup() {
return {
requestcount: this._requestCount,
definitionavailability: this._definitionAvailability,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used in our ui, see https://dev.clearlydefined.io/status

this.logger.debug('definition harvest in progress', { coordinates: coordinates.toString() })
} else {
// Log line used for /status page insights
this.logger.info('computed definition available', { coordinates: coordinates.toString() })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per the comment online 105, 'computed definition available' is used as a metric for our status page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants