mirror of
https://github.com/jakejarvis/mastodon-utils.git
synced 2025-04-26 07:55:22 -04:00
Update prometheus.md
This commit is contained in:
parent
8e376d57e1
commit
22a26e9829
@ -6,31 +6,42 @@
|
|||||||
|
|
||||||
## Exporters
|
## Exporters
|
||||||
|
|
||||||
- https://github.com/prometheus/node_exporter
|
|
||||||
- https://github.com/oliver006/redis_exporter
|
|
||||||
- https://github.com/prometheus-community/postgres_exporter
|
- https://github.com/prometheus-community/postgres_exporter
|
||||||
- https://github.com/prometheus/statsd_exporter
|
- https://github.com/prometheus/statsd_exporter
|
||||||
|
- https://github.com/oliver006/redis_exporter
|
||||||
|
- https://github.com/prometheus/node_exporter
|
||||||
- https://github.com/nginxinc/nginx-prometheus-exporter
|
- https://github.com/nginxinc/nginx-prometheus-exporter
|
||||||
- https://github.com/prometheus-community/json_exporter
|
- https://github.com/prometheus-community/json_exporter
|
||||||
|
|
||||||
---
|
## Installation
|
||||||
|
|
||||||
|
repeat for each exporter:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz
|
wget https://github.com/oliver006/redis_exporter/releases/download/v1.45.0/redis_exporter-v1.45.0.linux-amd64.tar.gz
|
||||||
tar xvf node_exporter-1.3.1.linux-amd64.tar.gz
|
tar xvf redis_exporter-v1.45.0.linux-amd64.tar.gz
|
||||||
cp node_exporter-1.3.1.linux-amd64/node_exporter /usr/local/bin/
|
cp redis_exporter-v1.45.0.linux-amd64/redis_exporter /usr/local/bin/
|
||||||
|
|
||||||
useradd --no-create-home --shell /bin/false node_exporter
|
useradd --no-create-home --shell /bin/false redis_exporter
|
||||||
chown node_exporter:node_exporter /usr/local/bin/node_exporter
|
chown redis_exporter:redis_exporter /usr/local/bin/redis_exporter
|
||||||
|
|
||||||
nano /etc/system/systemd/node-exporter.service # see below
|
nano /etc/system/systemd/redis-exporter.service # see below
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now redis-exporter.service
|
systemctl enable --now redis-exporter.service
|
||||||
|
systemctl status redis-exporter.service
|
||||||
```
|
```
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
|
||||||
|
/home/mastodon/live/.env.production:
|
||||||
|
|
||||||
|
```
|
||||||
|
STATSD_ADDR=localhost:9125
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
/etc/prometheus/prometheus.yml:
|
/etc/prometheus/prometheus.yml:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -123,6 +134,7 @@ modules:
|
|||||||
hostname: "{.hostname}"
|
hostname: "{.hostname}"
|
||||||
|
|
||||||
headers:
|
headers:
|
||||||
|
# https://cloud.linode.com/profile/tokens
|
||||||
Authorization: "Bearer XXXXXX"
|
Authorization: "Bearer XXXXXX"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -230,14 +242,6 @@ mappings:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
/home/mastodon/live/.env.production:
|
|
||||||
|
|
||||||
```
|
|
||||||
STATSD_ADDR=localhost:9125
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
(example) /etc/systemd/system/redis-exporter.service:
|
(example) /etc/systemd/system/redis-exporter.service:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user