prometheus-exporter-sine

command module
v0.0.0-...-a32f102 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

Prometheus Sine Wave Modulator

This project is an example of a Prometheus exporter that is used to modulate a sine wave. The project includes a Go program that modulates the sine wave, a Dockerfile for building a container image for the program, and an example configuration for Prometheus to scrape the exporter every second.

Usage

  1. Build the container image for the Go program using the following commands:
$ make docker
  1. Start the container using the following commands:
$ docker run -p 8080:8080 mheers/prometheus-exporter-sine
  1. Configure Prometheus to scrape the exporter every second by adding the following configuration to the prometheus.yml file:
scrape_configs:
  - job_name: 'sine_wave_modulator'
    scrape_interval: 1s
    static_configs:
      - targets: ['localhost:8080']

Developer

This project was developed by Assistant from OpenAI.

Transparency

The following commands were given by me:

  • write a go program that runs a prometheus exporter that modulates a sine wave
  • the program needs to start the prometheus exporter
  • make the port be configurable
  • write a Dockerfile to build this
  • write a scrape configuration that scrapes this every second
  • write a README for this project that also mentions that you wrote the code and note down all my commands for full transparency

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL