zoukankan      html  css  js  c++  java
  • 【转】sentry 实时事件日志聚合平台

    1.install postgreSQL(v9.6)
    2.pip install sentry(v8.13.0)
    3.sentry init #初始化配置文件

    4.配置好postgreSQL

    需要连接redis

    5.sentry upgrade #创建超级用户 输错后可以用 sentry createuser
    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
    报错:
    [root@iZ115fd3dixZ 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
    解决方法:
    [root@iZ115fd3dixZ opt]# export C_FORCE_ROOT="true" #写进linux环境变量里面
    [root@iZ115fd3dixZ 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


     原文:https://blog.csdn.net/u013636377/article/details/59110827
     

    Fundebug

    如果你觉得自己去搭建Sentry系统过于复杂,可以使用国内类似的SaaS产品Fundebug,Fundebug有免费的基础版本。
    Fundebug提供前端JavaScript监控,支持所有主流前端框架,微信小程序监控,微信小游戏监控,后端Node.js监控。
     
  • 相关阅读:
    response.redirect三种新页面转向方法
    respones.redirect 打开新的页面的两个方法
    临时表
    ODBC方式操作oracle数据库
    OLEDB方式操作oracle数据库
    oracle所有的乱码解决方案
    引用HM.Util.Ioc 的时候报错
    js webstrom中svn的配置及使用
    js vs2013中允许js访问json文件的解决方案
    Oracle 字符集常见字符集及解决方案
  • 原文地址:https://www.cnblogs.com/curationFE/p/sentry_error_monitoring_platform.html
Copyright © 2011-2022 走看看