Skip to content

Commit 2c013a4

Browse files
authored
Merge pull request circleci#7706 from circleci/DOCSS-948_sidebar-project-insights
Project insights section
2 parents f388013 + a5c53a7 commit 2c013a4

File tree

4 files changed

+55
-58
lines changed

4 files changed

+55
-58
lines changed

jekyll/_cci2/insights-glossary.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ contentTags:
1414
This document provides definitions for all the metrics in CircleCI Insights. You
1515
can review metrics in the Insights dashboard as well as the Insights API.
1616

17-
* TOC
18-
{:toc}
19-
20-
2117
## General metrics
2218
{: #general-metrics }
2319

@@ -73,18 +69,18 @@ additional context to Insights metrics by presenting a relative benchmark
7369
against previous performance. For instance, on the last 7-day view, trends will
7470
display the change in value or delta compared to the prior 7-day window.
7571

76-
**Please note that trends are available only for 24-hour, 7-day, and 30-day time windows.**
77-
7872
Trends are calculated as `100 * (current value - previous value) / prior-value`.
7973

74+
Trends are available only for 24-hour, 7-day, and 30-day time windows.
75+
{: class="alert alert-info"}
76+
8077
### Approximate Trends
8178
{: #approximate-trends }
8279

8380
For percentile metrics like duration, approximation methods are used to find the prior window benchmarks.
8481

8582
#### Duration
8683
{: #duration }
87-
{:.no_toc}
8884

8985
**P95 Duration**
9086

@@ -119,7 +115,7 @@ Red and Green are used when describing the `Success Rate`, `Throughput` and `MTT
119115

120116
**Percentages**
121117

122-
Percentages are used to indicates the relative percentage change for a metric in
118+
Percentages indicate the relative percentage change for a metric in
123119
the selected time window compared to the prior window. For instance, if the
124120
success rate of a workflow in the last 7 days has increased to 60% from 40% in
125121
the prior 7 days, Trends displays the +50% change in the current time window.

jekyll/_cci2/insights-snapshot-badge.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ contentTags:
1414
[#overview]
1515
== Overview
1616

17-
The Insights snapshot badge, similar to a <<status-badges#,status badge>> that is commonly embedded in project READMEs, provides a quick view of your project's health and usage metrics.
17+
The Insights snapshot badge, similar to a xref:status-badges#[status badge] that is commonly embedded in project READMEs, provides a quick view of your project's health and usage metrics.
1818

1919
image::insights-snapshot-badge-example.png[Insights snapshot badge embedded on README]
2020

21-
The most common use case for the Insights snapshot badge is to display <<insights#,Insights>> metrics for the deployment workflow on the project’s main branch in the README. With that said, the badge can be configured to display Insights metrics for any workflow on any branch within a project. This enables you to create additional badges for your scheduled workflows, workflows with different build targets, or workflows specifically used for testing, to name a few examples.
21+
The most common use case for the Insights snapshot badge is to display xref:insights#[Insights] metrics for the deployment workflow on the project’s main branch in the README. With that said, the badge can be configured to display Insights metrics for any workflow on any branch within a project. This enables you to create additional badges for your scheduled workflows, workflows with different build targets, or workflows specifically used for testing, to name a few examples.
2222

2323
While commonly placed in a project README, Insights snapshot badges can be embedded in any web document. The badge currently displays the following three metrics from the Insights dashboard:
2424

@@ -30,7 +30,7 @@ While commonly placed in a project README, Insights snapshot badges can be embed
3030
[#generating-an-insights-snapshot-badge]
3131
== Generating an Insights snapshot badge
3232

33-
To generate an insights snapshot badge code snippet for a public repository, go to the https://app.circleci.com/[CircleCI web app], and select a specific project. Then, open *Project Settings* and navigate to the *Insights Snapshot Badge* page.
33+
To generate an insights snapshot badge code snippet for a public repository, go to the link:https://app.circleci.com/[CircleCI web app], and select a specific project. Then, open *Project Settings* and navigate to the *Insights Snapshot Badge* page.
3434

3535
On the Insights Snapshot Badge page, you can select the branch, workflow, and time window for which you want to display project metrics for, as well as the desired format for the code snippet.
3636

@@ -59,8 +59,8 @@ You can add an API token directly from the Insights Snapshot Badge page by click
5959

6060
[#see-also]
6161
== See also
62-
* <<status-badges#,Status Badges>>
63-
* <<insights-glossary#,Insights Metrics Glossary>>
62+
* xref:status-badges#[Status badges]
63+
* xref:insights-glossary#[Insights metrics glossary]
6464

6565

6666

jekyll/_cci2/insights.md

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,79 +15,74 @@ contentTags:
1515
## Overview
1616
{: #overview }
1717

18-
1918
The CircleCI Insights dashboard provides an overview of the health and usage of
20-
your repository build processes, allowing users to make better engineering
21-
decisions. _Insights_ provides time-series data overviews of credit usage,
22-
success rates, pipeline duration, and other pertinent information.
19+
your projects' build processes, including time-series and aggreggated data on credit usage,
20+
success rates, and pipeline duration.
2321

24-
This document describes how to access and use the Insights dashboard on CircleCI Cloud and Server.
22+
This document describes how to access and use the Insights dashboard on CircleCI cloud and server.
2523

2624
## Usage
2725
{: #usage }
2826

2927
Insights across your organization can be accessed from the sidebar of the
3028
CircleCI web application.
3129

32-
To access a specific project's insights, view a pipeline's workflow and click
30+
To access a specific project's Insights, view a pipeline's workflow and click
3331
the **Insights** button. Alternatively, you may access the Insights page by
34-
clicking on the **actions** button while viewing the _pipelines dashboard_.
32+
opening a pipeline's **Actions** menu while viewing the pipelines dashboard.
3533

3634
{:.tab.insight-access.Access_by_sidebar}
3735
![Access insights from the CircleCI web app sidebar]({{ site.baseurl }}/assets/img/docs/screen_insights_access-3.png)
3836

39-
{:.tab.insight-access.Access_by_pipeline}
40-
![Access insights from a pipeline in the CircleCI web app]({{ site.baseurl }}/assets/img/docs/screen_insights_access-1.png)
41-
4237
{:.tab.insight-access.Access_by_workflow}
4338
![Access insights from a workflow in the CircleCI web app]({{ site.baseurl }}/assets/img/docs/screen_insights_access-2.png)
4439

40+
{:.tab.insight-access.Access_by_pipeline}
41+
![Access insights from a pipeline in the CircleCI web app]({{ site.baseurl }}/assets/img/docs/screen_insights_access-1.png)
4542

4643
### Workflow overview
4744
{: #workflow-overview }
4845

49-
The Insights dashboard provides workflow details plotted over time.
50-
**Please note that the data is not real time and there may be up to a 24 hour
51-
delay**. You may also filter by different workflows at the top of the page. The
52-
following data is charted under the workflow overview:
46+
The Insights workflow overview provides metrics plotted over time for all branches, or a select branch, of a particular project workflow. The following data is charted under the workflow overview:
5347

54-
- All workflow runs
48+
- Status (success versus failed) of up to 100 most recent workflow runs
5549
- Workflow success rate
56-
- Workflow duration
57-
- Workflow credit usage*
50+
- Workflow duration (50th versus 95th percentile)
51+
- Workflow credit usage
52+
53+
Data is not real-time and there may be up to a 24 hour delay.
54+
{: class="alert alert-info"}
55+
56+
The Insights dashboard is not a real time financial reporting tool and should
57+
not be used for credit reporting. The most up-to-date credit information can be
58+
found in your organization's Plan Overview.
59+
{: class="alert alert-info"}
5860

5961
### Job overview
6062
{: #job-overview }
6163

62-
Switch to the **Job** tab to view cumulative time-series data on a per-job basis:
64+
Click the **Jobs** tab next to **Overview** to view the following cumulative data on a per-job basis:
6365

64-
- Total credits used*
65-
- Duration (the 95th percentile)
66+
- Total credits used
67+
- Duration (95th percentile)
6668
- Total runs
6769
- Success rate
68-
69-
70-
<small>
71-
<i> * The Insights dashboard is not a real time financial reporting tool and should
72-
not be used for credit reporting. The most up to date credit information can be
73-
found in your organization's Plan Overview.</i>
74-
</small>
70+
- Compute usage (average and max for CPU and RAM)
7571

7672
---
7773

7874
## CircleCI Server v2.19.x Insights
7975
{: #circleci-server-v219x-insights }
8076

81-
⚠️ **Heads up!**
8277
The following section refers to using the Insights page on installations of CircleCI Server v2.19.x.
8378
{: class="alert alert-warning"}
8479

8580
### Overview
8681
{: #overview }
8782

88-
Click the Insights menu item in the CircleCI app to view a dashboard showing the health of all repositories you are following. Median build time, median queue time, last build time, success rate, and parallelism appear for your default branch. **Note:** If you have configured Workflows, graphs display all of the jobs that are being executed for your default branch.
83+
Click the Insights menu item in the CircleCI app to view a dashboard showing the health of all repositories you are following. Median build time, median queue time, last build time, success rate, and parallelism appear for your default branch. Note that if you have configured Workflows, graphs display all of the jobs that are being executed for your default branch.
8984

90-
![header]({{ site.baseurl }}/assets/img/docs/insights-1.0.gif)
85+
![header](/docs/assets/img/docs/insights-1.0.gif)
9186

9287
The image illustrates the following data about your builds:
9388

@@ -104,7 +99,7 @@ Click the Insights icon on the main navigation, then click your repo name to acc
10499

105100
The per-project insights page gives you access to the build status and build performance graphs for a selected branch.
106101

107-
![header]({{ site.baseurl }}/assets/img/docs/insights-current-build.png)
102+
![header](/docs/assets/img/docs/insights-current-build.png)
108103

109104
- **Build Status:** The Insights dashboard shows the last 50 builds for your default branch. Click a branch in the top right corner to access over 100 build/job statuses for the selected branch.
110105

@@ -114,8 +109,8 @@ The per-project insights page gives you access to the build status and build per
114109
## See also
115110
{: #see-also }
116111

117-
Refer to the [Collecting Test Metadata]({{ site.baseurl }}/collect-test-data/) document for instructions to configure insights into your most failed tests.
112+
Refer to the [Collect Test Data](/docs/collect-test-data/) document for guidance on configuring Insights into your most failed tests.
118113

119114
## Learn More
120115
{: #learn-more }
121-
Take the [insights course](https://academy.circleci.com/insights-course?access_code=public-2021) with CircleCI Academy to learn more.
116+
Take the [Insights course](https://academy.circleci.com/insights-course?access_code=public-2021) with CircleCI Academy to learn more.

jekyll/_data/sidenav.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,24 @@ en:
266266
- name: Migrate from deploy to run
267267
link: migrate-from-deploy-to-run
268268

269+
- name: Project Insights
270+
icon: icons/sidebar/insights-new.svg
271+
children:
272+
- name: Monitor projects with Insights
273+
children:
274+
- name: Use Insights
275+
link: insights
276+
- name: How-to guides
277+
children:
278+
- name: Generate an Insights snapshot badge
279+
link: insights-snapshot-badge
280+
- name: Reference
281+
children:
282+
- name: Insights glossary
283+
link: insights-glossary
284+
- name: Insights API
285+
link: https://circleci.com/docs/api/v2#tag/Insights
286+
269287
- name: Package and re-use config with orbs
270288
icon: icons/sidebar/orb.svg
271289
children:
@@ -316,18 +334,6 @@ en:
316334
- name: Reusing configuration
317335
link: reusing-config
318336

319-
- name: Insights
320-
icon: icons/sidebar/insights-new.svg
321-
children:
322-
- name: Overview
323-
link: insights
324-
- name: Metrics glossary
325-
link: insights-glossary
326-
- name: Insights snapshot badge
327-
link: insights-snapshot-badge
328-
- name: Insights API
329-
link: https://circleci.com/docs/api/v2#tag/Insights
330-
331337
- name: Security and permissions
332338
icon: icons/sidebar/key.svg
333339
children:

0 commit comments

Comments
 (0)