You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR changes the instructions for running Prometheus and Grafana in Docker to use the `--add-host` parameter instead of the `--link` parameter which is deprecated and which has been reported by @shaunsmith to sometimes not work.
The supplied command has been verified by @shaunsmith on Mac and Linux and by me on Linux.
Copy file name to clipboardExpand all lines: examples/grafana/README.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,14 @@ Note the last line. This specifies the host and port of the Fn server from which
59
59
If you are running a cluster of Fn servers then you can specify them all here.
60
60
61
61
Now start Prometheus, specifying this config file.
62
-
63
-
In the following command, `${GOPATH}/src/github.com/fnproject/fn/examples/grafana/prometheus.yml` is the path of the above Prometheus configuration file. You may need to modify this to use the actual path on your local machine.
Note: The parameter `--link fnserver` means that Prometheus can use `fnserver` to refer to the running Fn server. This requires the Fn server to be running in docker.
68
+
Note: This command uses the parameter `--add-host` to define a hostname `fnserver` in the docker container
69
+
and configure it to use the IP address on which the Fn server is listening.
70
70
71
71
Open a browser on Prometheus's graph tool at [http://localhost:9090/graph](http://localhost:9090/graph). If you wish you can use this to view metrics and display metrics from the Fn server: see the [Prometheus](https://prometheus.io/) documentation for instructions. Alternatively continue with the next step to view a ready-made set of graphs in Grafana.
72
72
@@ -79,7 +79,8 @@ Open a terminal window and navigate to the directory containing this example.
0 commit comments