Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics service config to sciencemesh example #4191

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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