twitter_exporter

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

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

Twitter Exporter

An lightweight exporter written in go that exposes very simple metrics like twitter_followers and twitter_following as gauge values for a prometheus server to scrape.

This is a project very early in development so expect breaking changes.

Usage

Set up the following environment variables

TWITTER_TOKEN=<your twitter bearer token>
TWITTER_HANDLE=<account of the metrics you wish to scrape>

and then run

go run main.go
Use Cases

A typical use case would require you to have a prometheus server scraping metrics for your twitter exporter at every X interval which can then be used to graph on dashboards like grafana.

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