Writing Prometheus exporters - the Lazy Dev way

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • T-Rex

    T-Rex NVIDIA GPU miner with web control monitoring page

    Our first suggestion was to use our trusty ELK+G and poll extra data from NVIDIA SMI tool, but we soon figured out that this problem has already been solved for us. Mining software nowadays got extremely sophisticated (and obfuscated) – it now comes with own webserver and API. So, we simplified a bit:

  • trex-exporter

    Prometheus exporter for T-Rex miner with dual stats support

    The two parts of our applicatgion are TRexPoller and PrometheusExporter. Writing both is trivial and we won’t spend much time on the code there. Feel free to check it out on GitHub. The point to make here is it has never been easier to focus on business logic and leave heavy lifting to respective NuGet packages.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • prometheus-net

    .NET library to instrument your code with Prometheus metrics

    // example taken from https://github.com/prometheus-net/prometheus-net#quick-start private static readonly Counter ProcessedJobCount = Metrics .CreateCounter("myapp_jobs_processed_total", "Number of processed jobs."); ... ProcessJob(); ProcessedJobCount.Inc();

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts