GithubHelp home page GithubHelp logo

Comments (7)

theSuess avatar theSuess commented on August 13, 2024 1

I see. I don't think there's anything we can do about this from an operator perspective (as the data representation is handled differently in k8s vs Grafana).

I'll close this issue and check with the alerting team to see if we can add a separate export format for an operator compatible CR into Grafana

from grafana-operator.

pb82 avatar pb82 commented on August 13, 2024

@AlexEndris it sounds like the Operator removes fields that are not in the spec and then ArgoCD applies them again. In that case, wouldn't it make sense to remove those fields (and use the 5m0s format for the other)?

from grafana-operator.

AlexEndris avatar AlexEndris commented on August 13, 2024

@pb82 Thank you for your reply. My point was that the yaml is just a copy & paste from what grafana itself exports in version 10.4.1. I assumed that those would be the same.

from grafana-operator.

theSuess avatar theSuess commented on August 13, 2024

The duration fields in the Kubernetes custom resource are using a different duration type than the Grafana export, that's why the saved resource shows a different to the Grafana export.

Does this cause any problems or is it just a cosmetic issue?

from grafana-operator.

AlexEndris avatar AlexEndris commented on August 13, 2024

@theSuess It actually causes ArgoCD to detect a difference and tries to constantly sync the state, overwriting the manifest over and over. We had to adjust the export manually to stop this.

from grafana-operator.

AlexEndris avatar AlexEndris commented on August 13, 2024

@theSuess Thank you for the consideration! That would definitely help reducing manually having to change this. ❤️

from grafana-operator.

dcharbonnier avatar dcharbonnier commented on August 13, 2024

until this is solved I did this:

 grafana.integreatly.org/GrafanaAlertRuleGroup:
      ignoreDifferences: |
        jqPathExpressions:
        - .spec.rules[].data[].relativeTimeRange
        - .spec.rules[].isPaused

a very bad solution but this issue create too much load on argocd

from grafana-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.