Skip to content

Commit 1081f6f

Browse files
committed
Support TLS
1 parent 1be0881 commit 1081f6f

File tree

4 files changed

+293
-232
lines changed

4 files changed

+293
-232
lines changed

README.md

+19-9
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ e.g.
5454

5555
```
5656
[prometheus]
57-
listen_port = 8098
58-
max_clients = 10
57+
port = 8098
58+
maxClients = 10
5959
disabled = 0
6060
6161
[prometheus://testing]
62-
bearer_token = ABC123
62+
bearerToken = ABC123
6363
index = prometheus
6464
whitelist = *
6565
sourcetype = prometheus:metric
6666
disabled = 0
6767
6868
[prometheus://another]
69-
bearer_token = DEF456
69+
bearerToken = DEF456
7070
index = another_metrics_index
7171
whitelist = net*
7272
sourcetype = prometheus:metric
@@ -81,18 +81,27 @@ The input can be configured in Splunk web in the usual place, or in inputs.conf
8181

8282
These parameters should be set under the [prometheus] stanza.
8383

84-
**listen_port**
84+
**port**
8585
The TCP port to listen on. Default 8098.
8686

87-
**max_clients**
87+
**maxClients**
8888
The maximum number of simultaneous HTTP requests the listener will process. More requests than this will be queued (the queue in unbounded). Default `10`.
8989

90+
**enableTLS**
91+
Listen on TLS (i.e. https://<server>:<port>)
92+
93+
**certFile**
94+
Full path to certFile. $SPLUNK_HOME is respected. Any CA certificate should be contatenated.
95+
96+
**keyFile**
97+
Full path to keyFile. Passwordless only supported for now. $SPLUNK_HOME is respected.
98+
9099
**disabled**
91100
If set to true (or 1 etc.) no prometheus inputs will function
92101

93102
### Specific input parameters
94103

95-
**bearer_token**
104+
**bearerToken**
96105
The token that will identify incoming requests to this input
97106

98107
**whitelist**
@@ -120,9 +129,10 @@ In your Prometheus runtime YML file, ensure the following is set:
120129
bearer_token: "ABC123"
121130
```
122131
132+
Full details of available options are at: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#%3Cremote_write%3E
133+
123134
## Known Limitations
124135
125136
- Only Linux on x86_64 is tested for now
126-
- TLS is not yet supported, but is targeted for a future enhancement
127137
- Validation of configuration is non-existent -- incorrect config will not work with little indication as to why
128-
- Proper logging of the input execution is not yet implemented
138+
- Proper logging of the input execution is not yet implemented. You may or may get a log entry of any issues.

0 commit comments

Comments
 (0)