Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: PC-11745 Add primary objective sloctl support #83

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

natalialanga
Copy link
Contributor

Summary

Add primary objective sloctl support

Related changes

nobl9/nobl9-go#330
nobl9/terraform-provider-nobl9#202

@natalialanga natalialanga changed the title PC-11745 Add primary objective sloctl support feat: PC-11745 Add primary objective sloctl support Mar 20, 2024
@n9-machine-user n9-machine-user added enhancement New feature or request minor labels Mar 20, 2024
@lukasz-dobek lukasz-dobek self-requested a review March 21, 2024 13:12
@paulina-n9
Copy link
Contributor

lgtm

@natalialanga natalialanga enabled auto-merge (squash) March 29, 2024 12:59
@natalialanga natalialanga merged commit 3d67662 into main Mar 29, 2024
5 checks passed
@natalialanga natalialanga deleted the PC-11745-slo-primary-objective branch March 29, 2024 13:01
natalialanga added a commit to nobl9/terraform-provider-nobl9 that referenced this pull request Apr 8, 2024
## Release Notes

Expose new field 'primary' to highlight a specific objective in an SLO.

## Summary

Add primary objective terraform support

## Related changes

nobl9/nobl9-go#330
nobl9/sloctl#83

## Testing

Build a local provider with make install and use the sample .tf file for
testing.

Sample .tf file:

```
terraform {
  required_providers {
    nobl9 = {
      source  = "nobl9.com/nobl9/nobl9"
      version = "0.25.0"
    }
  }
}

// Fill using nobl9 auth configuration
provider "nobl9" {
  ingest_url       = ""
  okta_org_url     = ""
  okta_auth_server = ""
  client_id        = ""
  client_secret    = ""
}

resource "nobl9_slo" "this" {
  name             = "slo"
  service          = "service"
  budgeting_method = "Occurrences"
  project          = "project"

  time_window {
    unit       = "Day"
    count      = 30
    is_rolling = true
  }

  objective {
    name         = "obj-1"
    target       = 0.99
    value        = 2000
    op           = "gte"
    primary      = true

    raw_metric {
      query {
        prometheus {
          promql = "query"
        }
      }
    }
  }

  indicator {
    name = "test-prom-agent"
  }
}
```
BSski pushed a commit that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants