Skip to content

Commit

Permalink
v1.8.1 (#68)
Browse files Browse the repository at this point in the history
## v1.8.1
|||
|---|---|
|Date|2024-08-28
|Kind| MINOR release
|Author|[email protected]
  • Loading branch information
MikeSchiessl authored Aug 28, 2024
1 parent c90f587 commit 97921cc
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 9 deletions.
9 changes: 6 additions & 3 deletions bin/modules/UlsMonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,16 @@ def increase_message_count(self, bytes=0):
self.window_messages_bytes += bytes

# Also increase the prom counters
self.prom_overall_messages.inc()
self.prom_overall_bytes.inc(bytes)
if self.prometheues_enabled:
self.prom_overall_messages.inc()
self.prom_overall_bytes.inc(bytes)

def increase_message_ingested(self):
with self._metricLock:
self.window_messages_ingested += 1
self.prom_overall_messages_ingested.inc()

if self.prometheues_enabled:
self.prom_overall_messages_ingested.inc()


def get_message_count(self):
Expand Down
4 changes: 2 additions & 2 deletions bin/uls_config/global_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

# Common global variables / constants
__version__ = "1.8.0-alpha"
__version__ = "1.8.0"
__tool_name_long__ = "Akamai Unified Log Streamer"
__tool_name_short__ = "ULS"

Expand Down Expand Up @@ -118,7 +118,7 @@
callhome_timeout = "2" # Callhome Timeout in seconds

# Prometheus Monitoring basics
prometheus_enabled = "False" # Do not eneable prometheues by default
prometheus_enabled = False # Do not eneable prometheues by default
prometheus_port = 8000 # Default Prometheus port
prometheus_addr = "127.0.0.1" # Default Prometheus bind address
prometheus_certfile = None # Prometheus Cert file
Expand Down
14 changes: 12 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# Version History

## v1.8.0
## v1.8.1
|||
|---|---|
|Date|2024-XX-XX
|Date|2024-08-28
|Kind| MINOR release
|Author|[email protected]

- **Bugfixes**
- Merged a missing fix from the development branch

## v1.8.0
|||
|---|---|
|Date|2024-08-27
|Kind| MAJOR release
|Author|[email protected]

- **Features**
- Prometheus monitoring support added to allow smoother monitoring into third party (prometheus compatible) monitoring sytems. More information [here](MONITORING.md#prometheus)
- CallHome (opt-out) function to enable the ULS team to collect anonymous statistics & usage information - more information [here](./FAQ.md#i-do-not-want-to-send-any-data-to-akamai)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/kubernetes/helm/akamai-uls/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Akamai Universal Log Streamer Helm installation

type: application
version: 2.0.0
appVersion: "1.7.5"
appVersion: "1.8.0"
2 changes: 1 addition & 1 deletion test/basic_test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ current_version=$(cat docs/CHANGELOG.md | grep "##" | head -n 1 | sed 's/.* v//'

@test "uls.py --loglevel debug" {
run $uls_bin --loglevel debug
assert_output --partial "ULS D Logging initialized"
assert_output --partial "ULS DEBUG Logging initialized"
[ "$status" -eq 1 ]
}

Expand Down
17 changes: 17 additions & 0 deletions test/positive_test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,23 @@ load 'bats/bats-assert/load.bash'
unset BATS_VAR
}

## JSON LOGGING
@test "JSON Logging test - unmodified logline" {
run timeout 5 ${uls_bin} --section ${uls_section} --input etp --feed dns --output raw --loglevel debug --json-log
assert_output --partial '"log_level": "DEBUG", "component": "ULS", "message": "UlsMonitoring monitoring thread started..."'
}

@test "JSON Logging test - modified logline" {
run timeout 5 ${uls_bin} --section ${uls_section} --input etp --feed dns --output raw --loglevel debug --json-log --ulslogformat '{"timestamp": "%(asctime)s", "log_level": "%(levelname)s", "component": "%(name)s", "message": "%(message)s", "ulsrocks": "yes"}'
assert_output --partial '"log_level": "DEBUG", "component": "ULS", "message": "UlsMonitoring monitoring thread started...", "ulsrocks": "yes"'
}

## Prometheus
@test "PROMETHEUS - starting test" {
run timeout 5 ${uls_bin} --section ${uls_section} --input etp --feed dns --output raw --loglevel debug --prometheus
assert_output --partial 'DEBUG UlsMonitoring Prometheus monitoring started...'
}

## HELM LINT
@test "LINT the HELM CHART" {
run helm lint docs/examples/kubernetes/helm/akamai-uls --strict
Expand Down

0 comments on commit 97921cc

Please sign in to comment.