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

[Merged by Bors] - public metrics #4723

Closed
wants to merge 8 commits into from

Conversation

dshulyak
Copy link
Contributor

@dshulyak dshulyak commented Jul 18, 2023

subset of metrics to record:

  • connections
  • version
  • init size started / completed
  • post proof time

they will be recorded with 5 first characters from p2p public key, we probably don't want to gather information about smesher key.

example config:

{
    "main": {
        "metrics-push": "https://public-metrics-gateway.spacemesh.dev/",
        "metrics-push-period": "1s",
        "metrics-push-user": "XXX",
        "metrics-push-pass": "XXXXXX",
        "metrics-push-header": {
            "X-Scope-OrgId": "XXXXXXX"
        }
    }
}

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #4723 (2b13b04) into develop (c418ee5) will decrease coverage by 0.1%.
The diff coverage is 51.3%.

@@            Coverage Diff            @@
##           develop   #4723     +/-   ##
=========================================
- Coverage     77.2%   77.1%   -0.1%     
=========================================
  Files          255     255             
  Lines        28805   28825     +20     
=========================================
+ Hits         22246   22252      +6     
- Misses        5171    5182     +11     
- Partials      1388    1391      +3     
Impacted Files Coverage Δ
config/config.go 100.0% <ø> (ø)
metrics/push.go 0.0% <0.0%> (ø)
node/node.go 65.4% <12.5%> (-0.3%) ⬇️
activation/activation.go 77.4% <100.0%> (-0.4%) ⬇️
activation/nipost.go 85.3% <100.0%> (ø)
activation/post.go 84.9% <100.0%> (+<0.1%) ⬆️
config/mainnet.go 98.0% <100.0%> (+0.1%) ⬆️
p2p/metrics/connections.go 47.3% <100.0%> (+6.1%) ⬆️

... and 5 files with indirect coverage changes

@dshulyak dshulyak changed the title [debug] public metrics public metrics Jul 19, 2023
@dshulyak dshulyak marked this pull request as ready for review July 19, 2023 05:35
app.Config.MetricsPushPass,
app.Config.MetricsPushHeader,
app.Config.MetricsPushPeriod,
app.host.ID().String()[:5], app.Config.Genesis.GenesisID().ShortString())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about hashing the first 5 char?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe hash all then and use 5 chars? i can do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it doesn't hide anything, if i want i can hash all identities found in the network and match them

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. but at least its a step towards anomynizing. somebody have to pay the computation to get it....

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the same info will be publicly available in the epoch when ATX will be published, right? So why are we trying to hide it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is p2p id

@dshulyak
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Jul 19, 2023
subset of metrics to record:
- connections
- version
- init size started / completed
- post proof time

they will be recorded with 5 first characters from p2p public key, we probably don't want to gather information about smesher key.

example config:
```json
{
    "main": {
        "metrics-push": "https://public-metrics-gateway.spacemesh.dev/",
        "metrics-push-period": "1s",
        "metrics-push-user": "XXX",
        "metrics-push-pass": "XXXXXX",
        "metrics-push-header": {
            "X-Scope-OrgId": "XXXXXXX"
        }
    }
}
```
@bors
Copy link

bors bot commented Jul 19, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title public metrics [Merged by Bors] - public metrics Jul 19, 2023
@bors bors bot closed this Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants