Skip to content

Graphite Export Plugin#1

Merged
ASverdlov merged 3 commits intotarantool:masterfrom
dokshina:master
Feb 26, 2019
Merged

Graphite Export Plugin#1
ASverdlov merged 3 commits intotarantool:masterfrom
dokshina:master

Conversation

@dokshina
Copy link

@dokshina dokshina commented Feb 5, 2019

Added graphite export plugin and it's usage example.
Described how to create custom export plugin.

Renamed metrics.details.prometheus -> metrics.details.

Copy link
Contributor

@ASverdlov ASverdlov left a comment

Choose a reason for hiding this comment

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

LGTM, I will merge this after fixes of logging level and README.

@ASverdlov
Copy link
Contributor

Please consider Graphite histogram native format when exporting.

We probably need to adapt it. Internally we store histograms in Prometheus-like format.

@ASverdlov
Copy link
Contributor

Decided to merge this. We'll handle graphite histograms in a separate PR.

@ASverdlov ASverdlov merged commit a655e67 into tarantool:master Feb 26, 2019
no1seman added a commit that referenced this pull request Feb 22, 2021
olegrok added a commit that referenced this pull request Oct 8, 2025
Once I catched an error during tests:
```
tarantool/override/metrics/psutils/psutils_linux.lua:49: bad argument #1 to 'string.split' (string expected, got nil)
```

That shows that in some rare cases fio.read can return `nil, err` but
before this patch this case was unhandled. This patch fixes it.

Also it was pretty strange to print a message via "print" function. It was changed to "log" module
that is more native for tarantool.

This patch doesn't contain tests because it's pretty hard to reproduce such error (file was opened
but `file:read()` returned an errors for some reasons).

Closes #526
olegrok added a commit that referenced this pull request Oct 8, 2025
Once I catched an error during tests:
```
tarantool/override/metrics/psutils/psutils_linux.lua:49: bad argument #1 to 'string.split' (string expected, got nil)
```

That shows that in some rare cases fio.read can return `nil, err` but
before this patch this case was unhandled. This patch fixes it.

Also it was pretty strange to print a message via "print" function. It was changed to "log" module
that is more native for tarantool.

This patch doesn't contain tests because it's pretty hard to reproduce such error (file was opened
but `file:read()` returned an errors for some reasons).

Closes #526
olegrok added a commit that referenced this pull request Oct 9, 2025
Once I catched an error during tests:
```
tarantool/override/metrics/psutils/psutils_linux.lua:49: bad argument #1 to 'string.split' (string expected, got nil)
```

That shows that in some rare cases fio.read can return `nil, err` but
before this patch this case was unhandled. This patch fixes it.

Also it was pretty strange to print a message via "print" function. It was changed to "log" module
that is more native for tarantool.

This patch doesn't contain tests because it's pretty hard to reproduce such error (file was opened
but `file:read()` returned an errors for some reasons).

Closes #526
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.

2 participants