You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/insights.md
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,94 @@ The per-project insights page gives you access to the build status and build per
101
101
102
102
-**Build Performance:** The Build Performance graph aggregates your build/job data for a particular day and plots the median for that day going back as far as 90 days. Monitor the performance of your repo by clicking a particular branch.
103
103
104
+
105
+
## Sumo Logic Integration
106
+
107
+
Sumo Logic users may track and visualize analytical data across all of their
108
+
jobs on CircleCI. To do so, use the Sumo Logic Orb and Sumo Logic app
109
+
integration from the Sumo Logic partner integrations site.
This dashboard receives data through the CircleCI Sumo Logic orb which must be included in your projects to be tracked.
133
+
134
+
### The Sumo Logic Orb
135
+
136
+
Find the latest version of the Sumo Logic orb on the [Orb Registry](https://circleci.com/orbs/registry/orb/circleci/sumologic).
137
+
138
+
#### 1. Import the Sumo Logic orb.
139
+
Add the Sumo Logic orb to your project by including the top-level `orbs` key and import `circleci/[email protected]` as follows, replacing `x.y.z` with the latest version number at the link above.
The `workflow-collector` job runs concurrently along side your workflow and sends analytics to Sumo Logic until all of the jobs in your workflow have completed.
148
+
149
+
```yaml
150
+
version: 2.1
151
+
workflows:
152
+
build-test-and-deploy:
153
+
jobs:
154
+
- sumologic/workflow-collector # add this job to track workflow.
155
+
- build
156
+
- test:
157
+
requires:
158
+
- build
159
+
- deploy:
160
+
requires:
161
+
- test
162
+
```
163
+
#### 3. Create two source collectors.
164
+
You will need to create two *source collectors* on Sumo Logic which will return an HTTPS URL. Your job data will be sent to this HTTPS URL.
165
+
166
+
You will need to create one called `circleci/job-collector` and another called `circleci/workflow-collector`.
167
+
168
+
To create the two source collectors:
169
+
1. From the dashboard select the **Setup Wizard**.
170
+
2. Select **Set Up Streaming Data**.
171
+
3. Scroll to the bottom and select **All Other Sources**.
172
+
4. Select **HTTPS Source**
173
+
5. For the `Source Category` enter one of the two mentioned above.
174
+
6. Save the resulting URL.
175
+
176
+
#### 4. Add environment variables.
177
+
For each of the URLs produce in the previous step, create the corresponding environment variable.
178
+
179
+
Env vars:
180
+
- `JOB_HTTP_SOURCE`
181
+
- `WORKFLOW_HTTP_SOURCE`
182
+
183
+
**[How to add an environment variable to your project.]({{ site.baseurl }}/2.0/env-vars/#setting-an-environment-variable-in-a-project)**
184
+
185
+
This will link the orb with your Sumo Logic dashboard.
186
+
187
+
Your Sumo Logic dashboard will now begin to populate with data as each job runs on CircleCI.
188
+
189
+
## See Also
190
+
Refer to the [Orbs Introduction]({{ site.baseurl }}/2.0/orb-intro/) document to learn more about using and authoring orbs.
191
+
104
192
### See Also
105
193
106
194
Refer to the [Collecting Test Metadata]({{ site.baseurl }}/2.0/collect-test-data/) document for instructions to configure insights into your most failed tests.
0 commit comments