Skip to content

Commit a79fb27

Browse files
authored
Merge branch 'master' into krajo/new-hider
2 parents cf51a62 + 57b0b85 commit a79fb27

File tree

3 files changed

+587
-0
lines changed

3 files changed

+587
-0
lines changed

static-exporter/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,22 @@ local static_exporter = import 'github.com/grafana/jsonnet-libs/static-expoter/m
4343
]),
4444
}
4545
```
46+
47+
## Updating httpd.conf
48+
49+
There is a default httpd.conf that was added to this library.
50+
It was generated by running the following:
51+
52+
```
53+
docker run --rm httpd:2.4 cat /usr/local/apache2/conf/httpd.conf httpd.conf
54+
```
55+
56+
If there is a downstream change that requires updating this config file, run the above command and then add the following snippet to the `<Directory "/usr/local/apache2/htdocs"` block:
57+
58+
```
59+
<IfModule mod_headers.c>
60+
Header set Content-Type: "text/plain; version=0.0.4"
61+
</IfModule>
62+
```
63+
64+
This change adds a Header to the requests that enables Prometheus 3.x to scrape the static exporter.

0 commit comments

Comments
 (0)