You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Service discovery for [AWS MSK](https://aws.amazon.com/msk/), compatible with [P
8
8
9
9
## How it works
10
10
11
-
This service gets a list of MSK clusters in an AWS account and exports each broker to a Prometheus-compatible static config to be used with the [`file_sd_config`](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config) mechanism.
11
+
This service gets a list of MSK clusters in an AWS account and exports each broker to a Prometheus-compatible static config to be used with the [`file_sd_config`](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config)or [`http_sd_config`](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config)mechanism.
12
12
13
13
## Pre-requisites
14
14
@@ -44,12 +44,20 @@ When using AWS credentials or IAM Roles, the following policy needs to be attach
44
44
Usage of ./prometheus-msk-discovery:
45
45
-filter string
46
46
a regex pattern to filter cluster names from the results
47
+
-http-sd
48
+
expose http_sd interface rather than writing a file
47
49
-job-prefix string
48
50
string with which to prefix each job label (default "msk")
51
+
-listen-address string
52
+
Address to listen on for http service discovery (default ":8080")
49
53
-output string
50
54
path of the file to write MSK discovery information to (default "msk_file_sd.yml")
55
+
-region string
56
+
the aws region in which to scan for MSK clusters
51
57
-scrape-interval duration
52
-
interval at which to scrape the AWS API for MSK cluster information (default 5m0s)
58
+
interval at which to scrape the AWS API for MSK cluster information when in file_sd mode (default 5m0s)
59
+
-tag value
60
+
A key=value for filtering by tags. Flag can be specified multiple times, resulting OR expression.
When no region is specified with the `-region` flag the process first attempts to load the default SDK configuration checking for an `AWS_REGION` environment variable or reading any region specified in the standard [configuration file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html). If no region is found it will attempt to retrieve it from the EC2 Instance Metadata Service.
0 commit comments