Skip to content

Commit

Permalink
Makes metrics config option required in app_insights (elastic#20406) (
Browse files Browse the repository at this point in the history
elastic#20423)

* mofidy doc

* config

* changelog

* generate

* regen

* mage fmt

(cherry picked from commit 496e3c9)
  • Loading branch information
narph authored Aug 4, 2020
1 parent 23ec7b9 commit eb914d5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ field. You can revert this change by configuring tags for the module and omittin
- Fix k8s scheduler compatibility issue. {pull}19699[19699]
- Fix SQL module mapping NULL values as string {pull}18955[18955] {issue}18898[18898
- Modify doc for app_insights metricset to contain example of config. {pull}20185[20185]
- Add required option for `metrics` in app_insights. {pull}20406[20406]
- Groups same timestamp metric values to one event in the app_insights metricset. {pull}20403[20403]

*Packetbeat*
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/docs/modules/azure.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ metricbeat.modules:
period: 300s
application_id: ''
api_key: ''
metrics:
- id: ["requests/count", "requests/duration"]
----

[float]
Expand Down
3 changes: 2 additions & 1 deletion x-pack/metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ metricbeat.modules:
period: 300s
application_id: ''
api_key: ''

metrics:
- id: ["requests/count", "requests/duration"]

#--------------------------------- Beat Module ---------------------------------
- module: beat
Expand Down
3 changes: 2 additions & 1 deletion x-pack/metricbeat/module/azure/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@
period: 300s
application_id: ''
api_key: ''

metrics:
- id: ["requests/count", "requests/duration"]
2 changes: 2 additions & 0 deletions x-pack/metricbeat/module/azure/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@
# period: 300s
# application_id: ''
# api_key: ''
# metrics:
# - id: ["requests/count", "requests/duration"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Config struct {
ApplicationId string `config:"application_id" validate:"required"`
ApiKey string `config:"api_key" validate:"required"`
Period time.Duration `config:"period" validate:"nonzero,required"`
Metrics []Metric `config:"metrics"`
Metrics []Metric `config:"metrics" validate:"required"`
}

// Metric struct used for configuration options
Expand Down
2 changes: 2 additions & 0 deletions x-pack/metricbeat/modules.d/azure.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@
# period: 300s
# application_id: ''
# api_key: ''
# metrics:
# - id: ["requests/count", "requests/duration"]

0 comments on commit eb914d5

Please sign in to comment.