Repository navigation
Commit 1e16768
feat(alloy): label Coder pod logs with a component (#106)
Tag pod logs as `component="coderd"`, `"provisioner"` or `"workspace"`
using the existing global.coder.{coderd,provisionerd,workspaces}Selector
values, so logs can be filtered by what produced them. Each stage is
skipped when its selector is empty, instead of rendering an invalid
Alloy selector.
The level/logger parsing and multi-line joining now apply to the
coderd and provisioner components rather than any pod named `coder*`,
so it follows the same selectors as everything else and no longer picks
up unrelated pods that happen to start with "coder".
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent b28f54f commit 1e16768
3 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
172 | 199 | | |
173 | 200 | | |
174 | | - | |
| 201 | + | |
175 | 202 | | |
176 | 203 | | |
177 | 204 | | |
| |||
0 commit comments