1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-11-05 06:05:40 -05:00

commit more config files (safely)

This commit is contained in:
2022-12-10 13:09:42 -05:00
parent 22a26e9829
commit a061a510ee
8 changed files with 3758 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ scrape_configs:
metrics_path: /probe
scrape_interval: 30s
params:
module: [linode]
module: [linode_bucket]
static_configs:
- targets:
- https://api.linode.com/v4/object-storage/buckets/us-east-1/jarvis-mastodon
@@ -109,6 +109,22 @@ scrape_configs:
target_label: instance
- target_label: __address__
replacement: localhost:9079
- job_name: "json_exporter_targets"
metrics_path: /probe
scrape_interval: 30s
params:
module: [linode_transfer]
static_configs:
- targets:
- https://api.linode.com/v4/account/transfer
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9079
```
---
@@ -117,7 +133,10 @@ json-config.yml:
```yml
modules:
linode:
linode_bucket:
headers:
# https://cloud.linode.com/profile/tokens
Authorization: "Bearer XXXXXX"
metrics:
- name: json_linode_size
path: "{.size}"
@@ -125,7 +144,6 @@ modules:
bucket: "{.label}"
zone: "{.cluster}"
hostname: "{.hostname}"
- name: json_linode_objects
path: "{.objects}"
labels:
@@ -133,9 +151,15 @@ modules:
zone: "{.cluster}"
hostname: "{.hostname}"
linode_transfer:
headers:
# https://cloud.linode.com/profile/tokens
Authorization: "Bearer XXXXXX"
metrics:
- name: json_linode_transfer_used
path: "{.used}"
- name: json_linode_transfer_quota
path: "{.quota}"
```
---