Skip to content

Commit

Permalink
Fixing systemd metadata so sendLoadState, sendSubState and sendActive…
Browse files Browse the repository at this point in the history
…State options work again (open-telemetry#2929)

Signed-off-by: Dani Louca <[email protected]>
  • Loading branch information
dloucasfx authored Apr 7, 2023
1 parent a02271d commit d62365d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 15 deletions.
60 changes: 45 additions & 15 deletions pkg/signalfx-agent/pkg/monitors/collectd/systemd/genmetadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions pkg/signalfx-agent/pkg/monitors/collectd/systemd/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,37 @@ monitors:
description: Indicates that the systemd unit/service is active
default: false
type: gauge
group: ActiveState
gauge.active_state.inactive:
description: Indicates that the systemd unit/service is inactive and the previous
run was successful or no previous run has taken place yet
default: false
type: gauge
group: ActiveState
gauge.active_state.activating:
description: Indicates that the systemd unit/service has previously been inactive
but is currently in the process of entering an active state
default: false
type: gauge
group: ActiveState
gauge.active_state.deactivating:
description: Indicates that the systemd unit/service is currently in the process
of deactivation
default: false
type: gauge
group: ActiveState
gauge.active_state.reloading:
description: Indicates that the systemd unit/service is active and currently
reloading its configuration
default: false
type: gauge
group: ActiveState
gauge.active_state.failed:
description: Indicates that the systemd unit/service is inactive the previous
run was not successful
default: false
type: gauge
group: ActiveState
gauge.substate.running:
description: Indicates that the systemd unit/service is running
default: true
Expand All @@ -93,32 +99,39 @@ monitors:
description: Indicates that the systemd unit/service exited
default: false
type: gauge
group: SubState
gauge.substate.failed:
description: Indicates that the systemd unit/service failed
default: false
type: gauge
group: SubState
gauge.substate.dead:
description: Indicates that the systemd unit/service died
default: false
type: gauge
group: SubState
gauge.load_state.loaded:
description: Indicates that the systemd unit/service configuration was loaded
and parsed successfully
default: false
type: gauge
group: LoadState
gauge.load_state.not-found:
description: Indicates that the systemd unit/service configuration was not found
default: false
type: gauge
group: LoadState
gauge.load_state.error:
description: Indicates that the systemd unit/service configuration failed to
load
default: false
type: gauge
group: LoadState
gauge.load_state.masked:
description: Indicates that the systemd unit/service is currently masked out
(i.e. symlinked to /dev/null etc)
default: false
type: gauge
group: LoadState
monitorType: collectd/systemd
properties:

0 comments on commit d62365d

Please sign in to comment.