Skip to content

Commit 65fc5cd

Browse files
authored
Merge pull request #145 from asherf/markdown
Markdown fixes
2 parents 92c01e6 + d1e43ce commit 65fc5cd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

documentation/exports.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ a nice system to aggregate them using the env variable: `prometheus_multiproc_di
8484
which will configure the directory where metrics will be stored as files per process.
8585

8686
Configuration in uwsgi would look like:
87-
```
87+
88+
```ini
8889
env = prometheus_multiproc_dir=/path/to/django_metrics
8990
```
91+
9092
You can also set this environment variable elsewhere such as in a kubernetes manifest.
9193
Note that the environment variable is lower_case.
9294

@@ -97,6 +99,7 @@ created, it's possible to create file using worker ids rather than pids.
9799

98100
You can change the function used for identifying the process to use the uwsgi worker_id.
99101
Modify this in settings before any metrics are created:
102+
100103
```python
101104
try:
102105
import prometheus_client
@@ -106,6 +109,7 @@ try:
106109
except ImportError:
107110
pass # not running in uwsgi
108111
```
112+
109113
Note that this code uses internal interfaces of prometheus_client.
110114
The underlying implementation may change.
111115

examples/prometheus/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ To run a demo Prometheus, you'll need to follow these steps:
99
instructions](http://prometheus.io/docs/introduction/install/).
1010
Let's assume you cloned it to `~/prometheus`.
1111
* Run prometheus like this:
12+
1213
```shell
1314
~/prometheus/prometheus \
1415
--config.file=prometheus.yml \
1516
--web.console.templates consoles/ \
1617
--web.console.libraries ~/prometheus/console_libraries/
1718
```
18-
* Navigate to [http://localhost:9090].
19+
20+
* Navigate to `http://localhost:9090`.

0 commit comments

Comments
 (0)