Skip to content

Commit 21d118c

Browse files
ptodevelee1766elburnetto-intappclayton-cornell
authored
[release/v1.4] Prepare for 1.4.3 (#1923)
* Add v1.4.3 to the changelog * [faro collector] add missing struct fields so that payload.meta.browser fields are not lost (#1824) * Update payload.go * Update CHANGELOG.md * Update payload.go * Update payload.go * Update payload.json * Update payload.json * Update payload.json * Update payload_test.go * Update payload.json * Remove Pyroscope scrape loops for no longer active targets (#1833) * fix: increase timeout for informer on loki.source.podlogs (#1862) * [prometheus.exporter.windows] Fix default values (#1878) * Fix default values * Wrap regexes * Remove unnecessary comment * Fix comment * enabled_list in the smb block should be deprecated * Fix docs and comments * Apply suggestions from code review Co-authored-by: Clayton Cornell <[email protected]> * Replace "regex" with "regular expression" * Update changelog --------- Co-authored-by: Clayton Cornell <[email protected]> * Fix changelog * Change VERSION --------- Co-authored-by: a <[email protected]> Co-authored-by: Alex Burnett <[email protected]> Co-authored-by: Clayton Cornell <[email protected]>
1 parent e7c37a1 commit 21d118c

File tree

16 files changed

+306
-186
lines changed

16 files changed

+306
-186
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ This document contains a historical list of changes between releases. Only
77
changes that impact end-user behavior are listed; changes to documentation or
88
internal API changes are not present.
99

10+
v1.4.3
11+
-----------------
12+
13+
### Bugfixes
14+
15+
- Fix an issue where some `faro.receiver` would drop multiple fields defined in `payload.meta.browser`, as fields were defined in the struct.
16+
17+
- `pyroscope.scrape` no longer tries to scrape endpoints which are not active targets anymore. (@wildum @mattdurham @dehaansa @ptodev)
18+
19+
- Fixed a bug with `loki.source.podlogs` not starting in large clusters due to short informer sync timeout. (@elburnetto-intapp)
20+
21+
- `prometheus.exporter.windows`: Fixed bug with `exclude` regular expression config arguments which caused missing metrics. (@ptodev)
22+
1023
v1.4.2
1124
-----------------
1225

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
#
2121
# Lines starting with "#" and blank lines are ignored.
2222

23-
v1.4.2
23+
v1.4.3

docs/sources/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ weight: 350
66
cascade:
77
ALLOY_RELEASE: v1.4.2
88
OTEL_VERSION: v0.105.0
9+
PROM_WIN_EXP_VERSION: v0.27.3
910
FULL_PRODUCT_NAME: Grafana Alloy
1011
PRODUCT_NAME: Alloy
1112
hero:

docs/sources/_index.md.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ weight: 350
66
cascade:
77
ALLOY_RELEASE: $ALLOY_VERSION
88
OTEL_VERSION: v0.105.0
9+
PROM_WIN_EXP_VERSION: v0.27.3
910
FULL_PRODUCT_NAME: Grafana Alloy
1011
PRODUCT_NAME: Alloy
1112
hero:

docs/sources/reference/components/prometheus/prometheus.exporter.windows.md

Lines changed: 147 additions & 132 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ require (
149149
github.com/prometheus-community/elasticsearch_exporter v1.5.0
150150
github.com/prometheus-community/postgres_exporter v0.11.1
151151
github.com/prometheus-community/stackdriver_exporter v0.15.1
152-
github.com/prometheus-community/windows_exporter v0.27.3
152+
github.com/prometheus-community/windows_exporter v0.27.4-0.20241010144849-a0f6d3bcf9a4
153153
github.com/prometheus-operator/prometheus-operator v0.66.0
154154
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.66.0
155155
github.com/prometheus-operator/prometheus-operator/pkg/client v0.66.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,6 +2126,8 @@ github.com/prometheus-community/stackdriver_exporter v0.15.1 h1:+k26zeBy8BlG+eDK
21262126
github.com/prometheus-community/stackdriver_exporter v0.15.1/go.mod h1:UmmIgnrVQqDAeM8pSeYntBcUxPhp8oqb8W3nvRYzsSg=
21272127
github.com/prometheus-community/windows_exporter v0.27.3 h1:L5Dc4gqc3477Y6jaVHhkm25jysqbxg1ajMyPbmnqScw=
21282128
github.com/prometheus-community/windows_exporter v0.27.3/go.mod h1:8+T6hfv71nvgVIzguouXkIGoa15ni+uXHHULBOA2bZo=
2129+
github.com/prometheus-community/windows_exporter v0.27.4-0.20241010144849-a0f6d3bcf9a4 h1:e6RmefQvH1jXwo7JnN5UvcyZz8uyABMFScnkrrWNrf0=
2130+
github.com/prometheus-community/windows_exporter v0.27.4-0.20241010144849-a0f6d3bcf9a4/go.mod h1:8+T6hfv71nvgVIzguouXkIGoa15ni+uXHHULBOA2bZo=
21292131
github.com/prometheus-operator/prometheus-operator v0.66.0 h1:Jj4mbGAkfBbTih6ait03f2vUjEHB7Kb4gnlAmWu7AJ0=
21302132
github.com/prometheus-operator/prometheus-operator v0.66.0/go.mod h1:U7S3+u6YTxwCTMNIQxZWttEq70qBA4Qps7/c5mUZOpQ=
21312133
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.66.0 h1:PPW01FLVjJHMNcbAL1DDD9EZceSQKMOU/VpK0irrxrI=

internal/component/faro/receiver/internal/payload/payload.go

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,16 @@ func (a App) KeyVal() *KeyVal {
396396

397397
// Browser holds metadata about a client's browser
398398
type Browser struct {
399-
Name string `json:"name,omitempty"`
400-
Version string `json:"version,omitempty"`
401-
OS string `json:"os,omitempty"`
402-
Mobile bool `json:"mobile,omitempty"`
399+
Name string `json:"name,omitempty"`
400+
Version string `json:"version,omitempty"`
401+
OS string `json:"os,omitempty"`
402+
Mobile bool `json:"mobile,omitempty"`
403+
UserAgent string `json:"userAgent,omitempty"`
404+
Language string `json:"language,omitempty"`
405+
// TODO: properly serialize brands
406+
// Brands json.RawMessage `json:"brands,omitempty"`
407+
ViewportWidth string `json:"viewportWidth,omitempty"`
408+
ViewportHeight string `json:"viewportHeight,omitempty"`
403409
}
404410

405411
// KeyVal produces key->value representation of the Browser metadata
@@ -409,6 +415,10 @@ func (b Browser) KeyVal() *KeyVal {
409415
KeyValAdd(kv, "version", b.Version)
410416
KeyValAdd(kv, "os", b.OS)
411417
KeyValAdd(kv, "mobile", fmt.Sprintf("%v", b.Mobile))
418+
KeyValAdd(kv, "userAgent", b.UserAgent)
419+
KeyValAdd(kv, "language", b.Language)
420+
KeyValAdd(kv, "viewportWidth", b.ViewportWidth)
421+
KeyValAdd(kv, "viewportHeight", b.ViewportHeight)
412422
return kv
413423
}
414424

internal/component/faro/receiver/internal/payload/payload_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func TestUnmarshalPayloadJSON(t *testing.T) {
5858
Version: "88.12.1",
5959
OS: "linux",
6060
Mobile: false,
61+
UserAgent: "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0",
62+
Language: "en-US",
63+
ViewportWidth: "1920",
64+
ViewportHeight: "1080",
6165
},
6266
View: View{
6367
Name: "foobar",

internal/component/faro/receiver/testdata/payload.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@
281281
"name": "chrome",
282282
"version": "88.12.1",
283283
"os": "linux",
284-
"mobile": false
284+
"mobile": false,
285+
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0",
286+
"language": "en-US",
287+
"viewportWidth": "1920",
288+
"viewportHeight": "1080"
285289
},
286290
"view": {
287291
"name": "foobar"

0 commit comments

Comments
 (0)