What you will learn in this TP
- Set retention and indexes
- Write a VRL function
- Receive an alert
Introduction #
What you will learn in this section
- Set retention and indexes
- Write a VRL function
- Receive an alert
Context. Your prototype must become usable: keep logs 30 days, optimize searches and notify the team as soon as a payment fails.
Prerequisites: the first lab · Estimated time: 45 min
A complete alert chain.Setup #
Guided steps, with their solution.
1. Prepare the stack
Why? The receiver is a neighbouring container, so a private address: without this option OpenObserve refuses the destination. Do not reproduce in production.
Add anechocontainer and theZO_SKIP_SSRF_CHECKSoption, then ingest the events of the first lab again.2. Tune the stream
Why? These settings decide cost and speed.
Set 30 days of retention, full text onmessage, an index onserviceand a partition onlevel.3. Write a function
Why? VRL transforms events without touching the application.
Create themarque_gravefunction, then open it in the Functions menu and test it on an event.4. Create the alert chain
Why? The alert needs the destination, which needs the template: order matters.
Create the template, the destination, then the alert.5. Trigger the alert
Why? An alert never fired is an untested alert.
Send errors and read the logs of theechocontainer. Allow one to two minutes.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
Recommended Articles
Exploring data in OpenObserve: SQL, PromQL and VRL
Search with SQL, query metrics with PromQL, optimize a stream (indexes, partitions, retention) an...
Alerts and pipelines in OpenObserve
Create a template, a destination and an alert, avoid the SSRF webhook block and process data with...
Alertes, connecteurs et SLO dans Kibana
Créer des règles d'alerte dans Kibana (requête Elasticsearch, ES|QL, seuil personnalisé, logs), c...
Transformer avec VRL et tester ses pipelines Vector
Le langage VRL (Vector Remap Language) : analyse de logs (JSON, regex, syslog), gestion des erreu...
Sending logs, metrics and traces to OpenObserve
OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...
OpenObserve: architecture and concepts
Understanding OpenObserve: Parquet storage, deployment modes, roles (router, ingester, querier, c...
Vector : les transforms en détail (remap et VRL, route, filter, réduction et métriques)
Transformer les événements dans Vector : remap et le langage VRL (analyse, enrichissement, gestio...
Ingérer des métriques dans VictoriaMetrics : scraping, vmagent et remote write
Toutes les façons d'alimenter VictoriaMetrics : remote write depuis Prometheus, scraping intégré,...
La rétention des données dans Dynatrace : Grail, buckets et durées par type de données
Comprendre combien de temps Dynatrace conserve logs, traces, métriques, sessions et événements, g...