Skip to content
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

Some examples of monitoring please. #152

Open
sanguohot opened this issue Jun 9, 2018 · 4 comments
Open

Some examples of monitoring please. #152

sanguohot opened this issue Jun 9, 2018 · 4 comments
Assignees
Labels

Comments

@sanguohot
Copy link

Could not found in any docs.
Any help from you will be greatly appreciated.

@thiagobustamante
Copy link
Collaborator

thiagobustamante commented Jun 11, 2018

Hi @sanguohot ,

It is possible to use any custom middleware to handle how your analytics data must be processed.

Tree gateway already includes a middleware that collect the log entries and store them into the redis database.

I recommend you to use this middleware and then configure logstash to collect from redis and send to your log server (I use elasticsearch).

To enable the redis middleware for the logs, just configure your gateway:

gateway:
    analytics:
        enabled: true
        logger:
            name: redis

You can found the docs here.

@sanguohot
Copy link
Author

Hi @thiagobustamante
You are so kind.
3Q very much.
Still one more question please, is this code production ready?

@thiagobustamante
Copy link
Collaborator

Hi @sanguohot,
I've been using it in production for months. Just remember to Set NODE_ENV to production and use some process manager like PM2.

[]s

@sanguohot
Copy link
Author

sanguohot commented Jun 14, 2018

Hi @thiagobustamante
Very good news for me.
I will try to use it in a blockchain project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants