Skip to content

Instantly share code, notes, and snippets.

View frgaudet's full-sized avatar
🏠
Working from home

Frédéric Gaudet frgaudet

🏠
Working from home
View GitHub Profile
@frgaudet
frgaudet / main.go
Created September 10, 2020 14:20 — forked from zupzup/main.go
ElasticSearch to Prometheus Exporter in Go
package main
import (
"context"
"github.com/go-chi/chi"
"github.com/go-chi/render"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"gopkg.in/olivere/elastic.v6"
apiVersion: v1
kind: Namespace
metadata:
name: external
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tinyproxy
namespace: external