diff --git a/packages/nginx/changelog.yml b/packages/nginx/changelog.yml index 8d333fd8f03..96a009f02a8 100644 --- a/packages/nginx/changelog.yml +++ b/packages/nginx/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "2.4.0" + changes: + - description: Add custom configuration support for stubstatus data stream. + type: enhancement + link: https://github.com/elastic/integrations/pull/12865 - version: "2.3.2" changes: - description: Remove unused agent files. diff --git a/packages/nginx/data_stream/stubstatus/agent/stream/stream.yml.hbs b/packages/nginx/data_stream/stubstatus/agent/stream/stream.yml.hbs index 1c1d1ada170..399de37392b 100644 --- a/packages/nginx/data_stream/stubstatus/agent/stream/stream.yml.hbs +++ b/packages/nginx/data_stream/stubstatus/agent/stream/stream.yml.hbs @@ -15,3 +15,6 @@ server_status_path: {{server_status_path}} processors: {{processors}} {{/if}} +{{#if condition}} +condition: {{ condition }} +{{/if}} diff --git a/packages/nginx/data_stream/stubstatus/manifest.yml b/packages/nginx/data_stream/stubstatus/manifest.yml index 5ff711abbbd..4cf97911476 100644 --- a/packages/nginx/data_stream/stubstatus/manifest.yml +++ b/packages/nginx/data_stream/stubstatus/manifest.yml @@ -33,6 +33,16 @@ streams: show_user: false description: > Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details. + - name: condition + title: Condition + type: text + multi: false + required: false + show_user: false + description: > + Condition to filter when to apply this datastream + Example: "${kubernetes.labels.app} == 'ingress-nginx'" + Now you can use http://${kubernetes.pod.ip} as hosts title: Nginx stub status metrics description: Collect Nginx stub status metrics elasticsearch: diff --git a/packages/nginx/manifest.yml b/packages/nginx/manifest.yml index be0b72ba093..479ad263d04 100644 --- a/packages/nginx/manifest.yml +++ b/packages/nginx/manifest.yml @@ -1,7 +1,7 @@ format_version: "3.0.2" name: nginx title: Nginx -version: "2.3.2" +version: "2.4.0" description: Collect logs and metrics from Nginx HTTP servers with Elastic Agent. type: integration categories: