-
Notifications
You must be signed in to change notification settings - Fork 97
Adds metric name prefix override for [exporter-stackdriver] #151
Adds metric name prefix override for [exporter-stackdriver] #151
Conversation
Please fix the build. |
Error log: src/stackdriver-monitoring.ts:72:52 - error TS2339: Property 'DELAY' does not exist on type 'typeof StackdriverStatsExporter'.
setTimeout(resolve, StackdriverStatsExporter.DELAY); Looks like this PR depends on #150. |
9dc866e
to
d1eaedb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
packages/opencensus-exporter-stackdriver/src/stackdriver-monitoring.ts
Outdated
Show resolved
Hide resolved
@@ -42,6 +42,8 @@ export interface StackdriverExporterOptions extends ExporterConfig { | |||
* projectId project id defined to stackdriver | |||
*/ | |||
projectId: string; | |||
/** Prefix for metric */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a note on when the user might want to set this, and when they don't need to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
packages/opencensus-exporter-stackdriver/src/stackdriver-monitoring.ts
Outdated
Show resolved
Hide resolved
485763e
to
1307240
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once comments are addressed
/** | ||
* Gets metric type | ||
* @param name The view name | ||
* @param prefix Optional metric prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
packages/opencensus-exporter-stackdriver/test/test-stackdriver-monitoring.ts
Outdated
Show resolved
Hide resolved
packages/opencensus-exporter-stackdriver/test/test-stackdriver-monitoring.ts
Outdated
Show resolved
Hide resolved
be5cfb5
to
00f17cf
Compare
00f17cf
to
c83203a
Compare
Fixes #125 |
All user-defined metric types have the DNS name custom.googleapis.com or
external.googleapis.com. Metric types should use a natural hierarchical grouping.
For example: ""custom.googleapis.com/invoice/paid/amount""
""external.googleapis.com/prometheus/up""
""appengine.googleapis.com/http/server/response_latencies"""