feat: Add service metrics for Secrets requested and stored #376
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
applies to #374
Signed-off-by: Leonard Goodell [email protected]
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-bootstrap/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)TBD
Testing Instructions
Non-secure mode
Run non-secure EdgeX stack
Run ACS with metrics-influxdb profile from command line with DEBUG logging
Build and run app template in App SDk with go-mod-bootstrap from this branch
Disable all exiting metrics in the app template config file
Add the following metrics enabled
Run app template service from command-line with -cp option so it uses Consul for config and DEBUG logging
Verify ever 30 secs it logs the following:
Verify ASC logs have the following:
From Consul change the value at
edgex/appservices/2.0/app-new-service/Writable/InsecureSecrets/HTTPS/Secrets/key
and save it.Verify that ASC logs now show
SecuritySecretsStored
is 1Secure Mode
Generate secure compose with asc-metrics so it adds the service key to the appropriate security services
Edit compose to
app-new-service
service key to appropriate security servicesRun the customized secure compose file
make run up
Run ACS with metrics-influxdb profile from command line with DEBUG logging and security on
Run app template service from command-line with DEBUG logging and security on
Verify ever 30 secs it logs the following:
Verify ASC logs have the following:
Push a new secret into the service SecretStore using the
http://localhost:59740/api/v2/secret
endpointVerify that ASC logs now show
SecuritySecretsStored
is 1Core Support service backward compatibility
Build local binary for Support Notifications
Run non-secure stack using compose builder
Stop Support Notifications container
Run Support Notifications from command-line
Verify service starts properly and has the following log message:
New Dependency Instructions (If applicable)