Skip to content

Commit 4f7b537

Browse files
authored
Update README.md (#412)
1 parent 0374ab4 commit 4f7b537

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,20 @@ increases accuracy: <https://prometheus.io/docs/practices/histograms/>
8686
PROMETHEUS_LATENCY_BUCKETS = (.1, .2, .5, .6, .8, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.5, 9.0, 12.0, 15.0, 20.0, 30.0, float("inf"))
8787
```
8888

89+
---
90+
91+
You can have a custom namespace for your metrics:
92+
93+
```python
94+
PROMETHEUS_METRIC_NAMESPACE = "project"
95+
```
96+
97+
This will prefix all metrics with `project_` word like this:
98+
99+
```text
100+
project_django_http_requests_total_by_method_total{method="GET"} 1.0
101+
```
102+
89103
### Monitoring your databases
90104

91105
SQLite, MySQL, and PostgreSQL databases can be monitored. Just

0 commit comments

Comments
 (0)