Go to file
Sam W fa8f7fa147 Add nixos module 2022-08-04 11:59:00 +03:00
.envrc flake: Add nix flake 2022-08-04 01:59:15 +03:00
.gitignore flake: Add nix flake 2022-08-04 01:59:15 +03:00
flake.lock flake: Add nix flake 2022-08-04 01:59:15 +03:00
flake.nix Add nixos module 2022-08-04 11:59:00 +03:00
go.mod Update go dependencies 2022-08-04 02:03:19 +03:00
go.sum Update go dependencies 2022-08-04 02:03:19 +03:00
main.go Replace inconsistent use of username with screen_name 2022-08-04 02:05:24 +03:00
readme.md Replace inconsistent use of username with screen_name 2022-08-04 02:05:24 +03:00

readme.md

Intro

A very simple prometheus exporter for getting the follower count of twitter accounts, for the intersection of "people who care about their twitter follower count" and "people who run their own monitoring infrastructure".

Usage

twitter-prometheus. That's it. If you want, you can specify a listenaddr with -listen. It defaults to :9700.

Metrics

  • /metrics - the usual built in metrics for go programs
  • /probe?screen_name=foo - the follower count for twitter user with screen name foo

How it do

Uses the https://cdn.syndication.twimg.com/widgets/followbutton/info.json unauthenticated JSON API. Twitter may well turn this off or rate limit aggressively.