feat: add measurements from puppet 5 (#9706)
This commit is contained in:
parent
b9aa9839fb
commit
90d08787f5
|
|
@ -85,18 +85,19 @@ Meta:
|
||||||
- tags: ``
|
- tags: ``
|
||||||
|
|
||||||
Measurement names:
|
Measurement names:
|
||||||
|
- puppetagent_changes_total
|
||||||
- puppetagent_events_failure
|
- puppetagent_events_failure
|
||||||
- puppetagent_events_total
|
- puppetagent_events_total
|
||||||
- puppetagent_events_success
|
- puppetagent_events_success
|
||||||
- puppetagent_resources_failed
|
|
||||||
- puppetagent_resources_scheduled
|
|
||||||
- puppetagent_resources_changed
|
- puppetagent_resources_changed
|
||||||
|
- puppetagent_resources_corrective_change
|
||||||
|
- puppetagent_resources_failed
|
||||||
|
- puppetagent_resources_failedtorestart
|
||||||
|
- puppetagent_resources_outofsync
|
||||||
|
- puppetagent_resources_restarted
|
||||||
|
- puppetagent_resources_scheduled
|
||||||
- puppetagent_resources_skipped
|
- puppetagent_resources_skipped
|
||||||
- puppetagent_resources_total
|
- puppetagent_resources_total
|
||||||
- puppetagent_resources_failedtorestart
|
|
||||||
- puppetagent_resources_restarted
|
|
||||||
- puppetagent_resources_outofsync
|
|
||||||
- puppetagent_changes_total
|
|
||||||
- puppetagent_time_service
|
- puppetagent_time_service
|
||||||
- puppetagent_time_lastrun
|
- puppetagent_time_lastrun
|
||||||
- puppetagent_version_config
|
- puppetagent_version_config
|
||||||
|
|
@ -108,18 +109,26 @@ Meta:
|
||||||
- tags: ``
|
- tags: ``
|
||||||
|
|
||||||
Measurement names:
|
Measurement names:
|
||||||
- puppetagent_time_user
|
|
||||||
- puppetagent_time_schedule
|
|
||||||
- puppetagent_time_filebucket
|
|
||||||
- puppetagent_time_file
|
|
||||||
- puppetagent_time_exec
|
|
||||||
- puppetagent_time_anchor
|
- puppetagent_time_anchor
|
||||||
- puppetagent_time_sshauthorizedkey
|
- puppetagent_time_catalogapplication
|
||||||
- puppetagent_time_package
|
|
||||||
- puppetagent_time_total
|
|
||||||
- puppetagent_time_configretrieval
|
- puppetagent_time_configretrieval
|
||||||
- puppetagent_time_lastrun
|
- puppetagent_time_convertcatalog
|
||||||
- puppetagent_time_cron
|
- puppetagent_time_cron
|
||||||
|
- puppetagent_time_exec
|
||||||
|
- puppetagent_time_factgeneration
|
||||||
|
- puppetagent_time_file
|
||||||
|
- puppetagent_time_filebucket
|
||||||
|
- puppetagent_time_group
|
||||||
|
- puppetagent_time_lastrun
|
||||||
|
- puppetagent_time_noderetrieval
|
||||||
|
- puppetagent_time_notify
|
||||||
|
- puppetagent_time_package
|
||||||
|
- puppetagent_time_pluginsync
|
||||||
|
- puppetagent_time_schedule
|
||||||
|
- puppetagent_time_sshauthorizedkey
|
||||||
|
- puppetagent_time_total
|
||||||
|
- puppetagent_time_transactionevaluation
|
||||||
|
- puppetagent_time_user
|
||||||
- puppetagent_version_config
|
- puppetagent_version_config
|
||||||
|
|
||||||
#### PuppetAgent string measurements:
|
#### PuppetAgent string measurements:
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,43 @@
|
||||||
---
|
---
|
||||||
events:
|
events:
|
||||||
failure: 0
|
failure: 0
|
||||||
|
noop: 0
|
||||||
total: 0
|
total: 0
|
||||||
success: 0
|
success: 0
|
||||||
resources:
|
resources:
|
||||||
failed: 0
|
|
||||||
scheduled: 0
|
|
||||||
changed: 0
|
changed: 0
|
||||||
|
corrective_change: 0
|
||||||
|
failed: 0
|
||||||
|
failed_to_restart: 0
|
||||||
|
out_of_sync: 0
|
||||||
|
restarted: 0
|
||||||
|
scheduled: 0
|
||||||
skipped: 0
|
skipped: 0
|
||||||
total: 109
|
total: 109
|
||||||
failed_to_restart: 0
|
|
||||||
restarted: 0
|
|
||||||
out_of_sync: 0
|
|
||||||
changes:
|
changes:
|
||||||
total: 0
|
total: 0
|
||||||
time:
|
time:
|
||||||
user: 0.004331
|
|
||||||
schedule: 0.001123
|
|
||||||
filebucket: 0.000353
|
|
||||||
file: 0.441472
|
|
||||||
exec: 0.508123
|
|
||||||
anchor: 0.000555
|
anchor: 0.000555
|
||||||
yumrepo: 0.006989
|
catalog_application: 0.010555
|
||||||
ssh_authorized_key: 0.000764
|
|
||||||
service: 1.807795
|
|
||||||
package: 1.325788
|
|
||||||
total: 8.85354707064819
|
|
||||||
config_retrieval: 4.75567007064819
|
config_retrieval: 4.75567007064819
|
||||||
last_run: 1444936531
|
convert_catalog: 1.3
|
||||||
cron: 0.000584
|
cron: 0.000584
|
||||||
|
exec: 0.508123
|
||||||
|
fact_generation: 0.34
|
||||||
|
file: 0.441472
|
||||||
|
filebucket: 0.000353
|
||||||
|
last_run: 1444936531
|
||||||
|
node_retrieval: 1.235
|
||||||
|
notify: 0.00035
|
||||||
|
package: 1.325788
|
||||||
|
plugin_sync: 0.325788
|
||||||
|
schedule: 0.001123
|
||||||
|
service: 1.807795
|
||||||
|
ssh_authorized_key: 0.000764
|
||||||
|
total: 8.85354707064819
|
||||||
|
transaction_evaluation: 4.69765
|
||||||
|
user: 0.004331
|
||||||
|
yumrepo: 0.006989
|
||||||
version:
|
version:
|
||||||
config: "environment:d6018ce"
|
config: "environment:d6018ce"
|
||||||
puppet: "3.7.5"
|
puppet: "3.7.5"
|
||||||
|
|
|
||||||
|
|
@ -32,19 +32,21 @@ type State struct {
|
||||||
|
|
||||||
type event struct {
|
type event struct {
|
||||||
Failure int64 `yaml:"failure"`
|
Failure int64 `yaml:"failure"`
|
||||||
|
Noop int64 `yaml:"noop"`
|
||||||
Total int64 `yaml:"total"`
|
Total int64 `yaml:"total"`
|
||||||
Success int64 `yaml:"success"`
|
Success int64 `yaml:"success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type resource struct {
|
type resource struct {
|
||||||
Failed int64 `yaml:"failed"`
|
Changed int64 `yaml:"changed"`
|
||||||
Scheduled int64 `yaml:"scheduled"`
|
CorrectiveChange int64 `yaml:"corrective_change"`
|
||||||
Changed int64 `yaml:"changed"`
|
Failed int64 `yaml:"failed"`
|
||||||
Skipped int64 `yaml:"skipped"`
|
FailedToRestart int64 `yaml:"failed_to_restart"`
|
||||||
Total int64 `yaml:"total"`
|
OutOfSync int64 `yaml:"out_of_sync"`
|
||||||
FailedToRestart int64 `yaml:"failed_to_restart"`
|
Restarted int64 `yaml:"restarted"`
|
||||||
Restarted int64 `yaml:"restarted"`
|
Scheduled int64 `yaml:"scheduled"`
|
||||||
OutOfSync int64 `yaml:"out_of_sync"`
|
Skipped int64 `yaml:"skipped"`
|
||||||
|
Total int64 `yaml:"total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type change struct {
|
type change struct {
|
||||||
|
|
@ -52,19 +54,27 @@ type change struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type time struct {
|
type time struct {
|
||||||
User float64 `yaml:"user"`
|
Anchor float64 `yaml:"anchor"`
|
||||||
Schedule float64 `yaml:"schedule"`
|
CataLogApplication float64 `yaml:"catalog_application"`
|
||||||
FileBucket float64 `yaml:"filebucket"`
|
ConfigRetrieval float64 `yaml:"config_retrieval"`
|
||||||
File float64 `yaml:"file"`
|
ConvertCatalog float64 `yaml:"convert_catalog"`
|
||||||
Exec float64 `yaml:"exec"`
|
Cron float64 `yaml:"cron"`
|
||||||
Anchor float64 `yaml:"anchor"`
|
Exec float64 `yaml:"exec"`
|
||||||
SSHAuthorizedKey float64 `yaml:"ssh_authorized_key"`
|
FactGeneration float64 `yaml:"fact_generation"`
|
||||||
Service float64 `yaml:"service"`
|
File float64 `yaml:"file"`
|
||||||
Package float64 `yaml:"package"`
|
FileBucket float64 `yaml:"filebucket"`
|
||||||
Total float64 `yaml:"total"`
|
Group float64 `yaml:"group"`
|
||||||
ConfigRetrieval float64 `yaml:"config_retrieval"`
|
LastRun int64 `yaml:"last_run"`
|
||||||
LastRun int64 `yaml:"last_run"`
|
NodeRetrieval float64 `yaml:"node_retrieval"`
|
||||||
Cron float64 `yaml:"cron"`
|
Notify float64 `yaml:"notify"`
|
||||||
|
Package float64 `yaml:"package"`
|
||||||
|
PluginSync float64 `yaml:"plugin_sync"`
|
||||||
|
Schedule float64 `yaml:"schedule"`
|
||||||
|
Service float64 `yaml:"service"`
|
||||||
|
SSHAuthorizedKey float64 `yaml:"ssh_authorized_key"`
|
||||||
|
Total float64 `yaml:"total"`
|
||||||
|
TransactionEvaluation float64 `yaml:"transaction_evaluation"`
|
||||||
|
User float64 `yaml:"user"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type version struct {
|
type version struct {
|
||||||
|
|
|
||||||
|
|
@ -17,33 +17,43 @@ func TestGather(t *testing.T) {
|
||||||
|
|
||||||
tags := map[string]string{"location": "last_run_summary.yaml"}
|
tags := map[string]string{"location": "last_run_summary.yaml"}
|
||||||
fields := map[string]interface{}{
|
fields := map[string]interface{}{
|
||||||
"events_failure": int64(0),
|
"events_failure": int64(0),
|
||||||
"events_total": int64(0),
|
"events_noop": int64(0),
|
||||||
"events_success": int64(0),
|
"events_success": int64(0),
|
||||||
"resources_failed": int64(0),
|
"events_total": int64(0),
|
||||||
"resources_scheduled": int64(0),
|
"resources_changed": int64(0),
|
||||||
"resources_changed": int64(0),
|
"resources_correctivechange": int64(0),
|
||||||
"resources_skipped": int64(0),
|
"resources_failed": int64(0),
|
||||||
"resources_total": int64(109),
|
"resources_failedtorestart": int64(0),
|
||||||
"resources_failedtorestart": int64(0),
|
"resources_outofsync": int64(0),
|
||||||
"resources_restarted": int64(0),
|
"resources_restarted": int64(0),
|
||||||
"resources_outofsync": int64(0),
|
"resources_scheduled": int64(0),
|
||||||
"changes_total": int64(0),
|
"resources_skipped": int64(0),
|
||||||
"time_lastrun": int64(1444936531),
|
"resources_total": int64(109),
|
||||||
"version_configstring": "environment:d6018ce",
|
"changes_total": int64(0),
|
||||||
"time_user": float64(0.004331),
|
"time_anchor": float64(0.000555),
|
||||||
"time_schedule": float64(0.001123),
|
"time_catalogapplication": float64(0.010555),
|
||||||
"time_filebucket": float64(0.000353),
|
"time_configretrieval": float64(4.75567007064819),
|
||||||
"time_file": float64(0.441472),
|
"time_convertcatalog": float64(1.3),
|
||||||
"time_exec": float64(0.508123),
|
"time_cron": float64(0.000584),
|
||||||
"time_anchor": float64(0.000555),
|
"time_exec": float64(0.508123),
|
||||||
"time_sshauthorizedkey": float64(0.000764),
|
"time_factgeneration": float64(0.34),
|
||||||
"time_service": float64(1.807795),
|
"time_file": float64(0.441472),
|
||||||
"time_package": float64(1.325788),
|
"time_filebucket": float64(0.000353),
|
||||||
"time_total": float64(8.85354707064819),
|
"time_group": float64(0),
|
||||||
"time_configretrieval": float64(4.75567007064819),
|
"time_lastrun": int64(1444936531),
|
||||||
"time_cron": float64(0.000584),
|
"time_noderetrieval": float64(1.235),
|
||||||
"version_puppet": "3.7.5",
|
"time_notify": float64(0.00035),
|
||||||
|
"time_package": float64(1.325788),
|
||||||
|
"time_pluginsync": float64(0.325788),
|
||||||
|
"time_schedule": float64(0.001123),
|
||||||
|
"time_service": float64(1.807795),
|
||||||
|
"time_sshauthorizedkey": float64(0.000764),
|
||||||
|
"time_total": float64(8.85354707064819),
|
||||||
|
"time_transactionevaluation": float64(4.69765),
|
||||||
|
"time_user": float64(0.004331),
|
||||||
|
"version_configstring": "environment:d6018ce",
|
||||||
|
"version_puppet": "3.7.5",
|
||||||
}
|
}
|
||||||
|
|
||||||
acc.AssertContainsTaggedFields(t, "puppetagent", fields, tags)
|
acc.AssertContainsTaggedFields(t, "puppetagent", fields, tags)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue