GithubHelp home page GithubHelp logo

cronitor-kubernetes's People

Contributors

aflanagan avatar dudo avatar jdotjdot avatar shaneharter avatar zohair-coder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cronitor-kubernetes's Issues

Support arm64

Would it be possible to support helm charts on arm64 architecture? Thanks.

Cronitor fails to start on Docker desktop on Mac m1

Hello, I tried to install the helm chart of Cronitor following the docs, however the POD keeps restarting due this error:

time="2022-10-20T14:57:13Z" level=info msg="Enabling Sentry instrumentation..."
time="2022-10-20T14:57:13Z" level=info msg="no kubeconfig provided, defaulting to in-cluster..."
Error: the server could not find the requested resource
Usage:
  cronitor-kubernetes agent [flags]

Flags:
      --dryrun             Dry run, do not actually send updates to Cronitor
  -h, --help               help for agent
      --namespace string   Scope agent collection to only a single Kubernetes namespace
      --ship-logs          Collect and archive the logs from each CronJob run upon completion or failure

Global Flags:
      --apikey string       Cronitor.io API key
      --kubeconfig string   path to a kubeconfig to use
      --log-level string    Minimum log level to print for the agent (TRACE, DEBUG, INFO, WARN, ERROR)

Customize the "Complete" Signal Timing

Request for New Feature:

We need to customize the timing of sending the "complete" signal because we will combine the queue for asynchronous task processing. Therefore, the completion of a cronjob does not signify the end of the entire task execution. The "complete" ping should be sent by the program after all tasks in the queue have been fully processed.

  • Disable the cronitor telemetry ping from cronitor-kubernetes.

Recommend

Is it possible to turn off cronitor-kubernetes telemetry pings and send telemetry entirely by the users themselves.

Can we define a new annotation similar to "k8s.cronitor.io/disable-complete"? If this is set to true, the sending of the complete signal should be ignored.

Add annotation for group assignment

Using groups is currently pretty awkward for k8s job deployments. We like them, but the assigning the group is a manual process that has to be done post job creation.

I'd propose adding a new annotation so that the cronitor-agent can automatically assign the monitor for a job to a particular group:

k8s.cronitor.io/cronitor-group: "foo-jobs"

This would allow us to specify the monitor group at deployment time, which would simplify our lives quite a bit

Automatically delete job-monitoring when cronjob is deleted

Request:
The cronitor-kubernetes can automatically create and update job monitors from CronJob, but the controller does not automatically delete the Job-Monitoring when CronJob are deleted.

Idea:
Can a new annotation be added? Users can choose Job-monitoring, which has the same life cycle as cronjobs.

Default naming

Capturing a conversation with @aflanagan!

Naming things is hard... but we think that the default naming right now isn't practical when combined with Jobs across environments. My expectation is that a CronJob that's picked up in multiple environments with an identical name should have the same key within Cronitor.

There are a couple things working against us here:

Proposed solutions, relying on annotations to keep things flexible:

  • k8s.cronitor.io/id-inference: String
    • k8s
      • current behavior
    • name
      • hashes the name of the job
  • k8s.cronitor.io/name-prefix: String
    • namespace
      • current behavior
    • none
      • no prefix
    • anything else (this seems like a nice to have)
      • prepend to name

Cronitor Kubernetes Agent log format

Hi Team,

The agent works great but I was wondering if we could enhance the formatter to spit out json instead of txt or the loglevel via variables in the values file.

Thank you!

Code license

Hi! Could you please add some license to the repo so community could know how and if code can be reused?

Add annotation for monitor Note

I'd propose adding a new annotation so that the cronitor-agent can automatically assign the note for a job:

k8s.cronitor.io/cronitor-note: "This is my job"

This would allow us to specify the monitor note at deployment time, which would simplify our lives quite a bit.

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.