Monitoring Services
Last updated
Was this helpful?
Last updated
Was this helpful?
Garden Enterprise bundles the following tools for monitoring and logging:
, and for searching, collecting and displaying logs, respectively.
and a dashboard for monitoring.
You can choose which of these services Garden Enterprise installs during the installation process. Furthermore, you can optionally enable the ingresses to the Kibana and Grafana dashboards.
Elasticsearch and Kibana are very powerful tools for storing and viewing logs respectively. Below you'll find a quick guide to getting started with Kibana, but we recommend looking at the to see the full potential of these tools.
In what follows, we assume you've already installed Garden Enterprise and that it's running in the garden-enterprise
namespace. If you used a different namespace, adjust the namespace flag in the kubectl
commands below appropriately.
You can start a port-forward from your localhost to Kibana by running:
Then visit http://localhost:5601 in your browser.
Go to the and click Create index pattern.
Set the index pattern value to logstash-*
, click Next Step and proceed through the dialog.
You should now see your logs on the main screen. By default, it shows all the logs that Fluentd collects in the cluster. You can easily filter on these in the search bar at the top of the page.
For example, to filter on logs from the API service, you can query for kubernetes.labels.app_kubernetes_io/name:api
.
You can also configure the logs stream view to see a live stream of logs.
Next click the Apply button at the bottom.
Finally, remove all Log Columns except Timestamp
and add kubernetes.labels.app_kubernetes_io/name
and log
.
Click the Apply button again.
You can filter on logs in the search bar by using the following syntax: <column-name>:<value>
. For example, kubernetes.labels.app_kubernetes_io/name:api
.
In what follows, we assume you've already installed Garden Enterprise and that it's running in the garden-enterprise
namespace. If you used a different namespace, adjust the namespace flag in the kubectl
commands below appropriately.
You can start a port-forward from your localhost to Grafana by running:
Then visit http://localhost:8080 in your browser.
On the data sources page, click Add data source and select Prometheus.
As with the Kibana guide above, this guide barely scratches the surface of all the things Prometheus and Grafana are capable of, and we recommend you check out their official documentation for more.
Go to the and select logstash-*
in the index pattern dropdown.
Go to the and set the log indices to: logstash-*
Go to the to see a live stream of your logs.
This barely scratches the surface of what Kibana can do, and we recommend checking out for a list of features, dashboard inspirations and documentation.
Grafana is an open source dashboard that can display data from Prometheus (among other things), the underlying metrics collector. Below you'll find a quick guide to getting started with Grafana, but we recommend looking at the to see its full potential.
Go to the in your browser. The default username for Grafana is admin
and you'll need to provide the during the Garden Enterprise installation.
Go to the and import a pre-built Grafana dashboard. You can find a list of open source Grafana dashboards .
For example, you can try adding . You should now see your dashboard on the . Click the link and start exploring.