Skip to content

Commit

Permalink
metrics is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Jun 29, 2024
1 parent e660b51 commit 890d5ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Metadata struct {
SemConvVersion string `json:"sem_conv_version,omitempty" jsonschema_description:"OTel Semantic Conventions version that will be associated with the scraped metrics. This attribute should be set for metrics compliant with OTel Semantic Conventions."`
ResourceAttributes map[AttributeName]ResourceAttribute `json:"resource_attributes,omitempty" jsonschema_description:"map of resource attribute definitions with the key being the attribute name."`
Attributes map[AttributeName]Attribute `json:"attributes,omitempty" jsonschema_description:"map of attribute definitions with the key being the attribute name and value being described below."`
Metrics map[MetricName]Metric `json:"metrics" jsonschema_description:"map of metric names with the key being the metric name and valuem being described below."`
Metrics map[MetricName]Metric `json:"metrics,omitempty" jsonschema_description:"map of metric names with the key being the metric name and valuem being described below."`
Telemetry map[MetricName]Metric `json:"telemetry,omitempty" jsonschema_description:"map of metric names with the key being the metric name and valuem being described below."`
ScopeName string `json:"scope_name,omitempty"`
// ShortFolderName string `json:"-"`
Expand Down
3 changes: 1 addition & 2 deletions metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@
}
},
"required": [
"type",
"metrics"
"type"
],
"type": "object"
},
Expand Down

0 comments on commit 890d5ca

Please sign in to comment.