Try Devtron Enterprise for FREE!
Start Now
LogoLogo
WebsiteDevtron demoGithub RepoJoin Discord
v0.7
v0.7
  • Introduction
  • Getting Started
  • Install Devtron
    • Install Devtron with CI/CD
    • Install Devtron with CI/CD and GitOps (Argo CD)
    • Install Devtron without Integrations
    • Install Devtron on Minikube, Microk8s, K3s, Kind, Cloud VMs
    • Install Devtron on Airgapped Environment
    • Demo on Popular Cloud Providers
    • Backup for Disaster Recovery
    • Uninstall Devtron
    • FAQs
  • Install Devtron Enterprise Trial
  • Devtron Kubernetes Client
  • Configurations
    • Installation Configurations
    • Override Configurations
    • Ingress Setup
  • Global Configurations
    • Host URL
    • GitOps
    • Projects
    • Clusters & Environments
    • Git Accounts
    • Container/OCI Registry
    • Chart Repositories
    • Deployment Charts
    • Authorization
      • SSO Login Services
        • Google
        • GitHub
        • GitLab
        • Microsoft
        • LDAP
        • OIDC
          • Keycloak
          • Okta
        • OpenShift
      • User Permissions
      • Permission Groups
      • API Tokens
    • Notifications
    • Deployment Window
    • Approval Policy
    • External Links
    • Catalog Framework
    • Scoped Variables
    • Plugin Policy
    • Pull Image Digest
    • Tags Policy
    • Filter Condition
    • Lock Deployment Configuration
    • Image Promotion Policy
    • Build Infra
  • Devtron Upgrade
    • Update Devtron from Devtron UI
    • Upgrade to 1.5.0
    • 0.6.x-0.7.x
    • 0.5.x-0.6.x
    • 0.4.x-0.5.x
    • 0.4.x-0.4.x
    • 0.3.x-0.4.x
    • 0.3.x-0.3.x
    • 0.2.x-0.3.x
  • Usage
    • Applications
      • Create a New Application
      • Clone an Existing Application
      • Deploy a Sample Application
      • App Configuration
        • Git Repository
        • Build Configuration
        • Base Deployment Template
          • Deployment
          • Rollout Deployment
          • Job and Cronjob
          • StatefulSets
        • GitOps Configuration
        • Workflow Editor
          • CI Pipeline
            • Pre-Build/Post-Build Stages
            • Override Build Configuration
          • CD Pipeline
        • ConfigMaps
        • Secrets
          • External Secret Operator (ESO)
            • AWS Secrets Manager
            • Google Secrets Manager
            • HashiCorp Vault
        • Environment Overrides
        • Deleting Application
      • Build and Deploy
        • Triggering CI
        • Triggering CD
        • Rollback Deployment
        • Applying Labels to Images
      • App Details
        • Debugging Deployment And Monitoring
        • Using Ephemeral Containers
        • Application Metrics
      • Application Overview
    • Jobs
      • Create a new job
      • Configurations
      • Workflow Editor
      • Trigger Job
      • Overview
    • Application Groups
    • Software Distribution Hub
      • Tenants
      • Release Hub
    • Resource Browser
    • Resource Watcher
    • Charts
      • Charts Overview
      • Deploy & Observe
      • Examples
        • Deploying Mysql Helm Chart
        • Deploying MongoDB Helm Chart
      • Chart Group
    • Security
      • Security Scans
      • Security Policies
    • Bulk Edit
    • Integrations
      • Build and Deploy (CI/CD)
      • GitOps (Argo CD)
      • Vulnerability Scanning (Clair)
      • Notifications
      • Monitoring (Grafana)
    • Pipeline Plugins
      • Create Your Plugin
      • Our Plugins
        • Ansible Runner
        • Bitbucket Runner Trigger
        • Codacy
        • Code-Scan
        • Copacetic
        • Container Image Exporter
        • Copy Container Image
        • Cosign
        • CraneCopy
        • Dependency track - Maven & Gradle
        • Dependency track - NodeJS
        • Dependency track - Python
        • Devtron CD Trigger
        • Devtron CI Trigger
        • Devtron Job Trigger
        • DockerSlim
        • EKS Create Cluster
        • GCS Create Bucket
        • GitHub Pull Request Updater
        • GKE Provisioner
        • GoLang-migrate
        • Jenkins
        • Jira Issue Validator
        • Jira Issue Updater
        • K6 Load Testing
        • Pull images from container repository
        • Semgrep
        • SonarQube
        • SonarQube v1.1.0
        • Terraform CLI
        • Vulnerability Scanning
  • Resources
    • Glossary
    • Troubleshooting
    • Use Cases
      • Devtron Generic Helm Chart To Run CronJob Or One Time Job
      • Connect SpringBoot with Mysql Database
      • Connect Expressjs With Mongodb Database
      • Connect Django With Mysql Database
      • Pull Helm Charts from OCI Registry
    • Telemetry Overview
    • Devtron on Graviton
    • Release Notes
