Skip to content

Commit

Permalink
Release v1.1.0 🥳
Browse files Browse the repository at this point in the history
  • Loading branch information
vidister committed Aug 25, 2022
1 parent 0c52d1e commit 833b50c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
19 changes: 16 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Changelog

## 1.1.0 - 2022-08-25
### Changes
* Added the option to export optical power in dBm instead of mW
* `-collector.optical-power-in-dbm`
* Thanks for @BarbarossaTM (Cloudflare) for contributing this feature.
* Updated dependencies
* Switched from deprecated `prometheus/common/log` to `sirupsen/logrus`

### Notes
* For this release we moved the repository from GitLab to GitHub.

## 1.0.1 - 2020-07-14
Switched to GoLang compliant versioning scheme
Fixed a bug where the scrape would fail due to reading bad data
### Changes
* Switched to GoLang compliant versioning scheme
* Fixed a bug where the scrape would fail due to reading bad data

## 1.0 - 2020-07-13
Initial release
### Changes
* Initial release
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Usage of ./transceiver-exporter:
```

## Exported metrics
> Note: Transmit / Receive power (and thresholds) are exported as milliwatts just as they are read from the module. If you wish to have decibel milliwatts, you'll have to do the conversion `10 * math.Log10(value_in_milliwatts)`. Please also note that, this might result `-Inf` for a value of 0 which might cause trouble with software / standards (e.g. JSON) not fully implementing the IEE754 floating point standard.

Note: Transmit / Receive power (and thresholds) are exported as milliwatts just as they are read from the module. If you wish to have decibel milliwatts, you'll have to do the conversion `10 * math.Log10(value_in_milliwatts)`. Please also note that, this might result `-Inf` for a value of 0 which might cause trouble with software / standards (e.g. JSON) not fully implementing the IEE754 floating point standard.
Starting in version 1.1.0 we added the runtime option `-collector.optical-power-in-dbm` to enable conversion to dBm in the exporter.

* `transceiver_exporter_date_code_unix_time`: Vendor supplied date code exported as unix epoch
* `transceiver_exporter_driver_name_info`: Driver name
Expand Down Expand Up @@ -77,9 +79,10 @@ Usage of ./transceiver-exporter:
* `transceiver_exporter_vendor_serial_number_info`: Vendor serial number
* `transceiver_exporter_wavelength_nanometer`: Wavelength in nanometers

## Maintainer
* @vidister

## Authors
* @fluepke
* @BarbarossaTM

## Maintainer
* @vidister
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
transceivercollector "github.com/wobcom/transceiver-exporter/transceiver-collector"
)

const version string = "1.0"
const version string = "1.1.0"

var (
showVersion = flag.Bool("version", false, "Print version and exit")
Expand All @@ -38,7 +38,7 @@ func main() {
func printVersion() {
fmt.Println("transceiver-exporter")
fmt.Printf("Version: %s\n", version)
fmt.Println("Author(s): @fluepke, @BarbarossaTM")
fmt.Println("Author(s): @fluepke, @BarbarossaTM, @vidister")
fmt.Println("Metrics Exporter for pluggable transceivers on Linux based hosts / switches")
}

Expand Down

0 comments on commit 833b50c

Please sign in to comment.