# Prometheus

Canonical: https://docs.shumoku.dev/ja/server/next/plugins/prometheus
Language: ja
Server documentation version: next
Product version: 0.1.6-beta.4
Channel: development

このドキュメントは開発中のServerを対象としています。

prometheus · 0.2.28

# Prometheus

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/73ebc72ba0bc0d1caf74e1ed34c89a6debcb0e6a/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オプション

なし
