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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • T-Rex

    Discontinued 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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