Git Product home page Git Product logo

nomad-open-telemetry-getting-started's Introduction

Getting Started with OpenTelemetry on HashiCorp Nomad

This repository contains reference job files to run the OpenTelemetry collector in different deployment scenarios, as described in the Getting Started guide.

These job files are provided as reference only, and are not designed for production use.

Deployment

From the official documentation:

The OpenTelemetry Collector consists of a single binary and two primary deployment methods:

  • Agent: A Collector instance running with the application or on the same host as the application (e.g. binary, sidecar, or daemonset).
  • Gateway: One or more Collector instances running as a standalone service (e.g. container or deployment) typically per cluster, datacenter or region.

To run the job files you will need access to a Nomad cluster running version 1.3.0+. You can start a local dev agent for Nomad by downloading the nomad binary and running the following command:

sudo nomad agent -dev -bind=0.0.0.0 -network-interface='{{ GetPrivateInterfaces | attr "name" }}'

Gateway

The OpenTelemetry Collector can run as a gateway by registering a service job.

nomad run https://raw.githubusercontent.com/hashicorp/nomad-open-telemetry-getting-started/main/examples/nomad/otel-collector.nomad

Agent

The OpenTelemetry Collector can run as an agent by registering a system job.

It connects to the gateway deployed in the previous section as an OTLP exporter, so make sure the gateway job is running as well.

nomad run https://raw.githubusercontent.com/hashicorp/nomad-open-telemetry-getting-started/main/examples/nomad/otel-agent.nomad

Demo

The demo job deploys the OpenTelemetry Collector as agent and gateway, load generators, and the Jaeger, Zipkin and Prometheus back-ends.

nomad run https://raw.githubusercontent.com/hashicorp/nomad-open-telemetry-getting-started/main/examples/nomad/otel-demo.nomad

The following services are available:

  • Jaeger: http://<YOUR_IP>:16686
  • Zipkin: http://<YOUR_IP>:9411
  • Prometheus: http://<YOUR_IP>:9090

Community Resources

nomad-open-telemetry-getting-started's People

Contributors

davemay99 avatar lgfa29 avatar odidev avatar

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.