Skip to content

Collection of Grafana dashboards for Okteto Insights

License

Notifications You must be signed in to change notification settings

okteto/insights-dashboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

insights-dashboards

A Prometheus scraper and collection of Grafana dashboards for Okteto Insights

Sample Dashboards

There are several sample dashboards to help you start exploring the data provided by Okteto Insights.

Installation: Deploy Prometheus for Metric Scraping and Grafana for Dashboard Visualization

The following sections outline deployment steps for setting up a Prometheus and Grafana bundle that will scrape metrics from Okteto Insights, covering both Okteto and standalone setups.

However, it's important to note that while the provided deployment solution is suitable for testing and development purposes, it may not be optimal for production scenarios.

If deployed via Okteto, it will be protected by default via Private endpoints, but if deployed standalone it will be accessible by anyone with network access.

For production deployments, consider adjusting the settings to fit your security, scalability and persistence requirements.

Environment Variable Default Value Description
PROMETHEUS_CHART_VERSION 25.19.1 The version of the Prometheus chart to be deployed.
GRAFANA_CHART_VERSION 7.3.7 The version of the Grafana chart to be deployed.
PROMETHEUS_RELEASE_NAME prometheus The name of the Prometheus release.
GRAFANA_RELEASE_NAME grafana The name of the Grafana release.
PROMETHEUS_ARGS default helm chart installation flags Main arguments for deploying the Prometheus chart.
GRAFANA_ARGS default helm chart installation flags Main arguments for deploying the Grafana chart.
PROMETHEUS_EXTRA_ARGS Extra arguments for the Helm upgrade command when deploying Prometheus.
GRAFANA_EXTRA_ARGS Extra arguments for the Helm upgrade command when deploying Grafana.

Okteto

Prerequisites

Before deploying with Okteto, make sure you have the following prerequisites:

  • Okteto CLI installed and configured
  • Access to the Okteto namespace where you want to deploy Prometheus and Grafana

Deployment Steps

  1. Set up the INSIGHTS_TOKEN variable:

  2. Run the deployment command or deploy the repository from the Okteto UI:

    okteto deploy

This will deploy Prometheus and Grafana using the values of the INSIGHTS_TOKEN variable from the Okteto environment.

Standalone

Prerequisites

Before deploying standalone, make sure you have the following prerequisites:

  • Access to the Kubernetes cluster where you want to deploy Prometheus and Grafana

Deployment Steps

  1. Set up the environment variables:

    • Ensure both INSIGHTS_TOKEN and DOMAIN variables are exported.
  2. Run the deployment command:

    make add-helm-repos
    make deploy-prometheus
    make deploy-grafana

This will deploy Prometheus and Grafana using the exported values of INSIGHTS_TOKEN and DOMAIN variables.

Prometheus Operator

To scrape Prometheus metrics from Okteto Insights using Prometheus Operator, follow these steps:

  1. Ensure prerequisites:

  2. Apply the following ScrapeConfig manifest in the okteto namespace:

    apiVersion: monitoring.coreos.com/v1alpha1
    kind: ScrapeConfig
    metadata:
      name: okteto
      namespace: okteto
      labels:
        instance: okteto
    spec:
      staticConfigs:
      - targets:
        - okteto.yourinstancedomain.com:443
      scheme: HTTPS
      authorization:
        credentials:
          key: bearer
          name: okteto-insights

    Replace okteto.yourinstancedomain.com with your Okteto instance address. Refer to the following documentation for getting this value:

    If you customized your Helm release insights.bearerSecret configuration, replace spec.authorization.credentials accordingly. Refer to the following documentation for more information:

  3. Label the okteto namespace:

    kubectl label ns okteto prometheus-operator=okteto-insights
  4. Update your Prometheus Operator instance with the following sections:

    spec:
      scrapeConfigSelector:
        matchLabels:
          instance: okteto
      scrapeConfigNamespaceSelector:
        matchLabels:
          prometheus-operator: okteto-insights

These steps will configure your Prometheus Operator to scrape metrics from Okteto Insights.

About

Collection of Grafana dashboards for Okteto Insights

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published