File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,16 @@ namespace rubinius {
39
39
using namespace utilities ;
40
40
41
41
namespace metrics {
42
- FileEmitter::FileEmitter (MetricsMap& map, std::string path)
42
+ FileEmitter::FileEmitter (STATE, MetricsMap& map, std::string path)
43
43
: MetricsEmitter()
44
44
, metrics_map_(map)
45
45
, path_(path)
46
46
, fd_(-1 )
47
47
{
48
+ // TODO: Make this a proper feature of the config facility.
49
+ state->shared ().env ()->expand_config_value (
50
+ path_, " $PID" , state->shared ().pid .c_str ());
51
+
48
52
initialize ();
49
53
}
50
54
@@ -254,7 +258,7 @@ namespace rubinius {
254
258
state->shared ().config .system_metrics_statsd_server .value ,
255
259
state->shared ().config .system_metrics_statsd_prefix .value );
256
260
} else if (state->shared ().config .system_metrics_target .value .compare (" none" )) {
257
- emitter_ = new FileEmitter (metrics_map_,
261
+ emitter_ = new FileEmitter (state, metrics_map_,
258
262
state->shared ().config .system_metrics_target .value );
259
263
}
260
264
}
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ namespace rubinius {
299
299
int fd_;
300
300
301
301
public:
302
- FileEmitter (MetricsMap& map, std::string path);
302
+ FileEmitter (STATE, MetricsMap& map, std::string path);
303
303
virtual ~FileEmitter ();
304
304
305
305
void send_metrics ();
You can’t perform that action at this time.
0 commit comments