Skip to content

Commit

Permalink
Add metrics service config to sciencemesh example (#4191)
Browse files Browse the repository at this point in the history
* add metrics svc config to sciencemesh example

* Update sm-config-metrics.md changelog

* Fix sm-config-metrics.md PR link
  • Loading branch information
mirekys authored Sep 15, 2023
1 parent 95a6e03 commit a9dc6d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changelog/unreleased/sm-config-metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Enhancement: Add metrics service to ScienceMesh example config

Adds the metrics http service configuration to the example config file
of a ScienceMesh site. Having this service configured is a prerequisite
for successfull Prometheus-based ScienceMesh sites metrics scraping.

<https://github.com/cs3org/reva/pull/4186>
<https://github.com/cs3org/reva/pull/4191>
5 changes: 5 additions & 0 deletions examples/sciencemesh/metrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cs3_org_sciencemesh_site_total_num_users": 0,
"cs3_org_sciencemesh_site_total_num_groups": 0,
"cs3_org_sciencemesh_site_total_amount_storage": 0
}
8 changes: 8 additions & 0 deletions examples/sciencemesh/sciencemesh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ prefix = "ocs"
address = ":443"

[http.services.prometheus]
address = ":443"

[http.services.metrics]
address = ":443"
metrics_data_driver_type = "json"
metrics_data_location = "metrics.json"
metrics_record_interval = 5000

[http.services.sysinfo]

[http.middlewares.cors]
Expand Down

0 comments on commit a9dc6d3

Please sign in to comment.