sentry 实时事件日志聚合平台
Posted curationfe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sentry 实时事件日志聚合平台相关的知识,希望对你有一定的参考价值。
1.install postgreSQL(v9.6)
2.pip install sentry(v8.13.0)
3.sentry init #初始化配置文件
6.sentry start #主程序
sentry run worker #worker 任务执行框架celery
sentry run cron #Run periodic task dispatcher.
sentry run --help
sentry python API docs:
https://docs.sentry.io/clients/python/
Error:
http://www.jianshu.com/p/9e422d9f1ce2
sentry run worker #worker 任务执行框架celery
报错:
[[email protected] opt]# sentry run worker
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!
If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).
User information: uid=0 euid=0 gid=0 egid=0
解决方法:
[[email protected] opt]# export C_FORCE_ROOT="true" #写进linux环境变量里面
[[email protected] opt]# sentry run worker
[code]解决办法:
from celery import Celery, platforms
2.pip install sentry(v8.13.0)
3.sentry init #初始化配置文件
4.配置好postgreSQL
需要连接redis
5.sentry upgrade #创建超级用户 输错后可以用 sentry createuser6.sentry start #主程序
sentry run worker #worker 任务执行框架celery
sentry run cron #Run periodic task dispatcher.
sentry run --help
sentry python API docs:
https://docs.sentry.io/clients/python/
Error:
http://www.jianshu.com/p/9e422d9f1ce2
sentry run worker #worker 任务执行框架celery
报错:
[[email protected] opt]# sentry run worker
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!
If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).
User information: uid=0 euid=0 gid=0 egid=0
解决方法:
[[email protected] opt]# export C_FORCE_ROOT="true" #写进linux环境变量里面
[[email protected] opt]# sentry run worker
[code]解决办法:
from celery import Celery, platforms
platforms.C_FORCE_ROOT = True #加上这一行
*.*.*.*:9001 user/123
supervisor:
[program:sentry_worker]
command=sentry run worker
autorestart=true
autostart=true
startsecs=3
priority=50
redirect_stderr = true
stdout_logfile=/opt/sentry_worker.log
[program:sentry_cron]
command=sentry run cron
autorestart=true
autostart=true
startsecs=3
priority=50
[program:sentry_start]
command=sentry start
autorestart=true
autostart=true
startsecs=3
priority=100
redirect_stderr = true
stdout_logfile=/opt/sentry_start.log
以上是关于sentry 实时事件日志聚合平台的主要内容,如果未能解决你的问题,请参考以下文章