Skip to content

Commit 9d802e7

Browse files
[AutoOps] Add autoops-es.yml to Packages (#8728) (#8836)
This adds the `autoops-es.yml` to enable simpler configuration for users that would like to make use of AutoOps to ship data. (cherry picked from commit f4981d3) Co-authored-by: Chris Earle <[email protected]>
1 parent 3d3c9e9 commit 9d802e7

File tree

4 files changed

+141
-4
lines changed

4 files changed

+141
-4
lines changed

dev-tools/packaging/packages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,9 @@ shared:
460460
'data/{{.BeatName}}-{{ commit_short }}/otelcol.ps1':
461461
source: '{{ repo.RootDir }}/dev-tools/packaging/files/windows/otelcol.ps1'
462462
mode: 0755
463-
# windows not supported yet
464-
# 'otel_samples':
465-
# source: '{{ repo.RootDir }}/internal/pkg/otel/samples/windows/'
466-
# mode: 0755
463+
'otel_samples':
464+
source: '{{ repo.RootDir }}/internal/pkg/otel/samples/windows/'
465+
mode: 0755
467466

468467
# This image is used only for preparing the file tree before actually building the image
469468
- &docker_builder_spec
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
receivers:
2+
metricbeatreceiver:
3+
metricbeat:
4+
modules:
5+
# Metrics
6+
- module: autoops_es
7+
hosts: ${env:AUTOOPS_ES_URL}
8+
period: 10s
9+
metricsets:
10+
- cat_shards
11+
- cluster_health
12+
- cluster_settings
13+
- license
14+
- node_stats
15+
- tasks_management
16+
# Templates
17+
- module: autoops_es
18+
hosts: ${env:AUTOOPS_ES_URL}
19+
period: 24h
20+
metricsets:
21+
- cat_template
22+
- component_template
23+
- index_template
24+
processors:
25+
- add_fields:
26+
target: autoops_es
27+
fields:
28+
token: ${env:AUTOOPS_TOKEN}
29+
output:
30+
otelconsumer:
31+
telemetry_types: ["logs"]
32+
33+
exporters:
34+
otlphttp:
35+
headers:
36+
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
37+
endpoint: ${env:AUTOOPS_OTEL_URL}
38+
39+
service:
40+
pipelines:
41+
logs:
42+
receivers: [metricbeatreceiver]
43+
exporters: [otlphttp]
44+
telemetry:
45+
logs:
46+
encoding: json
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
receivers:
2+
metricbeatreceiver:
3+
metricbeat:
4+
modules:
5+
# Metrics
6+
- module: autoops_es
7+
hosts: ${env:AUTOOPS_ES_URL}
8+
period: 10s
9+
metricsets:
10+
- cat_shards
11+
- cluster_health
12+
- cluster_settings
13+
- license
14+
- node_stats
15+
- tasks_management
16+
# Templates
17+
- module: autoops_es
18+
hosts: ${env:AUTOOPS_ES_URL}
19+
period: 24h
20+
metricsets:
21+
- cat_template
22+
- component_template
23+
- index_template
24+
processors:
25+
- add_fields:
26+
target: autoops_es
27+
fields:
28+
token: ${env:AUTOOPS_TOKEN}
29+
output:
30+
otelconsumer:
31+
telemetry_types: ["logs"]
32+
33+
exporters:
34+
otlphttp:
35+
headers:
36+
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
37+
endpoint: ${env:AUTOOPS_OTEL_URL}
38+
39+
service:
40+
pipelines:
41+
logs:
42+
receivers: [metricbeatreceiver]
43+
exporters: [otlphttp]
44+
telemetry:
45+
logs:
46+
encoding: json
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
receivers:
2+
metricbeatreceiver:
3+
metricbeat:
4+
modules:
5+
# Metrics
6+
- module: autoops_es
7+
hosts: ${env:AUTOOPS_ES_URL}
8+
period: 10s
9+
metricsets:
10+
- cat_shards
11+
- cluster_health
12+
- cluster_settings
13+
- license
14+
- node_stats
15+
- tasks_management
16+
# Templates
17+
- module: autoops_es
18+
hosts: ${env:AUTOOPS_ES_URL}
19+
period: 24h
20+
metricsets:
21+
- cat_template
22+
- component_template
23+
- index_template
24+
processors:
25+
- add_fields:
26+
target: autoops_es
27+
fields:
28+
token: ${env:AUTOOPS_TOKEN}
29+
output:
30+
otelconsumer:
31+
telemetry_types: ["logs"]
32+
33+
exporters:
34+
otlphttp:
35+
headers:
36+
Authorization: "AutoOpsToken ${env:AUTOOPS_TOKEN}"
37+
endpoint: ${env:AUTOOPS_OTEL_URL}
38+
39+
service:
40+
pipelines:
41+
logs:
42+
receivers: [metricbeatreceiver]
43+
exporters: [otlphttp]
44+
telemetry:
45+
logs:
46+
encoding: json

0 commit comments

Comments
 (0)