Pawel Chojnacki
c134a72cdb
Move Prometheus presentation logic to PrometheusText
...
+ Use NullMetrics to mock metrics when unused
+ Use method_missing in NullMetrics mocking
+ Update prometheus gem to version that correctly uses transitive dependencies
+ Ensure correct folders are used in Multiprocess prometheus client tests.
+ rename Sessions controller's metric
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
770f07cd5c
Make login_counter instance variable instead of class one.
...
+ remove unecessarey require
+ fix small formatiing issues
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
254830c1f9
Move most of MetricsController logic to MetricsService
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
466beeb31f
Use interpolation instead of concatenation
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
62fe37e3f8
move check if metrics are enabled to before action
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
21561f3434
Correctly handle temporary folder for testing multiproces metrics
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
c10d55a6da
Use only ENV for metrics folder location
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
6726922890
Bring back the token
2017-06-02 19:45:58 +02:00
Pawel Chojnacki
0f4050430d
Split metrics from health controller into metrics controller
2017-06-02 19:45:58 +02:00