-
Notifications
You must be signed in to change notification settings - Fork 97
Conversation
examples/stats/exporter/README.md
Outdated
|
||
You can observe the Prometheus Metrics Exporter that is created by the sample: | ||
``` | ||
http://localhost:9465/metrics |
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.
s/9465/9464
, we have mentioned 9464 port in example.
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.
Fixed: 35b7f1e
* metrics that must be collected, or some risk being lost if they are recorded | ||
* after the last export. | ||
*/ | ||
setTimeout(function() { |
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.
I think we should remove this block. This is not applicable for Prometheus exporter.
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.
Fixed: 643941c
examples/stats/exporter/README.md
Outdated
|
||
### Run it | ||
|
||
``` |
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.
Do you think we should install cmd here?
npm install @opencensus/core
npm install @opencensus/exporter-stackdriver
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.
Fixed by adding a general package.json
and instructions: 713b4d2
Added Dockerfiles and instructions too.
@DazWilkin thanks for the PR. Somehow build is failing since last 2 days on node6. Update: Build failure is not related to this PR. Feel free to merge. |
examples/stats/exporter/package.json
Outdated
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"jshint": "^2.9.7" |
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.
Can we use gts
here? This is what we use everywhere..
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.
Fixed: 42f43e1
Stackdriver example
Two changes (one needs to be fixed):
-- tagKeys used when creating the view ought match those used when recording stats. The code now creates tagKeys of
["method", "status"];
-- views should be created and then registered but this appears to not be required with this implementation. The code now creates the views without assigning these to unused constants. If the library is amended to require the
createView(X)
followed byregisteredView(X)
, then these constants may be reverted. Or the resultcreateView
may be applied directly tostats.registerView(stats.createView(...)
.Prometheus example
Added: mirrors the Stackdriver example. Works but there's likely room for improvement as it is not dependent on the 60-second timeout etc.
README
Added a REAMDE for the examples because there should be one ;-)
It remains unclear to me how to run these examples after cloning. I had to:
package.json
to spec the@opencensus
dependencies but assume there's a better way to do this../test.txt
to get this to work.Please add an explanation to the README on how to run the examples directly from a clone.