You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/opentelemetry-node/lib/detectors.js
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,14 @@ function resolveDetectors(detectors) {
97
97
return[];
98
98
}
99
99
100
+
// NOTE: Kibana is doing a breakdown by service instance when plotting the metrics dashboard. So it needs the instance ID.
101
+
// Dashboard was added in https://github.com/elastic/kibana/pull/215735
102
+
if(!detectorKeys.includes('serviceinstance')){
103
+
log.info(
104
+
`The "serviceinstance" resource detector has not been selected. This will result in Kibana's APM Service Metrics dashboard not working. See https://elastic.github.io/opentelemetry/edot-sdks/nodejs/configuration.html#otel_node_resource_detectors-details`
`Metrics temporality preference set to "${temporalityPreference}". Use "delta" temporality if you want to store Histogram metrics in Elasticsearch. See ${docsUrl}`
150
+
);
144
151
}
145
152
146
153
// The implementation in SDK does treats the undefined and 'none' value
0 commit comments