Cookie Cutter

Cookie Cutter

  • Introduction
  • API
  • Help

›Modules

Introduction

  • Getting Started
  • Inputs
  • Message Handling
  • Outputs
  • Versioning and Contribution Guide

Components

  • Dispatch Context
  • State
  • Metrics
  • Tracing
  • Logging
  • Validation
  • Encoding
  • Config
  • Testing

Modules

  • Kafka
  • Azure
  • AMQP
  • gRPC
  • ValidateJS
  • MSSQL
  • Timer
  • StatsD
  • Protobuf
  • Prometheus
  • Redis
  • S3
  • Google PubSub

Prometheus

The Prometheus Module allows Cookie Cutter to expose metrics via HTTP in a Prometheus-scrapeable format.

Setup

Application.create()
    .metrics(prometheus({
        port: 3000,
        endpoint: "/metrics",
        prefix: "",
    }))
    // ...
    .run();

Configuration

NameDescription
portport to expose metrics on (default is 3000)
endpointendpoint to expose metrics on (default is /metrics)
prefixPrefix added to all exposed metrics (default is empty string)
← ProtobufRedis →
  • Setup
  • Configuration
Cookie Cutter
Docs
IntroductionKafka
More
Blog
Copyright © 2023 Walmart Inc.