Skip to content

Commit

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

* config

* changelog

* generate

* regen

* mage fmt
  • Loading branch information
narph committed Aug 4, 2020
1 parent 3a9ce71 commit 496e3c9
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 @@ -303,6 +303,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- 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 496e3c9

Please sign in to comment.