Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dadall/mastodon_exporter
Simple Mastodon Exporter for Prometheus
https://github.com/dadall/mastodon_exporter
exporter fediverse mastodon mastodon-exporter prometheus prometheus-exporter
Last synced: 3 months ago
JSON representation
Simple Mastodon Exporter for Prometheus
- Host: GitHub
- URL: https://github.com/dadall/mastodon_exporter
- Owner: dadall
- Created: 2019-10-29T15:06:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T15:04:51.000Z (about 5 years ago)
- Last Synced: 2024-04-27T14:33:56.374Z (7 months ago)
- Topics: exporter, fediverse, mastodon, mastodon-exporter, prometheus, prometheus-exporter
- Language: Python
- Size: 57.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Mastodon Exporter
#### Mastodon
[Mastodon](https://github.com/tootsuite/mastodon/) is a free, open-source social network server based on ActivityPub.
#### How does it work ?
You need python3 and pip
Two API endpoints are used :
* api/v1/instance
* api/v1/instance/activity#### Docker usage
- Build
```
docker build -t mastodon-exporter .
```- Run
```
docker run -d -e MASTODON_HOST="https://instance.url/" -p 9410:9410 mastodon-exporter
```#### Standalone
Python3
```
pip3 install -r requirements.txt
```Usage :
* Edit the instance_exporter to update the URL of you instance.
* Run it
* curl localhost:9410 to check if there are some metrics