Skip to content

Commit

Permalink
Release 0.6.0 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental authored Oct 19, 2022
1 parent 6dd4ce7 commit ed6e832
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0] - 2022-10-19

### Added

- New database info metric (`nextcloud_database_info`) containing type and version
- New metrics for hourly and daily active users
- Additional label on `nextcloud_scrape_errors_total` for errors due to rate-limiting
- Additional labels for email and room shares on `nextcloud_shares_total`

## [0.5.1] - 2022-04-02

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19.1 AS builder
FROM golang:1.19.2 AS builder

WORKDIR /build

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ A [prometheus](https://prometheus.io) exporter for getting some metrics of a nex
The preferred way to use `nextcloud-exporter` is by running the provided Docker image. It is currently provided on Docker Hub and GitHub Container Registry:

```plain
docker pull xperimental/nextcloud-exporter:latest
docker pull ghcr.io/xperimental/nextcloud-exporter:latest
docker pull xperimental/nextcloud-exporter:latest
```

In addition to the `latest` tag which points to the version currently in the `master` branch, tagged versions are also available.
Expand Down Expand Up @@ -72,7 +72,7 @@ When the login process is done, it is possible to disable filesystem access for
The interactive login can also be done using a Docker container:

```bash
docker run --rm -it xperimental/nextcloud-exporter --login --server https://nextcloud.example.com
docker run --rm -it ghcr.io/xperimental/nextcloud-exporter --login --server https://nextcloud.example.com
```

The login flow needs at least Nextcloud 16 to work.
Expand Down Expand Up @@ -198,7 +198,7 @@ These metrics are exported by `nextcloud-exporter`:
| nextcloud_php_upload_max_size_bytes | Configured maximum upload size in bytes |
| nextcloud_scrape_errors_total | Counts the number of scrape errors by this collector |
| nextcloud_shares_federated_total | Number of federated shares by direction `sent` / `received` |
| nextcloud_shares_total | Number of shares by type: <br> `authlink`: shared password protected links <br> `group`: shared groups <br>`link`: all shared links <br> `user`: shared users |
| nextcloud_shares_total | Number of shares by type: <br> `authlink`: shared password protected links <br> `group`: shared groups <br>`link`: all shared links <br> `user`: shared users <br> `mail`: shared by mail <br> `room`: shared with room |
| nextcloud_system_info | Contains meta information about Nextcloud as labels. Value is always 1.|
| nextcloud_up | Indicates if the metrics could be scraped by the exporter: <br>`1`: successful<br>`0`: unsuccessful (server down, server/endpoint not reachable, invalid credentials, ...) |
| nextcloud_users_total | Number of users of the instance |
2 changes: 1 addition & 1 deletion internal/metrics/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func collectShares(ch chan<- prometheus.Metric, shares serverinfo.Shares) error
values["authlink"] = float64(shares.SharesLink - shares.SharesLinkNoPassword)
values["link"] = float64(shares.SharesLink)
values["mail"] = float64(shares.SharesMail)
values["root"] = float64(shares.SharesRoom)
values["room"] = float64(shares.SharesRoom)

return collectMap(ch, sharesDesc, values)
}
Expand Down

0 comments on commit ed6e832

Please sign in to comment.