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

Recording rules new framework #174

Merged
merged 9 commits into from
Nov 21, 2023
Merged

Recording rules new framework #174

merged 9 commits into from
Nov 21, 2023

Conversation

OrNovo
Copy link
Contributor

@OrNovo OrNovo commented Nov 20, 2023

e.g. -

resource "coralogix_recording_rules_groups_set" recording_rules_groups_set_explicit {
  name   = "Name"
  groups = [
    {
      name     = "Foo"
      interval = 180
      limit   = 100
      rules    = [
        {
          record = "ts3db_live_ingester_write_latency:3m"
          expr   = "sum(rate(ts3db_live_ingester_write_latency_seconds_count{CX_LEVEL=\"staging\",pod=~\"ts3db-live-ingester.*\"}[2m])) by (pod)"
        },
        {
          record = "job:http_requests_total:sum"
          expr   = "sum(rate(http_requests_total[5m])) by (job)"
        },
      ]
    },
    {
      name     = "Bar"
      interval = 180
      limit   = 100
      rules    = [
        {
          record = "ts3db_live_ingester_write_latency:3m"
          expr   = "sum(rate(ts3db_live_ingester_write_latency_seconds_count{CX_LEVEL=\"staging\",pod=~\"ts3db-live-ingester.*\"}[2m])) by (pod)"
        },
        {
          record = "job:http_requests_total:sum"
          expr   = "sum(rate(http_requests_total[5m])) by (job)"
        },
      ]
    },
  ]
}

@OrNovo OrNovo requested a review from a team as a code owner November 20, 2023 21:51
oded-dd
oded-dd previously approved these changes Nov 21, 2023
Copy link
Contributor

@povilasv povilasv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@OrNovo OrNovo requested a review from povilasv November 21, 2023 07:47
@OrNovo OrNovo requested a review from oded-dd November 21, 2023 08:34
@OrNovo OrNovo merged commit 039fee0 into master Nov 21, 2023
5 checks passed
@OrNovo OrNovo deleted the recording_rules_new_framework branch November 21, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants