Skip to content

Commit 76ce6fd

Browse files
authored
Do not point to home directory in examples (OMON-85)
1 parent af3c810 commit 76ce6fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ Metrics are pushed to one or multiple backends. The module currently supports th
214214
See sample in [examples/config-default.ini](https://github.com/AliceO2Group/Monitoring/blob/master/examples/config-default.ini).
215215

216216
## Code snippets
217-
Code snippets are available in [example](https://github.com/awegrzyn/Monitoring/tree/master/examples) directory.
217+
Code snippets are available in [example](https://github.com/AliceO2Group/Monitoring/tree/master/examples) directory.
218218

219219
### Sending user defined metric - examples/1-Basic.cxx
220220
```cpp
221221
// configure monitoring (once per process), pass configuration path as parameter
222-
Monitoring::Configure("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
222+
Monitoring::Configure("file://../examples/config-default.ini");
223223

224224
// now send an application specific metric
225225
// 10 is the value
@@ -235,7 +235,7 @@ Monitoring::Get().send({10, "myMetric"});
235235
### Sending tagged metric - examples/2-TaggedMetrics.cxx
236236
```cpp
237237
// configure monitoring (only once per process), pass configuration path as parameter
238-
Monitoring::Configure("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
238+
Monitoring::Configure("file://../examples/config-default.ini");
239239
240240
// now send an application specific metric with additional tags
241241
// 10 is the value
@@ -253,7 +253,7 @@ Monitoring::Get().send(Metric{10, "myMetric"}.addTags({{"tag1", "value1"}, {"tag
253253
By default timestamp is set by the module, but user can overwrite it manually.
254254
```cpp
255255
// configure monitoring (only once per process), pass configuration path as parameter
256-
Monitoring::Configure("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
256+
Monitoring::Configure("file://..examples/config-default.ini");
257257

258258
// current timestamp
259259
std::chrono::time_point<std::chrono::system_clock> timestamp = std::chrono::system_clock::now();
@@ -277,7 +277,7 @@ Monitoring::Get().send(Metric{40, "myCrazyMetric"}.setTimestamp(timestamp));
277277
The module can calculate derived metrics: average value and rate.
278278
```cpp
279279
// configure monitoring (only once per process), pass configuration path as parameter
280-
Monitoring::Configure("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
280+
Monitoring::Configure("file://../examples/config-default.ini");
281281
282282
// derived metric : rate
283283
Monitoring::Get().addDerivedMetric("myMetric", AliceO2::Monitoring::DerivedMetricMode::RATE);
@@ -292,7 +292,7 @@ Monitoring::Get().send(50, "myMetric");
292292
### Dedicated monitoring instance - examples/6-DedicatedInstance.cxx
293293
```cpp
294294
// create dedicated monitoring instance, pass confuguration path as parameter
295-
auto collector = Monitoring::Create("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
295+
auto collector = Monitoring::Create("file://../examples/config-default.ini");
296296

297297
// now send an application specific metric
298298
// 10 is the value
@@ -308,7 +308,7 @@ collector->send({10, "myMetric"});
308308
### Sending multiple metrics at once - examples/8-Multiple.cxx
309309
```cpp
310310
// configure monitoring (only once per process), pass configuration path as parameter
311-
Monitoring::Configure("file:///home/awegrzyn/hackathon/Monitoring/examples/config-default.ini");
311+
Monitoring::Configure("file://../examples/config-default.ini");
312312
313313
// Send two metrics at once as a single measurement
314314
Monitoring::Get().send("measurementName", {

0 commit comments

Comments
 (0)