Skip to content

[prometheus_input] Add missing SSL fields to sync it with the Prometheus package #14503

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

Merged
merged 3 commits into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions packages/prometheus_input/agent/input/input.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ metrics_filters.include:
{{#each metrics_filters.include}}
- {{this}}
{{/each}}
{{#if ssl.certificate_authorities}}
ssl.certificate_authorities:
{{#each ssl.certificate_authorities}}
- {{this}}
{{/each}}
{{#if bearer_token_file}}
bearer_token_file: {{bearer_token_file}}
{{/if}}
{{#if ssl}}
ssl: {{ssl}}
{{/if}}
data_stream:
dataset: {{data_stream.dataset}}
Expand Down
5 changes: 5 additions & 0 deletions packages/prometheus_input/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.9.0"
changes:
- description: Add SSL configuration options.
type: enhancement
link: https://github.com/elastic/integrations/pull/14503
- version: "0.8.0"
changes:
- description: Add support for defining Leader Election and Conditions
Expand Down
46 changes: 40 additions & 6 deletions packages/prometheus_input/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.2"
name: prometheus_input
title: "Prometheus Input"
version: "0.8.0"
version: "0.9.0"
description: "Collects metrics from Prometheus exporter."
type: input
categories:
Expand Down Expand Up @@ -70,11 +70,37 @@ policy_templates:
required: false
show_user: false
default: []
- name: ssl.certificate_authorities
type: text
title: SSL Certificate Authorities
description: SSL Certificate Authorities. See [documentation](https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-ssl.html#client-certificate-authorities) for details.
multi: true
- name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zdDARBgNVHQ4ECgQITzqhA5sO8O4wDQYJKoZIhvcNAQELBQADggEBAKR0
# gY/BM69S6BDyWp5dxcpmZ9FS783FBbdUXjVtTkQno+oYURDrhCdsfTLYtqUlP4J4
# CHoskP+MwJjRIoKhPVQMv14Q4VC2J9coYXnePhFjE+6MaZbTjq9WaekGrpKkMaQA
# iQt5b67jo7y63CZKIo9yBvs7sxODQzDn3wZwyux2vPegXSaTHR/rop/s/mPk3YTS
# hQprs/IVtPoWU4/TsDN3gIlrAYGbcs29CAt5q9MfzkMmKsuDkTZD0ry42VjxjAmk
# xw23l/k8RoD1wRWaDVbgpjwSzt+kl+vJE/ip2w3h69eEZ9wbo6scRO5lCO2JM4Pr
# 7RhLQyWn2u00L7/9Omw=
# -----END CERTIFICATE-----
description: i.e. certificate_authorities, supported_protocols, verification_mode, key, passphrase etc.
multi: false
required: false
show_user: false
- name: username
Expand Down Expand Up @@ -113,6 +139,14 @@ policy_templates:
multi: false
required: false
show_user: true
- name: bearer_token_file
type: text
title: 'HTTP config options: bearer_token_file'
description: If defined, the contents of the file will be read once at initialization and then the value will be used in an HTTP Authorization header.
multi: false
secret: false
required: false
show_user: false
- name: processors
type: yaml
title: Processors
Expand Down