Skip to content

joost-de-vries/prometheus-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generating Prometheus rule yaml with Deno and Typescript

An experiment to generate Prometheus recording rules with Deno and Typescript. Instead of with jSonnet.
See my write up.

Install Deno. And in Visual Code install the Deno plugin and Redhats yaml plugin.

Run with
deno run -A recordingRules.ts

Compile with
deno compile -A recordingRules.ts

Open the generated file validRule.yaml. The yaml plugin will validate it automatically as conforming to https://json.schemastore.org/prometheus.rules.json

Releases

No releases published

Packages

No packages published