-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docs for grafana setup * change readme to reflect auto deployment * separate commands for easier copying
- Loading branch information
Showing
6 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _grafana_and_prometheus: | ||
|
||
Grafana and Prometheus | ||
====================== | ||
|
||
The `monitoring <https://github.com/earthlab/hub-ops/tree/master/monitoring>`_ hub implements a graphical display of hub resource usage at `<https://grafana.hub.earthdatascience.org/>`_. This uses the open source projects `Grafana <https://grafana.com/>`_ and `Prometheus <https://prometheus.io/>`_. Prometheus collects, stores, and provides time series data about the hub operations. Grafana plots the data. | ||
|
||
We include helm charts for Grafana and Prometheus, and then there are additional settings (resource, etc) in values.yml. There are additional settings available through the Grafana web interface. | ||
|
||
Editing the Grafana hub list | ||
---------------------------- | ||
|
||
When you add or remove hubs, the Grafana pages does not automatically update with the new hub list (there is probably a way to do this, but that's a project for another day). To modify the list of hubs available, you modify the settings in the web interface. | ||
|
||
To log in to Grafana from the `monitoring page <https://github.com/earthlab/hub-ops/tree/master/monitoring>`_, click the little arrow + box icon in the bottom right corner of the screen: | ||
|
||
.. image:: ../media/login-icon.png | ||
:width: 200 | ||
|
||
The username is ``admin`` and the password is in ``secrets/monitoring.yml``. You can also retreive secrets using ``kubectl``. Username:: | ||
|
||
$ kubectl get secrets -n monitoring monitoring-grafana -o jsonpath='{.data.admin\-user}' | base64 -D | ||
|
||
and password:: | ||
|
||
$ kubectl get secrets -n monitoring monitoring-grafana -o jsonpath='{.data.admin\-password}' | base64 -D | ||
|
||
Once logged in, click on the settings (gear) icon at the top of the page. Go to the `Variables` tab, and modify the list for `$hubname`. Save your changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ Get started | |
setup-helm | ||
git-crypt | ||
tooling | ||
grafana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Monitoring for the hubs | ||
|
||
Deploy from the top level directory with: | ||
These files define the `monitoring` hub that underlies https://grafana.hub.earthdatascience.org. | ||
|
||
Deployment of the monitoring hub happens automatically through travis and the deploy.py script. To deploy manually: | ||
|
||
``` | ||
$ (cd monitoring && helm dep up) | ||
$ helm upgrade --install --namespace monitoring monitoring monitoring --version=v0.1.0 -f secrets/monitoring.yaml | ||
``` | ||
Needs to be added to auto deployment setup. |