# Prometheus

Canonical: https://docs.shumoku.dev/ja/server/0.3.0-beta.3/plugins/prometheus
Language: ja
Server documentation version: 0.3.0-beta.3
Product version: 0.3.0-beta.3
Channel: beta

このドキュメントはServerのプレリリース版を対象としています。

prometheus · 0.2.32

# Prometheus

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/server-v0.3.0-beta.3/libs/plugins/prometheus/src/index.ts)

フィールドの説明は英語のcanonical descriptorを表示しています。

## Capability

metrics · hosts · alerts

## 接続設定

| フィールド | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `url`  
必須 | `string` | **Prometheus URL**  
 | `—` |
| `preset`  
必須 | `string` | **Metric preset**  
snmp — SNMP Exporter, node\_exporter — Node Exporter, custom — Custom metrics | `snmp` |
| `customMetrics`  
 | `object` | **Custom metrics**  
 | `—` |
| `customMetrics.inOctets`  
必須 | `string` | **Inbound octets metric**  
 | `—` |
| `customMetrics.outOctets`  
必須 | `string` | **Outbound octets metric**  
 | `—` |
| `customMetrics.interfaceLabel`  
必須 | `string` | **Interface label**  
 | `—` |
| `customMetrics.upMetric`  
 | `string` | **Up metric**  
 | `—` |
| `hostLabel`  
 | `string` | **Host label**  
Label identifying hosts. | `instance` |
| `jobFilter`  
必須 | `string` | **Job filter**  
Required job label scope. Use one exact job or switch to regex for a related job family. | `—` |
| `jobFilterMode`  
 | `string` | **Job filter mode**  
Regex matches are fully anchored by Prometheus; use snmp-.\* for a prefix. exact — Exact match, regex — Regular expression (RE2) | `exact` |
| `alertmanagerUrl`  
 | `string` | **Alertmanager URL**  
Defaults to the Prometheus URL. | `—` |
| `basicAuth`  
 | `object` | **Basic auth (optional)**  
 | `—` |
| `basicAuth.username`  
 | `string` | **Username**  
 | `—` |
| `basicAuth.password`  
· Secret | `string` | **Password**  
 | `—` |

## Topologyオプション

なし
