Skip to content

Commit 17972ca

Browse files
committed
Update package with best practices
1 parent 53b76df commit 17972ca

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed

packages/httpcheck/_dev/test/policy/test-eprcheck.expected

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
connectors:
2+
forward: {}
3+
exporters:
4+
elasticsearch/componentid-0:
5+
endpoints:
6+
- https://elasticsearch:9200
17
inputs: []
28
output_permissions:
39
default:
@@ -13,8 +19,16 @@ output_permissions:
1319
privileges:
1420
- auto_configure
1521
- create_doc
22+
processors:
23+
transform/componentid-0:
24+
metric_statements:
25+
- context: datapoint
26+
statements:
27+
- set(attributes["data_stream.type"], "metrics")
28+
- set(attributes["data_stream.dataset"], "httpcheck.httpcheckreceiver")
29+
- set(attributes["data_stream.namespace"], "ep")
1630
receivers:
17-
httpcheck/componentid:
31+
httpcheck/componentid-0:
1832
collection_interval: 1m
1933
targets:
2034
- endpoints:
@@ -24,5 +38,14 @@ secret_references: []
2438
service:
2539
pipelines:
2640
metrics:
41+
exporters:
42+
- elasticsearch/componentid-0
2743
receivers:
28-
- httpcheck/componentid
44+
- forward
45+
metrics/componentid-0:
46+
exporters:
47+
- forward
48+
processors:
49+
- transform/componentid-0
50+
receivers:
51+
- httpcheck/componentid-0

packages/httpcheck/_dev/test/system/test-local-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ vars:
33
period: 1s
44
endpoints:
55
- http://{{Hostname}}:{{Port}}
6+
assert:
7+
min_count: 50

packages/httpcheck/fields/base-fields.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/httpcheck/manifest.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
format_version: 3.4.0
1+
format_version: 3.5.0
22
name: httpcheck
33
title: "Simple HTTP Check"
44
version: 0.0.1
@@ -12,7 +12,7 @@ categories:
1212
- web
1313
conditions:
1414
kibana:
15-
version: "^9.0.0"
15+
version: "^9.2.0"
1616
elastic:
1717
subscription: "basic"
1818
screenshots:
@@ -26,7 +26,7 @@ icons:
2626
size: 32x32
2727
type: image/svg+xml
2828
policy_templates:
29-
- name: check
29+
- name: httpcheckreceiver
3030
type: metrics
3131
title: HTTP Check
3232
description: Perform HTTP checks and collect its results.
@@ -67,10 +67,6 @@ policy_templates:
6767
multi: true
6868
required: false
6969
show_user: false
70-
elasticsearch:
71-
index_template:
72-
mappings:
73-
subobjects: false
7470
owner:
7571
github: elastic/ecosystem
7672
type: elastic

0 commit comments

Comments
 (0)