Skip to content

Commit

Permalink
Mark prometheus exporter as experimental (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Mar 6, 2025
1 parent 6d17bbc commit ebb5dba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ meter_provider:
# Configure exporter.
exporter:
# Configure exporter to be prometheus.
prometheus:
# This type is in development and subject to breaking changes in minor versions.
prometheus/development:
# Configure host.
# If omitted or null, localhost is used.
host: localhost
Expand Down
6 changes: 3 additions & 3 deletions schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
"minProperties": 1,
"maxProperties": 1,
"properties": {
"prometheus": {
"$ref": "#/$defs/PrometheusMetricExporter"
"prometheus/development": {
"$ref": "#/$defs/ExperimentalPrometheusMetricExporter"
}
},
"patternProperties": {
Expand Down Expand Up @@ -181,7 +181,7 @@
"type": ["object", "null"],
"additionalProperties": false
},
"PrometheusMetricExporter": {
"ExperimentalPrometheusMetricExporter": {
"type": ["object", "null"],
"additionalProperties": false,
"properties": {
Expand Down
9 changes: 6 additions & 3 deletions schema/type_descriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@

- type: MetricExporter
property_descriptions:
prometheus: Configure exporter to be prometheus.
prometheus/development: >
Configure exporter to be prometheus.
This type is in development and subject to breaking changes in minor versions.
otlp_http: Configure exporter to be OTLP with HTTP transport.
otlp_grpc: Configure exporter to be OTLP with gRPC transport.
otlp_file/development: >
Expand Down Expand Up @@ -501,7 +504,7 @@
If omitted or null, false is used.
with_resource_constant_labels: Configure Prometheus Exporter to add resource attributes as metrics attributes.
path_patterns:
- .meter_provider.readers[].pull.exporter.prometheus
- .meter_provider.readers[].pull.exporter.prometheus/development
- type: PrometheusIncludeExclude
property_descriptions:
included: >
Expand All @@ -519,7 +522,7 @@
* If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
If omitted, .included resource attributes are included.
path_patterns:
- .meter_provider.readers[].pull.exporter.prometheus.with_resource_constant_labels
- .meter_provider.readers[].pull.exporter.prometheus/development.with_resource_constant_labels

- type: View
property_descriptions:
Expand Down

0 comments on commit ebb5dba

Please sign in to comment.