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

Rollup rules not working with unagregated namespace #4073

Open
yackushevas opened this issue Feb 22, 2022 · 2 comments
Open

Rollup rules not working with unagregated namespace #4073

yackushevas opened this issue Feb 22, 2022 · 2 comments

Comments

@yackushevas
Copy link

yackushevas commented Feb 22, 2022

https://m3db.io/docs/operational_guide/mapping_rollup/
Based on this documentation, I tried to use the rules for unaggregated namespace:

m3coordinator:

    ...
    clusters:
    - namespaces:
      - namespace: default
        retention: 744h
        type: unaggregated
      - namespace: metrics_5m_90d
        retention: 2160h
        resolution: 5m
    ...
    downsample:
      ...
      rules:
        rollupRules:
            ...
            storagePolicies:
              - resolution: 10s
                retention: 744h
              - resolution: 5m
                retention: 2160h

In the namespace metrics_5m_90d, the metrics are written successfully, in the default:
"msg":"could not write ingest op","error":"no configured cluster namespace for: retention=744h0m0s, resolution=10s","retryableError":true

m3db default namespace:

        ...
        "aggregationOptions": {
          "aggregations": [
            {
              "aggregated": false,
              "attributes": null
            },
            {
              "aggregated": true,
              "attributes": {
                "resolutionNanos": "10000000000",
                "downsampleOptions": {
                  "all": false
                }
              }
            }
          ]
        },
        ...
@anton-Kozlenko
Copy link

anton-Kozlenko commented Mar 8, 2022

Had same issue, solved by configuring the default namespace twice in the yaml file, with the downsample all set to false:

- namespaces:
      - namespace: default
        retention: 744h
        type: unaggregated
      - namespace: default
         retention: 744h
         type: aggregated
         resolution: 10s
         downsample:
           all: false
     

@yackushevas
Copy link
Author

@anton-Kozlenko It works, thanks!

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

No branches or pull requests

2 participants