Skip to content
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
8 changes: 8 additions & 0 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ meter_provider:
without_type_suffix: false
# Configure Prometheus Exporter to produce metrics without a scope info metric.
without_scope_info: false
# Configure Prometheus Exporter to add resource attributes as metrics attributes.
with_resource_constant_labels:
# Configure resource attributes to be included, in this example attributes starting with service.
included:
- "service*"
# Configure resource attributes to be excluded, in this example attribute service.attr1.
excluded:
- "service.attr1"
# Configure a periodic metric reader.
- periodic:
# Configure delay interval (in milliseconds) between start of two consecutive exports.
Expand Down
18 changes: 18 additions & 0 deletions schema/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
}
}
},
"IncludeExclude": {
"type": "object",
"additionalProperties": false,
"properties": {
"included": {
"type": "array",
"items": {
"type": "string"
}
},
"excluded": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Otlp": {
"type": "object",
"additionalProperties": false,
Expand Down
3 changes: 3 additions & 0 deletions schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
},
"without_scope_info": {
"type": "boolean"
},
"with_resource_constant_labels": {
"$ref": "common.json#/$defs/IncludeExclude"
}
}
},
Expand Down