Skip to content

support for datadog metrics#451

Closed
TechGeorgii wants to merge 2 commits into
subsquid:open-betafrom
TechGeorgii:datadog-metrics
Closed

support for datadog metrics#451
TechGeorgii wants to merge 2 commits into
subsquid:open-betafrom
TechGeorgii:datadog-metrics

Conversation

@TechGeorgii
Copy link
Copy Markdown
Contributor

Support for pushing metrics to DataDog is added

@iankressin
Copy link
Copy Markdown
Contributor

PRs should target the master branch. Also, please take a look at the comments that were left in the Linear issue re this PR


private submit(series: DatadogSeries[]): void {
let body = JSON.stringify({ series })
let req = https.request({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use @subsquid/http-client

this.submit(series)
}
}
catch { }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why skip it silently?


constructor(config: DatadogConfig) {
this.apiKey = config.apiKey
this.site = config.site || 'datadoghq.com'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

url/uri/host

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hostname is probably better, since it's the expected entry in the JSON payload

@TechGeorgii TechGeorgii closed this by deleting the head repository Mar 18, 2026
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.

3 participants