LogoLogo
WebsiteGarden Core
Edge
Edge
  • welcome
  • 🌳Getting Started
    • Adding Your First Project
    • Running Triggered Workflows
  • 🌿Guides
    • Authenticating to your Providers
    • Automatic Environment Cleanup
    • User Groups, Roles and Permissions
    • Authentication via SAML
    • StackStreams
    • Managing Secrets
    • One-click Preview Environments
  • 🌺VCS Providers
    • Setting Up a GitHub App
    • Setting Up a GitLab App
  • 💐Cloud
    • Requirements
  • 🌻Enterprise (Self-Hosted)
    • Requirements
    • Installation
    • Updating Garden Enterprise
    • Vault
    • PostgreSQL Configuration
    • Creating KMS Keys
    • Creating an AWS Load Balancer
    • Monitoring Services
    • Environment Configuration
    • Updating the Admin Console
  • 🌹Misc
    • Release Notes
    • FAQ
    • Troubleshooting
Powered by GitBook
On this page
  • Setting Up Kibana for Logs
  • Start a Port-Forward
  • Add Index Patterns
  • View the Logs
  • Set Up Logs Stream (Optional)
  • View the Logs Stream (Optional)
  • Next Steps
  • Setting Up Grafana for Metrics
  • Start a Port-Forward
  • Add Prometheus as Datasource
  • Import a Dashboard

Was this helpful?

  1. Enterprise (Self-Hosted)

Monitoring Services

PreviousCreating an AWS Load BalancerNextEnvironment Configuration

Last updated 3 years ago

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.

Setting Up Kibana for Logs

Before proceeding, make sure you have your Kubernetes context set to the context of the cluster that runs Garden Enterprise (you can also pass it as an option to kubectl via the --context flag).

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.

Start a Port-Forward

You can start a port-forward from your localhost to Kibana by running:

kubectl port-forward svc/prod-charts-kibana 5601:5601 -n garden-enterprise

Then visit in your browser.

The links below assume you've used the port-forward command above and that Kibana is available on port 5601 locally.

Add Index Patterns

Go to the and click Create index pattern.

Set the index pattern value to logstash-*, click Next Step and proceed through the dialog.

View the Logs

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.

Set Up Logs Stream (Optional)

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.

View the Logs Stream (Optional)

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.

Next Steps

Setting Up Grafana for Metrics

Before proceeding, make sure you have your Kubernetes context set to the context of the cluster that runs Garden Enterprise (you can also pass it as an option to kubectl via the --context flag).

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.

Start a Port-Forward

You can start a port-forward from your localhost to Grafana by running:

kubectl port-forward svc/prod-charts-grafana 8080:80 -n garden-enterprise

The links below assume you've used the port-forward command above and that Grafana is available on port 8080 locally.

Add Prometheus as Datasource

On the data sources page, click Add data source and select Prometheus.

Import a Dashboard

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.

Then visit in your browser.

Go to the in your browser. The default username for Grafana is admin and you'll need to provide the password you created 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.

🌻
Elasticsearch
Fluentd
Kibana
Prometheus
Grafana
official documentation
http://localhost:5601
index patterns page
discover page
logs settings page
logs stream page
their website
official documentation
http://localhost:8080
Grafana data sources page
import page
here
dashboard with ID 11074
dashboard page
index pattern
Select index pattern
Log indices
Log columns