Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: App metrics doc updated #43

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Ayaan49
Copy link

@Ayaan49 Ayaan49 commented Mar 5, 2025

No description provided.

@Ayaan49 Ayaan49 requested review from a team as code owners March 5, 2025 10:55
Copy link
Member

@abhibhaw abhibhaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention somewhere the enable metrics option is available for devtron charts and not for custom deployment charts


![](../../images/creating-application/app-metrics/app-metrics-1.jpg)
Before installing Prometheus from the chart store, manually apply the necessary CRDs in your cluster.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required? I doubt. I guess the chart includes CRDs as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's required. The CRDs do not get applied by the helm chart, hence we have to do it manually.


**Note: Since, all the requests are passed through envoy, any misconfiguration in envoy configs can bring your application down, so please test the configurations in a non-production environment extensively.**
To use the Grafana dashboard, you need to first install the integration from the Devtron Stack Manager.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give an interlinking to our Devtron Stack Manager doc.

This application metrics indicates the number of request processed by an application per minute.
4. **Setup Prometheus Endpoint:**

Once Prometheus is installed, navigate to `Networking → Service` in the K8s resources. Expand the Prometheus server service to see the endpoints.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rephrase it:
Once Prometheus is installed, go to its **App Details** page and navigate to ...


## Latency Metrics
To set Prometheus as a data source in Grafana, navigate to `Global Configurations → Clusters & Environments`, select your cluster, and edit its settings.
Copy link
Contributor

@ashokdevtron ashokdevtron Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

navigate to Global Configurations → Clusters & Environments
navigate to Global ConfigurationsClusters & Environments
(use Bold tag **)


![](../../images/creating-application/app-metrics/app-metrics-1.jpg)
![Fig 1: Chart Store](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/creating-application/app-metrics/app2.jpg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fig
Figure

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this for other figure captions as well.

## Checklist for enabling Advanced Application metrics in Production
To enable Throughput and Latency metrics in Devtron, follow these steps:
- Open your Devtron app.
- Go to `Configurations → Base Configurations → Deployment Template`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go to Configurations → Base Configurations → Deployment Template.
Go to ConfigurationsBase ConfigurationsDeployment Template.
(Bold tag expected for prominent pages, sections, and buttons)

{% hint style="warning" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be an incorrect indentation, this will not render correctly
Remove the initial whitespaces

{% hint style="warning" %}
**Note:** Enable metrics option is only available for [Devtron charts](https://docs.devtron.ai/usage/deploy-chart) and not for [Custom Deployment Charts](https://docs.devtron.ai/devtron/v0.6/global-configurations/custom-charts).
Copy link
Contributor

@ashokdevtron ashokdevtron Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will not render neatly...

Gitbook follows this syntax

{% hint style="warning" %}
### Note (or any other text)
blah blah blah 
{% endhint %}

Copy link
Contributor

@ashokdevtron ashokdevtron Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use absolute paths for linking:
[Devtron charts](https://docs.devtron.ai/usage/deploy-chart)
[Custom Deployment Charts](https://docs.devtron.ai/devtron/v0.6/global-configurations/custom-charts)

It should be interlinking (relative paths)
[Devtron Charts](../deploy-chart/README.md)
[Custom Deployment Chart](../global-configurations/deployment-charts.md)

![Fig 8: Enable Application Metrics](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/creating-application/app-metrics/app8.jpg)

Now, you can track all your application metrics by navigating to `Devtron Apps → Your App → App Details`, where you can view the Application Metrics as shown below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devtron Apps → Your App → App Details (no such navigation exists)
...navigating to Applications and going to the App Details page of your Devtron App as shown below.


**99.9th percentile latency**: The maximum latency, in seconds, for the fastest 99.9% of requests.
Now to set up the Prometheus endpoint:
- Enable the See metrics for applications in this cluster option, as shown in the image below.
Copy link
Contributor

@ashokdevtron ashokdevtron Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a checkbox option, we need to make it prominent by either:
See metrics for applications in this cluster OR See metrics for applications in this cluster
(1st one is preferable)

ashokdevtron
ashokdevtron previously approved these changes Mar 11, 2025
Copy link
Contributor

@ashokdevtron ashokdevtron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed, LGTM

@ashokdevtron ashokdevtron changed the title App metrics doc updated docs: App metrics doc updated Mar 11, 2025

Memory usage is a utilization metric that shows the overall utilization of memory by an application. It is available as both, aggregated or per pod.
3. **Enable `upgradeJob` paramter to install CRDs:**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling of parameter


**95th percentile latency**: The maximum latency, in seconds, for the fastest 95% of requests.
After adding the endpoint, application metrics will be visible in the Devtron dashboard for all the Devtron apps in the cluster. This includes CPU usage and Memory usage.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may take some time after adding, ~3-5 mins

## Checklist for enabling Advanced Application metrics in Production
To enable Throughput and Latency metrics in Devtron, follow these steps:
- Open your Devtron app.
- Go to **Configurations → Base Configurations → Deployment Template**.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the env is overridden this won't work!!

![Figure 8: Enable Application Metrics](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/creating-application/app-metrics/app8.jpg)

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the normal metrics (CPU / Memory) will work in case of custom charts?

{% hint style="warning" %}
### Note
You won’t be able to enable the Application Metrics if your environment is [Overridden](../creating-application/environment-overrides.md).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥲 You can u just need to do it at env override and not base configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants