Prometheus JSON to YAML
Converter
Convert JSON into a prometheus.yml configuration in seconds. Ideal for turning generated scrape and rule config into the YAML Prometheus expects. Free, instant, and browser-based.
How to Convert JSON to Prometheus YAML
Paste your config JSON
Drop in the JSON describing your global settings, scrape_configs, and rule files.
Get prometheus.yml
Valid Prometheus YAML appears instantly, with scrape jobs correctly structured.
Use with Prometheus
Copy or download as prometheus.yml and start Prometheus with --config.file.
Why Prometheus Uses YAML
Prometheus is configured through prometheus.yml, which defines global settings, scrape targets, and rule files in YAML.
Monitoring configs are often generated dynamically as JSON — from service discovery or templating tools. Converting to YAML produces a config file Prometheus can load directly.
Benefits for Monitoring Workflows
Config-Ready
Output is valid prometheus.yml you can load with --config.file, with scrape jobs intact.
Readable Targets
Scrape configs and relabeling rules are far clearer in YAML than in nested JSON.
Comment Your Config
Explain why a job uses a specific interval or relabel rule. YAML supports # comments; JSON does not.
Private Processing
Configs reference internal endpoints and tokens. Conversion is local to your browser, so nothing is uploaded.
Frequently Asked Questions
Will the YAML work as a Prometheus config?
Are scrape_configs preserved?
How are durations handled?
Why are some values quoted?
Is my monitoring config private?
Related Tools & Resources
- JSON to YAML Converter
General-purpose JSON to YAML conversion.
- YAML to JSON Converter
Reverse the conversion back to JSON.
- All Converters
Browse every JSON-to-YAML use case.
- Prometheus Configuration Documentation
Official documentation.