diff --git a/metricbeat/docs/modules/azure.asciidoc b/metricbeat/docs/modules/azure.asciidoc index 5565638a4367..d070e5a34000 100644 --- a/metricbeat/docs/modules/azure.asciidoc +++ b/metricbeat/docs/modules/azure.asciidoc @@ -17,6 +17,8 @@ include::{libbeat-dir}/shared/integration-link.asciidoc[] :modulename!: +WARNING: This module is not available in FIPS-capable Metricbeat. + The Azure Monitor feature collects and aggregates logs and metrics from a variety of sources into a common data platform where it can be used for analysis, visualization, and alerting. @@ -112,7 +114,7 @@ Users can also use this in case of a Hybrid Cloud model, where one may define th `enable_batch_api` :: _boolean_ Optional, by default is set to False. Set this to True when facing scalability issues. When configured, the azure batch api will be used -to fetch metrics of multiple resources in one api call. +to fetch metrics of multiple resources in one api call. Currently supported metricsets are monitor, container_registry, container_instance, container_service, compute_vm, compute_vm_scaleset, database_account and storage. [float] diff --git a/x-pack/metricbeat/module/azure/_meta/docs.asciidoc b/x-pack/metricbeat/module/azure/_meta/docs.asciidoc index 6f45f6304644..9cb9672492c3 100644 --- a/x-pack/metricbeat/module/azure/_meta/docs.asciidoc +++ b/x-pack/metricbeat/module/azure/_meta/docs.asciidoc @@ -5,6 +5,8 @@ include::{libbeat-dir}/shared/integration-link.asciidoc[] :modulename!: +WARNING: This module is not available in FIPS-capable Metricbeat. + The Azure Monitor feature collects and aggregates logs and metrics from a variety of sources into a common data platform where it can be used for analysis, visualization, and alerting. @@ -100,7 +102,7 @@ Users can also use this in case of a Hybrid Cloud model, where one may define th `enable_batch_api` :: _boolean_ Optional, by default is set to False. Set this to True when facing scalability issues. When configured, the azure batch api will be used -to fetch metrics of multiple resources in one api call. +to fetch metrics of multiple resources in one api call. Currently supported metricsets are monitor, container_registry, container_instance, container_service, compute_vm, compute_vm_scaleset, database_account and storage. [float] diff --git a/x-pack/metricbeat/module/azure/add_metadata.go b/x-pack/metricbeat/module/azure/add_metadata.go index 2e0a3361e8be..1837325a2d55 100644 --- a/x-pack/metricbeat/module/azure/add_metadata.go +++ b/x-pack/metricbeat/module/azure/add_metadata.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/app_insights.go b/x-pack/metricbeat/module/azure/app_insights/app_insights.go index 637251be54fe..110ac19976fe 100644 --- a/x-pack/metricbeat/module/azure/app_insights/app_insights.go +++ b/x-pack/metricbeat/module/azure/app_insights/app_insights.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/app_insights_integration_test.go b/x-pack/metricbeat/module/azure/app_insights/app_insights_integration_test.go index 1fe542ca46db..c88b723c41eb 100644 --- a/x-pack/metricbeat/module/azure/app_insights/app_insights_integration_test.go +++ b/x-pack/metricbeat/module/azure/app_insights/app_insights_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package app_insights diff --git a/x-pack/metricbeat/module/azure/app_insights/client.go b/x-pack/metricbeat/module/azure/app_insights/client.go index 75e931b71321..b85908d99f9e 100644 --- a/x-pack/metricbeat/module/azure/app_insights/client.go +++ b/x-pack/metricbeat/module/azure/app_insights/client.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/client_test.go b/x-pack/metricbeat/module/azure/app_insights/client_test.go index 4763c28da201..65ff62f96d3f 100644 --- a/x-pack/metricbeat/module/azure/app_insights/client_test.go +++ b/x-pack/metricbeat/module/azure/app_insights/client_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/data.go b/x-pack/metricbeat/module/azure/app_insights/data.go index 4c13f752484d..7eb545ea9561 100644 --- a/x-pack/metricbeat/module/azure/app_insights/data.go +++ b/x-pack/metricbeat/module/azure/app_insights/data.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/data_test.go b/x-pack/metricbeat/module/azure/app_insights/data_test.go index 63fcc71c1a1a..d596fb5104a5 100644 --- a/x-pack/metricbeat/module/azure/app_insights/data_test.go +++ b/x-pack/metricbeat/module/azure/app_insights/data_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/doc.go b/x-pack/metricbeat/module/azure/app_insights/doc.go new file mode 100644 index 000000000000..02db91a05958 --- /dev/null +++ b/x-pack/metricbeat/module/azure/app_insights/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package app_insights is for the app_insights metricset of the Azure module. +package app_insights diff --git a/x-pack/metricbeat/module/azure/app_insights/mock_service.go b/x-pack/metricbeat/module/azure/app_insights/mock_service.go index 3a3b201a5ab9..89e9eb3a6423 100644 --- a/x-pack/metricbeat/module/azure/app_insights/mock_service.go +++ b/x-pack/metricbeat/module/azure/app_insights/mock_service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_insights/service.go b/x-pack/metricbeat/module/azure/app_insights/service.go index aa53e334489a..52d7cd87ff37 100644 --- a/x-pack/metricbeat/module/azure/app_insights/service.go +++ b/x-pack/metricbeat/module/azure/app_insights/service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_insights import ( diff --git a/x-pack/metricbeat/module/azure/app_state/app_state_integration_test.go b/x-pack/metricbeat/module/azure/app_state/app_state_integration_test.go index f812e0f9fdba..a2a7179d9d2f 100644 --- a/x-pack/metricbeat/module/azure/app_state/app_state_integration_test.go +++ b/x-pack/metricbeat/module/azure/app_state/app_state_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package app_state diff --git a/x-pack/metricbeat/module/azure/app_state/app_state_test.go b/x-pack/metricbeat/module/azure/app_state/app_state_test.go index a8dbab880812..8017b579d803 100644 --- a/x-pack/metricbeat/module/azure/app_state/app_state_test.go +++ b/x-pack/metricbeat/module/azure/app_state/app_state_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package app_state import ( diff --git a/x-pack/metricbeat/module/azure/app_state/doc.go b/x-pack/metricbeat/module/azure/app_state/doc.go new file mode 100644 index 000000000000..b5825019f416 --- /dev/null +++ b/x-pack/metricbeat/module/azure/app_state/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package app_state is for the app_state metricset of the Azure module. +package app_state diff --git a/x-pack/metricbeat/module/azure/azure.go b/x-pack/metricbeat/module/azure/azure.go index 59b69e86431b..570470c2b936 100644 --- a/x-pack/metricbeat/module/azure/azure.go +++ b/x-pack/metricbeat/module/azure/azure.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/azure_test.go b/x-pack/metricbeat/module/azure/azure_test.go index 24a3d99c0e11..12721cb0981f 100644 --- a/x-pack/metricbeat/module/azure/azure_test.go +++ b/x-pack/metricbeat/module/azure/azure_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/billing/billing.go b/x-pack/metricbeat/module/azure/billing/billing.go index 4777df5f2175..8de7bfc3fdbc 100644 --- a/x-pack/metricbeat/module/azure/billing/billing.go +++ b/x-pack/metricbeat/module/azure/billing/billing.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/billing_integration_test.go b/x-pack/metricbeat/module/azure/billing/billing_integration_test.go index aee32f78def8..74835815e300 100644 --- a/x-pack/metricbeat/module/azure/billing/billing_integration_test.go +++ b/x-pack/metricbeat/module/azure/billing/billing_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package billing diff --git a/x-pack/metricbeat/module/azure/billing/billing_test.go b/x-pack/metricbeat/module/azure/billing/billing_test.go index e8dc95119b41..24ad87ca35ff 100644 --- a/x-pack/metricbeat/module/azure/billing/billing_test.go +++ b/x-pack/metricbeat/module/azure/billing/billing_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/client.go b/x-pack/metricbeat/module/azure/billing/client.go index b15463e39d2c..3508ae609f09 100644 --- a/x-pack/metricbeat/module/azure/billing/client.go +++ b/x-pack/metricbeat/module/azure/billing/client.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/client_test.go b/x-pack/metricbeat/module/azure/billing/client_test.go index dd750dfa08ab..b617c23f906a 100644 --- a/x-pack/metricbeat/module/azure/billing/client_test.go +++ b/x-pack/metricbeat/module/azure/billing/client_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/data.go b/x-pack/metricbeat/module/azure/billing/data.go index bec33fcf185b..03f9a56b9738 100644 --- a/x-pack/metricbeat/module/azure/billing/data.go +++ b/x-pack/metricbeat/module/azure/billing/data.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/data_test.go b/x-pack/metricbeat/module/azure/billing/data_test.go index bf800821f1c8..a333892842e0 100644 --- a/x-pack/metricbeat/module/azure/billing/data_test.go +++ b/x-pack/metricbeat/module/azure/billing/data_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/doc.go b/x-pack/metricbeat/module/azure/billing/doc.go new file mode 100644 index 000000000000..1ebfb64d981c --- /dev/null +++ b/x-pack/metricbeat/module/azure/billing/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package billing is for the billing metricset of the Azure module. +package billing diff --git a/x-pack/metricbeat/module/azure/billing/mock_service.go b/x-pack/metricbeat/module/azure/billing/mock_service.go index 6e9cb6688608..9cd534873a28 100644 --- a/x-pack/metricbeat/module/azure/billing/mock_service.go +++ b/x-pack/metricbeat/module/azure/billing/mock_service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/billing/service.go b/x-pack/metricbeat/module/azure/billing/service.go index 2f09321efbac..fdb625e61726 100644 --- a/x-pack/metricbeat/module/azure/billing/service.go +++ b/x-pack/metricbeat/module/azure/billing/service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package billing import ( diff --git a/x-pack/metricbeat/module/azure/client.go b/x-pack/metricbeat/module/azure/client.go index cc0ba981a1b8..55f0d7a1bb2b 100644 --- a/x-pack/metricbeat/module/azure/client.go +++ b/x-pack/metricbeat/module/azure/client.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/client_batch.go b/x-pack/metricbeat/module/azure/client_batch.go index 7e1cab6bb817..c305eeadf344 100644 --- a/x-pack/metricbeat/module/azure/client_batch.go +++ b/x-pack/metricbeat/module/azure/client_batch.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/client_batch_test.go b/x-pack/metricbeat/module/azure/client_batch_test.go index 4ab5dcaeec55..2aa4f3ba67fd 100644 --- a/x-pack/metricbeat/module/azure/client_batch_test.go +++ b/x-pack/metricbeat/module/azure/client_batch_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/client_test.go b/x-pack/metricbeat/module/azure/client_test.go index c23326ac82b7..8df83a2ea3b4 100644 --- a/x-pack/metricbeat/module/azure/client_test.go +++ b/x-pack/metricbeat/module/azure/client_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/client_utils.go b/x-pack/metricbeat/module/azure/client_utils.go index e2de62944dff..1d081189e978 100644 --- a/x-pack/metricbeat/module/azure/client_utils.go +++ b/x-pack/metricbeat/module/azure/client_utils.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/client_utils_test.go b/x-pack/metricbeat/module/azure/client_utils_test.go index 40fe2da3bdfa..936bbbdbfd19 100644 --- a/x-pack/metricbeat/module/azure/client_utils_test.go +++ b/x-pack/metricbeat/module/azure/client_utils_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/compute_vm/compute_vm_integration_test.go b/x-pack/metricbeat/module/azure/compute_vm/compute_vm_integration_test.go index b6439fbd7e4a..532bb43c30f6 100644 --- a/x-pack/metricbeat/module/azure/compute_vm/compute_vm_integration_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm/compute_vm_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package compute_vm diff --git a/x-pack/metricbeat/module/azure/compute_vm/compute_vm_test.go b/x-pack/metricbeat/module/azure/compute_vm/compute_vm_test.go index 5c456aab8618..01a4a56ad604 100644 --- a/x-pack/metricbeat/module/azure/compute_vm/compute_vm_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm/compute_vm_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package compute_vm import ( diff --git a/x-pack/metricbeat/module/azure/compute_vm/doc.go b/x-pack/metricbeat/module/azure/compute_vm/doc.go new file mode 100644 index 000000000000..c22684758216 --- /dev/null +++ b/x-pack/metricbeat/module/azure/compute_vm/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package compute_vm is for the compute_vm metricset of the Azure module. +package compute_vm diff --git a/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_integration_test.go b/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_integration_test.go index dbcdd809820d..d928b15b88e7 100644 --- a/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_integration_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package compute_vm_scaleset diff --git a/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_test.go b/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_test.go index 2c5c7f04c8fb..80d13a377fab 100644 --- a/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm_scaleset/compute_vm_scaleset_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package compute_vm_scaleset import ( diff --git a/x-pack/metricbeat/module/azure/compute_vm_scaleset/doc.go b/x-pack/metricbeat/module/azure/compute_vm_scaleset/doc.go new file mode 100644 index 000000000000..a0728a282d6b --- /dev/null +++ b/x-pack/metricbeat/module/azure/compute_vm_scaleset/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package compute_vm_scaleset is for the compute_vm_scaleset metricset of the Azure module. +package compute_vm_scaleset diff --git a/x-pack/metricbeat/module/azure/config.go b/x-pack/metricbeat/module/azure/config.go index 85348418bc98..cf13422986e6 100644 --- a/x-pack/metricbeat/module/azure/config.go +++ b/x-pack/metricbeat/module/azure/config.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/container_instance/container_instance_integration_test.go b/x-pack/metricbeat/module/azure/container_instance/container_instance_integration_test.go index c989e929e14d..9aef7a7086a7 100644 --- a/x-pack/metricbeat/module/azure/container_instance/container_instance_integration_test.go +++ b/x-pack/metricbeat/module/azure/container_instance/container_instance_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package container_instance diff --git a/x-pack/metricbeat/module/azure/container_instance/container_instance_test.go b/x-pack/metricbeat/module/azure/container_instance/container_instance_test.go index 3b91ef661662..f404e0da43fd 100644 --- a/x-pack/metricbeat/module/azure/container_instance/container_instance_test.go +++ b/x-pack/metricbeat/module/azure/container_instance/container_instance_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package container_instance import ( diff --git a/x-pack/metricbeat/module/azure/container_instance/doc.go b/x-pack/metricbeat/module/azure/container_instance/doc.go new file mode 100644 index 000000000000..99b263bd6c98 --- /dev/null +++ b/x-pack/metricbeat/module/azure/container_instance/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package container_instance is for the container_instance metricset of the Azure module. +package container_instance diff --git a/x-pack/metricbeat/module/azure/container_registry/container_registry_integration_test.go b/x-pack/metricbeat/module/azure/container_registry/container_registry_integration_test.go index fb6e30ce022c..72ef8d773e37 100644 --- a/x-pack/metricbeat/module/azure/container_registry/container_registry_integration_test.go +++ b/x-pack/metricbeat/module/azure/container_registry/container_registry_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package container_registry diff --git a/x-pack/metricbeat/module/azure/container_registry/container_registry_test.go b/x-pack/metricbeat/module/azure/container_registry/container_registry_test.go index 6c94aab4345f..91acc4d19549 100644 --- a/x-pack/metricbeat/module/azure/container_registry/container_registry_test.go +++ b/x-pack/metricbeat/module/azure/container_registry/container_registry_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package container_registry import ( diff --git a/x-pack/metricbeat/module/azure/container_registry/doc.go b/x-pack/metricbeat/module/azure/container_registry/doc.go new file mode 100644 index 000000000000..965d51e2d94a --- /dev/null +++ b/x-pack/metricbeat/module/azure/container_registry/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package container_registry is for the container_registry metricset of the Azure module. +package container_registry diff --git a/x-pack/metricbeat/module/azure/container_service/container_service_integration_test.go b/x-pack/metricbeat/module/azure/container_service/container_service_integration_test.go index fba7c2cc9e01..6cbf09be10f6 100644 --- a/x-pack/metricbeat/module/azure/container_service/container_service_integration_test.go +++ b/x-pack/metricbeat/module/azure/container_service/container_service_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package container_service diff --git a/x-pack/metricbeat/module/azure/container_service/container_service_test.go b/x-pack/metricbeat/module/azure/container_service/container_service_test.go index 33b9513348fc..4aabd1afdd1f 100644 --- a/x-pack/metricbeat/module/azure/container_service/container_service_test.go +++ b/x-pack/metricbeat/module/azure/container_service/container_service_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package container_service import ( diff --git a/x-pack/metricbeat/module/azure/container_service/doc.go b/x-pack/metricbeat/module/azure/container_service/doc.go new file mode 100644 index 000000000000..ad853581ba16 --- /dev/null +++ b/x-pack/metricbeat/module/azure/container_service/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package container_service is for the container_service metricset of the Azure module. +package container_service diff --git a/x-pack/metricbeat/module/azure/data.go b/x-pack/metricbeat/module/azure/data.go index 2280a336d319..269c28d2cd1d 100644 --- a/x-pack/metricbeat/module/azure/data.go +++ b/x-pack/metricbeat/module/azure/data.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/data_test.go b/x-pack/metricbeat/module/azure/data_test.go index 1519f78982d2..40d94bd01397 100644 --- a/x-pack/metricbeat/module/azure/data_test.go +++ b/x-pack/metricbeat/module/azure/data_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/database_account/database_account_integration_test.go b/x-pack/metricbeat/module/azure/database_account/database_account_integration_test.go index 8629032884be..dfa270d2065d 100644 --- a/x-pack/metricbeat/module/azure/database_account/database_account_integration_test.go +++ b/x-pack/metricbeat/module/azure/database_account/database_account_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package database_account diff --git a/x-pack/metricbeat/module/azure/database_account/database_account_test.go b/x-pack/metricbeat/module/azure/database_account/database_account_test.go index 0cc4f5c7ddc3..7b13be1316c9 100644 --- a/x-pack/metricbeat/module/azure/database_account/database_account_test.go +++ b/x-pack/metricbeat/module/azure/database_account/database_account_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package database_account import ( diff --git a/x-pack/metricbeat/module/azure/database_account/doc.go b/x-pack/metricbeat/module/azure/database_account/doc.go new file mode 100644 index 000000000000..ce084a40db4c --- /dev/null +++ b/x-pack/metricbeat/module/azure/database_account/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package database_account is for the database_account metricset of the Azure module. +package database_account diff --git a/x-pack/metricbeat/module/azure/doc.go b/x-pack/metricbeat/module/azure/doc.go index 28e4a680ec1c..e9f03dbc4d20 100644 --- a/x-pack/metricbeat/module/azure/doc.go +++ b/x-pack/metricbeat/module/azure/doc.go @@ -2,5 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + // Package azure is a Metricbeat module that contains MetricSets. package azure diff --git a/x-pack/metricbeat/module/azure/metric_registry.go b/x-pack/metricbeat/module/azure/metric_registry.go index c127701c996e..e3c78f33381d 100644 --- a/x-pack/metricbeat/module/azure/metric_registry.go +++ b/x-pack/metricbeat/module/azure/metric_registry.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/metric_registry_test.go b/x-pack/metricbeat/module/azure/metric_registry_test.go index 63984aa6b59e..e2666aae05a4 100644 --- a/x-pack/metricbeat/module/azure/metric_registry_test.go +++ b/x-pack/metricbeat/module/azure/metric_registry_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/mock_service.go b/x-pack/metricbeat/module/azure/mock_service.go index 9f9c40142b39..b86231a9c762 100644 --- a/x-pack/metricbeat/module/azure/mock_service.go +++ b/x-pack/metricbeat/module/azure/mock_service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/monitor/client_helper.go b/x-pack/metricbeat/module/azure/monitor/client_helper.go index 4413cc6e692e..435ff733e168 100644 --- a/x-pack/metricbeat/module/azure/monitor/client_helper.go +++ b/x-pack/metricbeat/module/azure/monitor/client_helper.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent.go b/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent.go index c026a26a0b3d..9048e38d1ee4 100644 --- a/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent.go +++ b/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent_test.go b/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent_test.go index dc4e1433ca41..c6dcaa6ccf1f 100644 --- a/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent_test.go +++ b/x-pack/metricbeat/module/azure/monitor/client_helper_concurrent_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor/client_helper_test.go b/x-pack/metricbeat/module/azure/monitor/client_helper_test.go index 782d941166bd..392c1870adf5 100644 --- a/x-pack/metricbeat/module/azure/monitor/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/monitor/client_helper_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor/doc.go b/x-pack/metricbeat/module/azure/monitor/doc.go new file mode 100644 index 000000000000..8db90e404d69 --- /dev/null +++ b/x-pack/metricbeat/module/azure/monitor/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package monitor is for the monitor metricset of the Azure module. +package monitor diff --git a/x-pack/metricbeat/module/azure/monitor/monitor.go b/x-pack/metricbeat/module/azure/monitor/monitor.go index bffc08286351..302ea5f347cd 100644 --- a/x-pack/metricbeat/module/azure/monitor/monitor.go +++ b/x-pack/metricbeat/module/azure/monitor/monitor.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor/monitor_integration_test.go b/x-pack/metricbeat/module/azure/monitor/monitor_integration_test.go index 0edcd3d104e0..c11e64d1a079 100644 --- a/x-pack/metricbeat/module/azure/monitor/monitor_integration_test.go +++ b/x-pack/metricbeat/module/azure/monitor/monitor_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package monitor diff --git a/x-pack/metricbeat/module/azure/monitor/monitor_test.go b/x-pack/metricbeat/module/azure/monitor/monitor_test.go index d97e4f00bcc9..7f39ddcd8c41 100644 --- a/x-pack/metricbeat/module/azure/monitor/monitor_test.go +++ b/x-pack/metricbeat/module/azure/monitor/monitor_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package monitor import ( diff --git a/x-pack/metricbeat/module/azure/monitor_service.go b/x-pack/metricbeat/module/azure/monitor_service.go index 907dcc63d0e4..93f7e4dd1b6e 100644 --- a/x-pack/metricbeat/module/azure/monitor_service.go +++ b/x-pack/metricbeat/module/azure/monitor_service.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/monitor_service_test.go b/x-pack/metricbeat/module/azure/monitor_service_test.go index 7855f554e1e4..3f6af077870a 100644 --- a/x-pack/metricbeat/module/azure/monitor_service_test.go +++ b/x-pack/metricbeat/module/azure/monitor_service_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/resources.go b/x-pack/metricbeat/module/azure/resources.go index dde516753160..473c5337d60a 100644 --- a/x-pack/metricbeat/module/azure/resources.go +++ b/x-pack/metricbeat/module/azure/resources.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/service_interface.go b/x-pack/metricbeat/module/azure/service_interface.go index 4d007a7ecf97..9f9baf9255c2 100644 --- a/x-pack/metricbeat/module/azure/service_interface.go +++ b/x-pack/metricbeat/module/azure/service_interface.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package azure import ( diff --git a/x-pack/metricbeat/module/azure/storage/client_helper.go b/x-pack/metricbeat/module/azure/storage/client_helper.go index e60b9472a57a..f6754da430bb 100644 --- a/x-pack/metricbeat/module/azure/storage/client_helper.go +++ b/x-pack/metricbeat/module/azure/storage/client_helper.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/storage/client_helper_concurrent.go b/x-pack/metricbeat/module/azure/storage/client_helper_concurrent.go index ac09be2f2459..fc18b2397f69 100644 --- a/x-pack/metricbeat/module/azure/storage/client_helper_concurrent.go +++ b/x-pack/metricbeat/module/azure/storage/client_helper_concurrent.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/storage/client_helper_concurrent_test.go b/x-pack/metricbeat/module/azure/storage/client_helper_concurrent_test.go index c84cf556c86e..4ba4ddddcfe9 100644 --- a/x-pack/metricbeat/module/azure/storage/client_helper_concurrent_test.go +++ b/x-pack/metricbeat/module/azure/storage/client_helper_concurrent_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/storage/client_helper_test.go b/x-pack/metricbeat/module/azure/storage/client_helper_test.go index 14121c3a0b32..bde1b9e45775 100644 --- a/x-pack/metricbeat/module/azure/storage/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/storage/client_helper_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/storage/doc.go b/x-pack/metricbeat/module/azure/storage/doc.go new file mode 100644 index 000000000000..ea21e16f60d4 --- /dev/null +++ b/x-pack/metricbeat/module/azure/storage/doc.go @@ -0,0 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// Package storage is for the storage metricset of the Azure module. +package storage diff --git a/x-pack/metricbeat/module/azure/storage/storage.go b/x-pack/metricbeat/module/azure/storage/storage.go index 501c91ba885a..ca2f2bd09c9f 100644 --- a/x-pack/metricbeat/module/azure/storage/storage.go +++ b/x-pack/metricbeat/module/azure/storage/storage.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/storage/storage_integration_test.go b/x-pack/metricbeat/module/azure/storage/storage_integration_test.go index cb2839ef1b51..a74abe5934de 100644 --- a/x-pack/metricbeat/module/azure/storage/storage_integration_test.go +++ b/x-pack/metricbeat/module/azure/storage/storage_integration_test.go @@ -2,7 +2,7 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. -//go:build integration && azure +//go:build !requirefips && integration && azure package storage diff --git a/x-pack/metricbeat/module/azure/storage/storage_test.go b/x-pack/metricbeat/module/azure/storage/storage_test.go index 092dafbaecbc..0c232317e928 100644 --- a/x-pack/metricbeat/module/azure/storage/storage_test.go +++ b/x-pack/metricbeat/module/azure/storage/storage_test.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package storage import ( diff --git a/x-pack/metricbeat/module/azure/test/integration.go b/x-pack/metricbeat/module/azure/test/integration.go index 39e8402110c1..f4919a9bb19a 100644 --- a/x-pack/metricbeat/module/azure/test/integration.go +++ b/x-pack/metricbeat/module/azure/test/integration.go @@ -2,6 +2,8 @@ // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. +//go:build !requirefips + package test import (