-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE]Add environment variables for stats config (#1627) #1628
Conversation
doc/admin.md
Outdated
@@ -162,11 +162,12 @@ support nulls or multi-attribute requests if they are encountered. | |||
#### `stats` | |||
|
|||
It configures the periodic collection of statistics. Use `interval` in milliseconds to set the time between stats | |||
writings. | |||
writings. The `persistence` flag stores stats in the mongo backend. |
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.
It would be great to provide more detail on this. For instance:
- In which collection at mongo backend are the stas persisted?
- How are the documents in that collection? Which fields they have? An example would be also great
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
@rg2011 Is this PR including all feature? if feature is already implemented any link to paths involved or doc related is welcome! |
The So the feature was already present, this PR only exposes its configuration through environment variables. I also added some documentation for the
However, it seems that setting iotagent-node-lib/lib/fiware-iotagent-lib.js Lines 48 to 64 in 01b3f5f
So if an user wants stats persisted to mongo , in addition to defining
I will add this to the documentation. |
|
OMG! I'm pretty sure nobody has used this feature before, so I'm not sure if is fully implemented. Let's see. |
deprecated by #1629 |
Adds environment variables for stats configuration (fixes #1627).
NOTE: Adds documentation for
config.stats.persistence
, that seemed to be undocumented.NOTE: Changed to DO NOT MERGE because of #1627 (comment)