Enhancement to exec

Aperta
#12,483 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, lua

Direzione di ricerca

Start with the exec plugin and its current delayed-execution behavior. Scope how Lua invocation and cron-style scheduling would fit, then identify the tests or documentation needed to demonstrate both requests and reliable handling of query-derived metrics.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is your feature request related to a problem? Please describe.
We want to be able to create custom metrics by retrieving from a database the query performance data. Rather than invoking a separate script it would be cool if we could do it programmatically using Lua.

Additionally rather running the script on a delay process - it would be great if they could be set against a cron schedule.

Describe the solution you'd like
Option to invoke a lua script rather than and external script.

Schedule the exec plugin against a cron style schedule

Describe alternatives you've considered

Options such as making the exec a 1 off process, that then schedules a cronjob. - this makes for a very messy deployment, and risks duplication or worse the process failing to run such that Fluent Bit doesn't pickup the content.

An alternative is that we can trigger a processor, therefore the execution becomes stubbed out

Additional context

We're looking at Fluent Bit as part of a possible capability around Oracle database management rather than a commercial option which provide details such as SQL performance. This information can be retrieved by running SQL queries. Having Lua means we can use it to script the credentials capture and connection logic.

Lingua principale
C
Stelle
8.2k
Fork
2k
Merge medio
3g 20h
PR unite (30g)
99

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluent/fluent-bit

Tutte le issue di fluent/fluent-bit

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.