小编Sho*_*nin的帖子

如何在Grafana表中每天汇总指标?

我正在使用Grafana表绘制数据图表,我希望将表中的一天中的所有数据点汇总到一行.如下所示,我当前的设置是每分钟/每分钟显示值.

格拉法纳表

问题:如何制作显示按天汇总的值的Grafana表?

|        Day        | ReCaptcha  | T & C |
|-------------------|------------|-------|
| February 21, 2017 |   9,001    | 8,999 |
| February 20, 2017 |      42    |    17 |
| February 19, 2017 |     ...    |   ... |
Run Code Online (Sandbox Code Playgroud)

grafana

9
推荐指数
1
解决办法
2万
查看次数

Django Channels ASGI - AppRegistryNotReady:应用程序尚未加载

python manage.py runserver使用通道 asgi 开发服务器运行我的项目可以完美地启动它,但是当使用 Daphne ( daphne project.routing:application)运行项目时,我收到错误AppRegistryNotReady: Apps aren't loaded yet。

settings.py

INSTALLED_APPS = [
    'channels',
    'whitenoise.runserver_nostatic',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.sites',
    # ...
    # ... installed apps and custom apps
]

WSGI_APPLICATION = 'project.wsgi.application'

ASGI_APPLICATION = 'project.routing.application'

CHANNEL_LAYERS = {
    'default': {
        'BACKEND': 'channels_redis.core.RedisChannelLayer',
        'CONFIG': {
            "hosts": [REDIS_URL],
        }
    },
}
Run Code Online (Sandbox Code Playgroud)

routing.py

import os

from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter

from django.core.asgi import get_asgi_application
from django.conf.urls import url …
Run Code Online (Sandbox Code Playgroud)

django django-channels daphne asgi uvicorn

0
推荐指数
1
解决办法
1148
查看次数

标签 统计

asgi ×1

daphne ×1

django ×1

django-channels ×1

grafana ×1

uvicorn ×1