Skip to content

Small proxy service to allow running graphite-web locally with a GrafanaCloud hostedMetrics service as a backend

License

Notifications You must be signed in to change notification settings

raintank/graphite-web-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graphite-web-proxy

Small proxy service to allow running graphite-web locally with a GrafanaCloud hostedMetrics service as a backend

Usage

$ graphite-web-proxy -h
Usage of graphite-web-proxy:
  -addr string
    	host:port to listen on. (default "0.0.0.0:8181")
  -alsologtostderr
    	log to standard error as well as files
  -api-key string
    	grafana.com api key (default "xxxxxx")
  -log_backtrace_at value
    	when logging hits line file:N, emit a stack trace
  -log_dir string
    	If non-empty, write log files in this directory
  -logtostderr
    	log to standard error instead of files
  -stderrthreshold value
    	logs at or above this threshold go to stderr
  -tsdb-url string
    	gateway address of hosted-metrics service. (default "https://tsdb-x-foo.hosted-metrics.grafana.net")
  -v value
    	log level for V logs
  -vmodule value
    	comma-separated list of pattern=N settings for file-filtered logging

Getting started

  • download the proxy.
go get github.com/raintank/graphite-web-proxy
  • run the proxy
graphite-web-proxy -logtostderr -tsdb-url https://<your HostedMetrics url> -api-key <grafana.com API KEY>
  • update your graphite-web installation to use the proxy as a CLUSTER_SERVERS (this is defined in graphite local_settings.py file) If you dont have graphite-web running, you can use docker
docker run -p 8080:80 -e GRAPHITE_CLUSTER_SERVERS=<localIP>:8181 raintank/graphite-mt

About

Small proxy service to allow running graphite-web locally with a GrafanaCloud hostedMetrics service as a backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages