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: static-exporter/README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,3 +43,22 @@ local static_exporter = import 'github.com/grafana/jsonnet-libs/static-expoter/m
43
43
]),
44
44
}
45
45
```
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