Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/systemli/prometheus-mastodon-exporter
Prometheus Exporter for Mastodon
https://github.com/systemli/prometheus-mastodon-exporter
mastodon prometheus-exporter
Last synced: 2 months ago
JSON representation
Prometheus Exporter for Mastodon
- Host: GitHub
- URL: https://github.com/systemli/prometheus-mastodon-exporter
- Owner: systemli
- License: gpl-3.0
- Created: 2022-11-04T20:00:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T10:14:20.000Z (9 months ago)
- Last Synced: 2024-04-13T13:53:45.405Z (8 months ago)
- Topics: mastodon, prometheus-exporter
- Language: Go
- Homepage:
- Size: 81.1 KB
- Stars: 12
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# prometheus-mastodon-exporter
[![Integration](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/integration.yml)
[![Quality](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/quality.yml/badge.svg)](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/quality.yml)
[![Release](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/release.yml/badge.svg)](https://github.com/systemli/prometheus-mastodon-exporter/actions/workflows/release.yml)Prometheus Exporter for Mastodon written in Go.
## Usage
```shell
go install github.com/systemli/prometheus-mastodon-exporter@latest
$GOPATH/bin/prometheus-mastodon-exporter -mastodon-url=https://mastodon.social
```### Commandline options
```text
-mastodon-url string
Url from the Mastodon Instance (e.g.: https://mastodon.social)
-web.listen-address string
Address on which to expose metrics and web interface. (default ":13120")
```## Metrics
```text
# HELP mastodon_domains Total number of known domains
# TYPE mastodon_domains gauge
mastodon_domains{host="mastodon.social"} 27289
# HELP mastodon_statuses Total number of all statuses
# TYPE mastodon_statuses gauge
mastodon_statuses{host="mastodon.social"} 4.0143351e+07
# HELP mastodon_users Total number of all users
# TYPE mastodon_users gauge
mastodon_users{host="mastodon.social"} 817561
# HELP mastodon_weekly_logins Total number of weekly logins
# TYPE mastodon_weekly_logins gauge
mastodon_weekly_logins{host="mastodon.social"} 34851
# HELP mastodon_weekly_registrations Total number of weekly registration
# TYPE mastodon_weekly_registrations gauge
mastodon_weekly_registrations{host="mastodon.social"} 281
# HELP mastodon_weekly_statuses Total number of weekly published statuses
# TYPE mastodon_weekly_statuses gauge
mastodon_weekly_statuses{host="mastodon.social"} 80742
```### Docker
```shell
docker run -p 13120:13120 systemli/prometheus-mastodon-exporter:latest -mastodon-url=https://mastodon.social
```## License
GPLv3