In one particular project, i had to import some key/value data to Prometheus. So i have decided to create my custom-built Node Exporter in Golang.

Overview

About the app

In one particilar project, i had to import some key/value data to Prometheus. So i have decided to create my custom-built Node Exporter in Golang, then dockerize it and share it in my Github account.

In this example, i used API to get Bitcoin price in Dollar and Euro, import it in the Prometheus and visualize it using Grafana. You can import any data using your own Golang scripts.

Run Program

Login to the server where you want to run this exporter and clone the project:

  git clone https://github.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Golang.git

Go to the project directory:

  cd Custom_Prometheus_Node_Exporter-in-Golang

Build image and start the container:

  docker-compose up -d --build --force-recreate

Add the exporter to Prometheus

Add this part at the end of the configuration of your Prometheus (prometheus.yaml):

  - job_name: Golang-exporter
    metrics_path: /metrics.txt
    static_configs:
      - targets: ['
   
    :9999
    '
   ]

Add Grafana dashboards using imported items

App Screenshot

You might also like...
Export the private key from a Swarm json key file

exportSwarmKey Currently it is a pain in the A** to export bee key in to metamask as they are not compatible. This programe will export the private ke

Solutions to all of the Kattis problems I have completed.

Kattis Solutions to all of the Kattis problems I have completed. Problem Lang CPU time Date Hello Go 0.02s 2021-11-23 11:30:27 ABC Go 0.08s 2021-11-23

An experiment building a custom binary protocol for a calculator

Overview Implementation of a calculator service built on a custom protocol on top of TCP Details The server is in main.go, and the client is in client

Custom release of square/certstrap

certstrap A simple certificate manager written in Go, to bootstrap your own certificate authority and public key infrastructure. Adapted from etcd-ca.

Some utilities for Persian language in Go (Golang)

persian Some utilities for Persian language in Go (Golang). Installation go get github.com/mavihq/persian API .ToPersianDigits Converts all English d

Some plain Go/Golang i2c sensor bindings to Waveshare Sense HAT for raspberry pi

i2c some plain Go/Golang i2c sensor bindings to Waveshare Sense HAT for raspberry pi using https://periph.io Supported hardware: Raspberry Zero W 1 ht

Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

The Moby Project Moby is an open-source project created by Docker to enable and accelerate software containerization. It provides a "Lego set" of tool

Placeholder for the future project (lets-go-chat)Placeholder for the future project (lets-go-chat)

Placeholder for the future project (lets-go-chat)Placeholder for the future project (lets-go-chat)

Type-safe Prometheus metrics builder library for golang

gotoprom A Prometheus metrics builder gotoprom offers an easy to use declarative API with type-safe labels for building and using Prometheus metrics.

Owner
Hamid Hosseinzadeh
Hamid Hosseinzadeh
A project that provides an in-memory key-value store as a REST API. Also, it's containerized and can be used as a microservice.

Easy to Use In-Memory Key-Value Store A project that provides an in-memory key-value store as a REST API. Also, it's containerized and can be used as

Baran Sekin 6 Mar 6, 2022
an unofficial prometheus exporter for the Hochwassernachrichtendienst Bayern.

Hochwassernachrichtendienst Exporter an unofficial prometheus exporter for the Hochwassernachrichtendienst Bayern. Usage Usage of ./hochwassernachrich

Maximilian Güntner 4 Nov 2, 2022
Prometheus exporter for Hue Sensors

Prometheus exporter for Hue Sensors This program allows you to gather generic metrics on all your Philips Hue sensors with Prometheus. Installation In

Reinier Schoof 1 Nov 17, 2021
Prometheus statistics exporter for Open vSwitch

Prometheus statistics exporter for Open vSwitch Open vSwitch is popular virutal switch that enables high performance software defined networking. Sinc

Ivan 0 Feb 18, 2022
Packer Plugin Vagrant - The Vagrant multi-component plugin can be used with HashiCorp Packer to create custom images

Packer Plugin Vagrant - The Vagrant multi-component plugin can be used with HashiCorp Packer to create custom images

null 1 Jul 13, 2022
An HTTP service for customizing import path of your Go packages.

Go Packages A self-host HTTP service that allow customizing your Go package import paths. Features Reports. Badges. I18N. Preview I launch up a free H

Razon Yang 17 Nov 27, 2022
Report unwanted import path and declaration usages

faillint Faillint is a simple Go linter that fails when a specific set of import paths or exported path's functions, constant, vars or types are used.

Fatih Arslan 229 Dec 28, 2022
import csv into existing table postgresql or cockroachdb

import csv into existing table postgresql or cockroachdb

null 0 Nov 1, 2021
Create one endpoint with add user functionality

hubuc-task Create one endpoint with add user functionality

Sachin Chavan 0 Nov 13, 2021
An in-memory, key-value store HTTP API service

This is an in-memory key-value store HTTP API service, with the following endpoints: /get/{key} : GET method. Returns the value of a previously set ke

Ujjwal Goyal 1 May 23, 2022