Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add azure module/monitor metricset #13196

Merged
merged 37 commits into from
Sep 23, 2019
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d5bbbc4
Progress commit
narph May 22, 2019
52f709e
Progress on azure module
narph Jun 12, 2019
774b609
Staging
narph Jun 19, 2019
cbf3f77
Progres on POC
narph Jun 24, 2019
bb47fd2
Work on client
narph Jun 24, 2019
d5936c3
Update event format, implement refresh interval
narph Jul 4, 2019
c2e79b7
Merge branch 'master' into azure-module
narph Aug 2, 2019
6dc4433
Work on importing dependencies
narph Aug 8, 2019
6a081f7
Fix houndbot notifications
narph Aug 8, 2019
b6514c5
Start work on unittests
narph Aug 14, 2019
45dde4d
Work on unittests
narph Aug 14, 2019
b257446
Work on unittests
narph Aug 14, 2019
9fdd3dd
Adding unittests
narph Aug 15, 2019
5b686b0
Fixing issues
narph Aug 20, 2019
1b32171
Generate fields
narph Aug 20, 2019
2bed2a2
Small changes
narph Aug 21, 2019
69bdb22
Merge branch 'master' into azure-module
narph Aug 21, 2019
c6b8e23
Work on removing double records
narph Aug 23, 2019
ddd3b27
Work on error handling and regenrate files
narph Aug 28, 2019
0f1b733
Rename system.yml
narph Aug 28, 2019
3e8662c
Working on build
narph Aug 28, 2019
7cfb9b9
Work on build
narph Aug 28, 2019
587a3f6
Fmt
narph Aug 29, 2019
c712eba
generate notice
narph Aug 29, 2019
5676fa9
Work on unittests
narph Sep 2, 2019
3b26aaf
Adding 2 new metricsets
narph Sep 16, 2019
dbba93a
Work on grouping metric values per event
narph Sep 17, 2019
1294bb2
Work on handling errors
narph Sep 17, 2019
426cfe8
Work on tests
narph Sep 18, 2019
0da8ac7
run fmt update
narph Sep 18, 2019
e746103
Merge branch 'master' into azure-module
narph Sep 18, 2019
6a075e3
Generate notice
narph Sep 18, 2019
a17d73e
Work on monitor service
narph Sep 18, 2019
d001e84
Work on failing test
narph Sep 19, 2019
e1f19f2
Wotk on test
narph Sep 19, 2019
bd47d97
Work on feedback
narph Sep 20, 2019
beac3e6
Work on event format
narph Sep 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ grouped in the following categories:
* <<exported-fields-aerospike>>
* <<exported-fields-apache>>
* <<exported-fields-aws>>
* <<exported-fields-azure>>
* <<exported-fields-beat-common>>
* <<exported-fields-beat>>
* <<exported-fields-ceph>>
Expand Down Expand Up @@ -2116,6 +2117,113 @@ type: keyword

--

[[exported-fields-azure]]
== azure fields

azure module



[float]
=== azure




[float]
=== monitor

monitor



[float]
=== resource

The resource specified



*`azure.monitor.resource.name`*::
+
--
The name of the resource


type: keyword

--

*`azure.monitor.resource.type`*::
+
--
The type of the resource


type: keyword

--

*`azure.monitor.resource.tags.*`*::
+
--
Azure resource tags.


type: object

--

*`azure.monitor.namespace`*::
+
--
The namespace selected


type: keyword

--

*`azure.monitor.resource_group`*::
+
--
The resource group


type: keyword

--

*`azure.monitor.subscriptionID`*::
+
--
The subscription ID


type: keyword

--

*`azure.monitor.metrics.*.*`*::
+
--
Metrics returned.


type: object

--

*`azure.monitor.dimensions.*`*::
+
--
Azure metric dimensions.


type: object

--

[[exported-fields-beat-common]]
== Beat fields

Expand Down
42 changes: 42 additions & 0 deletions metricbeat/docs/modules/azure.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
////
This file is generated! See scripts/mage/docs_collector.go
////

[[metricbeat-module-azure]]
[role="xpack"]
== azure module

beta[]

This is the azure module.



[float]
=== Example configuration

The azure module supports the standard configuration options that are described
in <<configuration-metricbeat>>. Here is an example configuration:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More than a big example it may be good to have smaller examples with more explanations in the docs. We may revisit docs in follow-ups in any case.


[source,yaml]
----
metricbeat.modules:
- module: azure
metricsets: ["monitor"]
enabled: true
period: 30s
client_id: '${AZURE_CLIENT_ID:""}'
client_secret: '${AZURE_CLIENT_SECRET:""}'
tenant_id: '${AZURE_TENANT_ID:""}'
subscription_id: '${AZURE_SUBSCRIPTION_ID:""}'
----

[float]
=== Metricsets

The following metricsets are available:

* <<metricbeat-metricset-azure-monitor,monitor>>

include::azure/monitor.asciidoc[]

24 changes: 24 additions & 0 deletions metricbeat/docs/modules/azure/monitor.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
////
This file is generated! See scripts/mage/docs_collector.go
////

[[metricbeat-metricset-azure-monitor]]
=== azure monitor metricset

beta[]

include::../../../../x-pack/metricbeat/module/azure/monitor/_meta/docs.asciidoc[]

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

==== Fields

For a description of each field in the metricset, see the
<<exported-fields-azure,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../../x-pack/metricbeat/module/azure/monitor/_meta/data.json[]
----
3 changes: 3 additions & 0 deletions metricbeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ This file is generated! See scripts/mage/docs_collector.go
|<<metricbeat-metricset-aws-s3_daily_storage,s3_daily_storage>> beta[]
|<<metricbeat-metricset-aws-s3_request,s3_request>> beta[]
|<<metricbeat-metricset-aws-sqs,sqs>> beta[]
|<<metricbeat-module-azure,azure>> beta[] |image:./images/icon-no.png[No prebuilt dashboards] |
.1+| .1+| |<<metricbeat-metricset-azure-monitor,monitor>> beta[]
|<<metricbeat-module-beat,Beat>> |image:./images/icon-no.png[No prebuilt dashboards] |
.2+| .2+| |<<metricbeat-metricset-beat-state,state>>
|<<metricbeat-metricset-beat-stats,stats>>
Expand Down Expand Up @@ -197,6 +199,7 @@ This file is generated! See scripts/mage/docs_collector.go
include::modules/aerospike.asciidoc[]
include::modules/apache.asciidoc[]
include::modules/aws.asciidoc[]
include::modules/azure.asciidoc[]
include::modules/beat.asciidoc[]
include::modules/ceph.asciidoc[]
include::modules/cockroachdb.asciidoc[]
Expand Down
24 changes: 24 additions & 0 deletions vendor/contrib.go.opencensus.io/exporter/ocagent/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading