{"id":467,"date":"2025-06-24T09:46:45","date_gmt":"2025-06-24T09:46:45","guid":{"rendered":"https:\/\/sreschool.com\/blog\/?p=467"},"modified":"2025-06-24T09:46:46","modified_gmt":"2025-06-24T09:46:46","slug":"%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide","status":"publish","type":"post","link":"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/","title":{"rendered":"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ud83d\udccc 1. Introduction &amp; Overview<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is SLIs as Code?<\/h3>\n\n\n\n<p><strong>SLIs as Code<\/strong> refers to the practice of defining and managing <strong>Service Level Indicators (SLIs)<\/strong> in a <strong>declarative, version-controlled, and automated way<\/strong>, similar to Infrastructure as Code (IaC). SLIs measure the <strong>performance, reliability, and correctness<\/strong> of systems from the <strong>user\u2019s perspective<\/strong>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Think of it as codifying your system\u2019s performance expectations and metrics using configuration files that can be audited, versioned, and tested.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">History &amp; Background<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Born from <strong>SRE (Site Reliability Engineering)<\/strong> practices at Google.<\/li>\n\n\n\n<li>Initially implemented as dashboards or documentation.<\/li>\n\n\n\n<li>With the rise of <strong>GitOps, IaC<\/strong>, and <strong>DevSecOps<\/strong>, SLI definitions have evolved to live in source code repositories.<\/li>\n\n\n\n<li>Modern platforms like <strong>Prometheus, OpenTelemetry, Datadog, New Relic<\/strong> now support SLI integrations via code.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Why It&#8217;s Relevant in DevSecOps<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Security-first mindset<\/strong>: Detect reliability &amp; performance regressions early.<\/li>\n\n\n\n<li><strong>Auditability &amp; Compliance<\/strong>: Code-based definitions are reviewable and traceable.<\/li>\n\n\n\n<li><strong>Automation<\/strong>: Integrate SLIs with CI\/CD pipelines and incident response tools.<\/li>\n\n\n\n<li><strong>Consistency<\/strong>: Reduce human error via codified logic and thresholds.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcda 2. Core Concepts &amp; Terminology<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Term<\/strong><\/th><th><strong>Definition<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>SLI (Service Level Indicator)<\/strong><\/td><td>A precise measurement of service behavior (e.g., request latency, error rate).<\/td><\/tr><tr><td><strong>SLO (Service Level Objective)<\/strong><\/td><td>A target value or threshold for an SLI (e.g., 99.9% availability).<\/td><\/tr><tr><td><strong>SLA (Service Level Agreement)<\/strong><\/td><td>A formal agreement based on SLOs, often with legal or financial implications.<\/td><\/tr><tr><td><strong>SLIs as Code<\/strong><\/td><td>A methodology to define, store, and deploy SLIs using code.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Integration with the DevSecOps Lifecycle<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Stage<\/strong><\/th><th><strong>SLI Role<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Plan<\/strong><\/td><td>Define service goals and performance indicators.<\/td><\/tr><tr><td><strong>Develop<\/strong><\/td><td>Write SLI definitions alongside app code.<\/td><\/tr><tr><td><strong>Build<\/strong><\/td><td>Validate SLI syntax\/config using CI tools.<\/td><\/tr><tr><td><strong>Test<\/strong><\/td><td>Simulate traffic to test thresholds and alerts.<\/td><\/tr><tr><td><strong>Release<\/strong><\/td><td>Deploy SLIs to monitoring systems.<\/td><\/tr><tr><td><strong>Operate<\/strong><\/td><td>Observe live SLIs and react to violations.<\/td><\/tr><tr><td><strong>Monitor<\/strong><\/td><td>Automate alerting and root cause analysis.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfd7\ufe0f 3. Architecture &amp; How It Works<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Components<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>SLI Definition Files<\/strong><br>YAML, JSON, or HCL files defining metrics, labels, queries, and thresholds.<\/li>\n\n\n\n<li><strong>Metrics Backend<\/strong><br>Systems like <strong>Prometheus<\/strong>, <strong>Datadog<\/strong>, or <strong>New Relic<\/strong> collect and store metrics.<\/li>\n\n\n\n<li><strong>Code Repositories<\/strong><br>Git-based storage for SLI files, enabling versioning and PR reviews.<\/li>\n\n\n\n<li><strong>CI\/CD Integrations<\/strong><br>Validate and deploy SLI definitions automatically.<\/li>\n\n\n\n<li><strong>SLI Evaluation Engine<\/strong><br>Tools like <strong>Nobl9<\/strong>, <strong>Sloth<\/strong>, or <strong>OpenSLO<\/strong> that read code and calculate SLI\/SLO status.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Architecture Diagram (Textual Description)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;Git Repository] --&gt; &#091;CI\/CD Tool (e.g., GitHub Actions)]\n                          |\n                          v\n                &#091;SLI Parsing Tool (e.g., Sloth)]\n                          |\n                          v\n                &#091;Monitoring Platform (e.g., Prometheus)]\n                          |\n                          v\n               &#091;Dashboards \/ Alert Manager \/ PagerDuty]\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Integration Points<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CI\/CD<\/strong>: Validate SLI syntax on pull request.<\/li>\n\n\n\n<li><strong>Monitoring<\/strong>: Prometheus or Datadog as data source.<\/li>\n\n\n\n<li><strong>Cloud<\/strong>: Terraform integration to define SLIs as part of IaC.<\/li>\n\n\n\n<li><strong>Security<\/strong>: Integrate alerting with SIEM\/SOAR tools for incident handling.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\ude80 4. Installation &amp; Getting Started<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Git and GitHub<\/li>\n\n\n\n<li>Prometheus installed or cloud monitoring (e.g., GCP Monitoring, Datadog)<\/li>\n\n\n\n<li>Go or Docker (for Sloth or Nobl9)<\/li>\n\n\n\n<li>Basic knowledge of YAML\/JSON<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-Step Guide using <strong>Sloth<\/strong> (Open Source)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Step 1: Install Sloth<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>go install github.com\/slok\/sloth\/cmd\/sloth@latest\n<\/code><\/pre>\n\n\n\n<p><em>or use Docker<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker pull ghcr.io\/slok\/sloth:latest\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Step 2: Define SLI in YAML<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>service: my-api-service\nlabels:\n  team: backend\nslos:\n  - name: \"High availability\"\n    objective: 99.9\n    sli:\n      events:\n        error_query: sum(rate(http_requests_total{job=\"api\",code=~\"5..\"}&#091;5m]))\n        total_query: sum(rate(http_requests_total{job=\"api\"}&#091;5m]))\n    alerting:\n      name: HighAvailability\n      page_alert:\n        threshold: 98.0\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Step 3: Generate Prometheus Rules<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sloth generate -i slo.yaml -o prometheus-rules.yaml\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Step 4: Deploy to Prometheus<\/h4>\n\n\n\n<p>Add the generated <code>prometheus-rules.yaml<\/code> to your Prometheus configuration directory and reload the config.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Step 5: Automate with GitHub Actions<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>name: SLI Check\n\non: &#091;push]\n\njobs:\n  validate:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v3\n      - name: Validate SLI\n        run: |\n          sloth generate -i slo.yaml -o output.yaml\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcbc 5. Real-World Use Cases<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>E-commerce Platform (Checkout API)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SLI<\/strong>: 99.95% availability for <code>\/checkout<\/code> endpoint<\/li>\n\n\n\n<li><strong>Benefit<\/strong>: Avoid downtime penalties during high traffic (Black Friday)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Banking App (Transaction latency)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SLI<\/strong>: &lt;500ms for 95% of requests<\/li>\n\n\n\n<li><strong>Security use<\/strong>: Detect delays caused by fraud-detection services<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Healthcare SaaS (Data pipeline integrity)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SLI<\/strong>: &lt;0.1% data processing failures<\/li>\n\n\n\n<li><strong>Benefit<\/strong>: Avoid HIPAA compliance issues<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Media Streaming Service (Buffer rate)<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SLI<\/strong>: Buffering rate &lt; 2% across 95th percentile<\/li>\n\n\n\n<li><strong>DevSecOps Focus<\/strong>: Optimize CDN and edge security rules<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 6. Benefits &amp; Limitations<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2714\ufe0f Key Advantages<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udd10 Secure, testable definitions<\/li>\n\n\n\n<li>\ud83d\udd01 Repeatability across environments<\/li>\n\n\n\n<li>\ud83d\udcdc Version-controlled and auditable<\/li>\n\n\n\n<li>\ud83d\udd14 Tight integration with alerting tools<\/li>\n\n\n\n<li>\ud83e\udd1d Alignment with DevSecOps shift-left mindset<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u274c Limitations<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Challenge<\/strong><\/th><th><strong>Details<\/strong><\/th><\/tr><\/thead><tbody><tr><td>Complex Syntax<\/td><td>YAML\/JSON can get verbose for nested metrics<\/td><\/tr><tr><td>Tooling Diversity<\/td><td>Different formats for Datadog vs Prometheus vs New Relic<\/td><\/tr><tr><td>Metrics Accuracy<\/td><td>Poorly defined SLIs lead to alert fatigue or blind spots<\/td><\/tr><tr><td>Adoption Resistance<\/td><td>Teams unfamiliar with SLO\/SLI culture may push back<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd10 7. Best Practices &amp; Recommendations<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 <strong>Store SLIs in version-controlled Git repositories<\/strong><\/li>\n\n\n\n<li>\ud83d\udd0d <strong>Review SLIs like code (PRs, reviews, changelogs)<\/strong><\/li>\n\n\n\n<li>\ud83d\udcca <strong>Use visual dashboards for SLI compliance tracking<\/strong><\/li>\n\n\n\n<li>\ud83d\udee1\ufe0f <strong>Integrate with security alerts (SIEM, PagerDuty)<\/strong><\/li>\n\n\n\n<li>\ud83d\udcc5 <strong>Audit regularly for SLA alignment<\/strong><\/li>\n\n\n\n<li>\ud83e\uddea <strong>Test SLIs in staging with load generators<\/strong><\/li>\n\n\n\n<li>\u26d3\ufe0f <strong>Use as part of release gates in CI\/CD<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd04 8. Comparison with Alternatives<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Method<\/strong><\/th><th><strong>SLIs as Code<\/strong><\/th><th><strong>Manual Monitoring<\/strong><\/th><th><strong>Dashboard-Only SLIs<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Auditability<\/strong><\/td><td>\u2705 High<\/td><td>\u274c Low<\/td><td>\u26a0\ufe0f Medium<\/td><\/tr><tr><td><strong>Automation Ready<\/strong><\/td><td>\u2705 Yes<\/td><td>\u274c No<\/td><td>\u26a0\ufe0f Partial<\/td><\/tr><tr><td><strong>CI\/CD Friendly<\/strong><\/td><td>\u2705 Yes<\/td><td>\u274c No<\/td><td>\u26a0\ufe0f No<\/td><\/tr><tr><td><strong>Security Compliant<\/strong><\/td><td>\u2705 Yes<\/td><td>\u274c No<\/td><td>\u26a0\ufe0f Manual effort<\/td><\/tr><tr><td><strong>Scaling with Teams<\/strong><\/td><td>\u2705 Easy<\/td><td>\u274c Difficult<\/td><td>\u26a0\ufe0f Medium<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">When to Choose SLIs as Code<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When <strong>compliance, security, and automation<\/strong> are priorities.<\/li>\n\n\n\n<li>When your org practices <strong>GitOps, IaC, or DevSecOps<\/strong>.<\/li>\n\n\n\n<li>When you need <strong>repeatable and testable monitoring standards<\/strong>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd1a 9. Conclusion<\/h2>\n\n\n\n<p><strong>SLIs as Code<\/strong> is a foundational practice in modern <strong>DevSecOps<\/strong> and <strong>SRE<\/strong> teams. It enforces <strong>measurable, automatable, and secure observability<\/strong> of services while aligning with best practices like version control, CI\/CD, and security integration.<\/p>\n\n\n\n<p>By shifting observability left, SLIs as Code bridges the gap between development, operations, and security \u2014 enabling resilient, compliant, and performance-optimized software delivery.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udccc 1. Introduction &amp; Overview What is SLIs as Code? SLIs as Code refers to the practice of defining and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sreschool.com\/blog\/\ud83e\udded-slis-as-code-in-devsecops-a-comprehensive-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School\" \/>\n<meta property=\"og:description\" content=\"\ud83d\udccc 1. Introduction &amp; Overview What is SLIs as Code? SLIs as Code refers to the practice of defining and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sreschool.com\/blog\/\ud83e\udded-slis-as-code-in-devsecops-a-comprehensive-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"SRE School\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-24T09:46:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-24T09:46:46+00:00\" \/>\n<meta name=\"author\" content=\"priteshgeek\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"priteshgeek\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/\",\"url\":\"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/\",\"name\":\"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School\",\"isPartOf\":{\"@id\":\"https:\/\/sreschool.com\/blog\/#website\"},\"datePublished\":\"2025-06-24T09:46:45+00:00\",\"dateModified\":\"2025-06-24T09:46:46+00:00\",\"author\":{\"@id\":\"https:\/\/sreschool.com\/blog\/#\/schema\/person\/6a53e3870889dd6a65b2e04b7bc3d7db\"},\"breadcrumb\":{\"@id\":\"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sreschool.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sreschool.com\/blog\/#website\",\"url\":\"https:\/\/sreschool.com\/blog\/\",\"name\":\"SRESchool\",\"description\":\"Master SRE. Build Resilient Systems. Lead the Future of Reliability\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sreschool.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sreschool.com\/blog\/#\/schema\/person\/6a53e3870889dd6a65b2e04b7bc3d7db\",\"name\":\"priteshgeek\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/sreschool.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"caption\":\"priteshgeek\"},\"url\":\"https:\/\/sreschool.com\/blog\/author\/priteshgeek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sreschool.com\/blog\/\ud83e\udded-slis-as-code-in-devsecops-a-comprehensive-guide\/","og_locale":"en_US","og_type":"article","og_title":"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School","og_description":"\ud83d\udccc 1. Introduction &amp; Overview What is SLIs as Code? SLIs as Code refers to the practice of defining and [&hellip;]","og_url":"https:\/\/sreschool.com\/blog\/\ud83e\udded-slis-as-code-in-devsecops-a-comprehensive-guide\/","og_site_name":"SRE School","article_published_time":"2025-06-24T09:46:45+00:00","article_modified_time":"2025-06-24T09:46:46+00:00","author":"priteshgeek","twitter_card":"summary_large_image","twitter_misc":{"Written by":"priteshgeek","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/","url":"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/","name":"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide - SRE School","isPartOf":{"@id":"https:\/\/sreschool.com\/blog\/#website"},"datePublished":"2025-06-24T09:46:45+00:00","dateModified":"2025-06-24T09:46:46+00:00","author":{"@id":"https:\/\/sreschool.com\/blog\/#\/schema\/person\/6a53e3870889dd6a65b2e04b7bc3d7db"},"breadcrumb":{"@id":"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sreschool.com\/blog\/%f0%9f%a7%ad-slis-as-code-in-devsecops-a-comprehensive-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sreschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\ud83e\udded SLIs as Code in DevSecOps \u2013 A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/sreschool.com\/blog\/#website","url":"https:\/\/sreschool.com\/blog\/","name":"SRESchool","description":"Master SRE. Build Resilient Systems. Lead the Future of Reliability","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sreschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Person","@id":"https:\/\/sreschool.com\/blog\/#\/schema\/person\/6a53e3870889dd6a65b2e04b7bc3d7db","name":"priteshgeek","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/sreschool.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","caption":"priteshgeek"},"url":"https:\/\/sreschool.com\/blog\/author\/priteshgeek\/"}]}},"_links":{"self":[{"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":1,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":468,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions\/468"}],"wp:attachment":[{"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sreschool.com\/blog\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}