hOTEL. mOTEL. Get Your Metrics in!
This feature page was published on a previous version of the What's New with Cribl sandbox; therefore, the instructions are no longer valid.
Cribl Edge and Stream now ship with a Function that converts metrics to OTLP format. No need to do manually, just drop in the Function and enjoy your daydata!
Here at Cribl, our mission is To help our customers unlock the value of all their IT and Security data
. Ultimately, the Cribl software suite makes it possible to couple ingesting any data source, and even auto-discovering new data sources, and sending data to any destination with the ability use open formats (raw data).
All that is basically to say, we believe in helping make our customers' lives easier. One way we do that in v4.5
is the OTLP Metrics
Function. The OTLP Metrics
Function transforms dimensional metrics events into the OTLP (OpenTelemetry Protocol) format. This Function can be used to send metric events (events that contain the internal field __criblMetrics
) to any OpenTelemetry Metrics-capable destinations.
As always, before we begin, we must insist you read the Cribl docs regarding this neat new feature. Done? Let's check it out!
- On the left side of the Cribl UI, click
Manage
in theStream
section - Click on the
default
Worker Group in the top left - Now that we're managing Stream, click on the
Processing
submenu, then clickPipelines
- Click into the Pipeline named
prometheus_metrics
*Record scratch* Prometheus? What happened to OTLP?
Worry not, we're here to showcase a big use of the OTLP Metrics
Function: Prometheus to OTLP. Our customers have brought up that they have Prometheus metrics but they want them in an OTeL format. Well, let's do just that! By making out metrics Prometheus format and then OTLP. lol
- On the right-hand side of the Cribl UI, click
Capture Data
- In the
Filter Expression
field at the top of the modal, put__inputId=='cribl:CriblMetrics'
- Click
Capture
at the top right - Click
Start
- Once the capture finishes, click the
Save as Sample File
at bottom right - Click
Save
This sample we've just captured should now be displayed on the right side of our Cribl UI in the Simple Preview pane. You should also see that the events in our capture have been slightly modified (if not, click OUT
in the top left of the Simple Preview pane). If we read the comment at the top of the Pipeline we see:
This pipeline adds the
job
andinstance
dimensions some Grafana dashboards expect in metrics from Prometheus.
This means we can generally refer to these metrics now as Prometheus metrics. Right? You gotta believe! Anyway, let's get to the reason we're here: OTLP Metrics
Function.
- At the top of the Pipeline, click
Add Function
- Type in
OTLP
and click theOTLP Metrics
Function - Click
Save
at the bottom of the Pipeline - Observe the new event format in the Sample Preview pane at right
Wowee! With what felt like very minimal effort, our metrics are now in OTLP format. How simple was that?! Drop a single Function in your Pipeline and you're ready to go. Feel free to stay here and play around a bit. I know it's pretty cool.
When you're ready, let's move on to our new Cribl Edge Destination Disk Spool
.