graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06106
Re: [Question #291481]: error 404 when accessing /metrics/
Question #291481 on Graphite changed:
https://answers.launchpad.net/graphite/+question/291481
Ran Levkovich gave more information on the question:
thanks Denis (Hope you enjoyed your holidays !)
I've deployed the above graphite.wsgi and restarted http:
=======================================================================================
[root@sendbox1 ~]# cat /opt/graphite/conf/graphite.wsgi
import os
import sys
sys.path.append('/opt/graphite/webapp')
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphite.settings') #
noqa
from django.conf import settings
from django.core.wsgi import get_wsgi_application
from graphite.logger import log
application = get_wsgi_application()
# Initializing the search index can be very expensive. The import below
# ensures the index is preloaded before any requests are handed to the
# process.
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
import graphite.metrics.search # noqa[root@sendbox1 ~]#
=====================================================================================
but seem to be getting the same error )-:
==> access.log <==
192.168.174.102 - - [08/May/2016:16:37:31 +0300] "GET /metrics/find/?_dc=1462714651293&query=*&format=treejson&contexts=1&path=&node=GraphiteTree HTTP/1.1" 400 34
Anything else I could try?
Thanks
Ran
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.