Closed
Description
Proposal
Right now, Prometheus only supports marshaling via YAML through the following interfaces:
yaml.Unmarshaler
yaml.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.Marshaler
json.Unmarshaler
Metadata
Metadata
Assignees
Labels
No labels