Powered by GitBook
On this page
  • Types of Metrics available in the Devtron platform:
  • Setup Application Metrics

Was this helpful?

Export as PDF
  1. Usage
  2. Applications
  3. App Details

Application Metrics

PreviousUsing Ephemeral ContainersNextApplication Overview

Last updated 1 month ago

Was this helpful?

Application Metrics are the indicators used to evaluate the performance and efficiency of your application. It can be enabled in the Devtron platform to see your application's metrics.

Types of Metrics available in the Devtron platform:

  1. CPU usage: Overall CPU utilization per pod and aggregated.

  2. Memory Usage: Overall memory utilization per pod and aggregated.

  3. Throughput: Number of requests processed per minute.

  4. Latency: Delay between request and response, measured in percentiles.

Setup Application Metrics

Note

Application metrics can only be enabled if your application is deployed using Devtron Deployment Charts and not .

  1. Install Grafana Dashboard:

    To use the Grafana dashboard, you need to first install the integration from the .

  2. Install Prometheus:

    Go to the Chart Store and search for prometheus. Use the Prometheus community's kube-prometheus-stack chart to deploy Prometheus.

    Figure 1: Chart Store

    After selecting the chart, configure these values as needed before deployment.

    kube-state-metrics: 
      metricLabelsAllowlist:   
      - pods=[*]

    Search for the above parameters, and update them as shown (or customize as needed).

    Figure 2: Prometheus Chart
  3. Enable upgradeJob parameter to install CRDs:

    Since Helm does not automatically apply CRDs, you need to enable the upgradeJob parameter in the Helm chart to ensure CRDs are applied before deploying Prometheus.

    • In the Prometheus Helm chart settings, locate the upgradeJob parameter and set it to true if it is false.

      Figure 3: upgradeJob Parameter

      After enabling the parameter, click Deploy Chart.

  4. Setup Prometheus Endpoint:

    Once Prometheus is installed, go to its App Details and navigate to Networking → Service in the K8s resources. Expand the Prometheus server service to see the endpoints.

    Copy the URL of the kube-prometheus service as shown in the image below.

    Figure 4: Prometheus Service

    To set Prometheus as a data source in Grafana, navigate to Global Configurations → Clusters & Environments, select your cluster, and edit its settings.

    Figure 5: Clusters and Environments

    Now to set up the Prometheus endpoint:

    • Enable the See metrics for applications in this cluster option, as shown in the image below.

    • Paste the copied URL into the Prometheus endpoint field, ensuring it includes http://

    • Click Update Cluster to save the changes.

      Figure 6: Prometheus Endpoint

    After adding the endpoint, application metrics will be visible in the Devtron dashboard for all the Devtron apps in the cluster (it may take a few minutes). This includes CPU usage and Memory usage.

    Figure 7: CPU Usage & Memory Usage
  5. Enable Application Metrics:

    To enable Throughput and Latency metrics in Devtron, follow these steps:

    • Open your Devtron app.

    • Go to Configurations → Base Configurations → Deployment Template.

    • Enable Application Metrics in the Deployment Template as shown below and save the changes.

    Figure 8: Enable Application Metrics

    Now, you can track all your application metrics by navigating to Applications and going to the App Details page of your Devtron App as shown below.

    Figure 9: Application Metrics

Note

If your environment is , you need to enable the Application Metrics at the environment override deployment template instead of the base deployment template.

Overridden
Custom Deployment Charts
Devtron Stack Manager
Read Grafana Dashboard