-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Description
Proposal
Right now, Prometheus only supports marshaling via YAML through the following interfaces:
yaml.Unmarshaleryaml.Marshaler
This causes an issue for a user trying to serialize a scrape config to JSON as we try to do in the OpenTelemetry world here. Right now we have to serialize to YAML first, and then serialize that to JSON. Would it be welcome to add methods to prometheus scrape config fields (and their sub-fields) to adhere to the following interface
json.Marshalerjson.Unmarshaler
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels