Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@hyperledger/cactus-plugin-keychain-memory
Advanced tools
Dummy keychain implementation doing NO encryption and storing everything in-memory. Only suitable for development and testing.
@hyperledger/cactus-plugin-keychain-memory
This class creates a prometheus exporter, which scrapes the transactions (total transaction count) for the use cases incorporating the use of Keychain memory plugin.
The prometheus exporter object is initialized in the PluginKeychainMemory
class constructor itself, so instantiating the object of the PluginKeychainMemory
class, gives access to the exporter object.
You can also initialize the prometheus exporter object seperately and then pass it to the IPluginKeychainMemoryOptions
interface for PluginKeychainMemory
constructor.
getPrometheusMetricsV1
function returns the prometheus exporter metrics, currently displaying the total key count, which currently updates everytime a new key is added/removed from the list of total keys.
To use Prometheus with this exporter make sure to install Prometheus main component. Once Prometheus is setup, the corresponding scrape_config needs to be added to the prometheus.yml
- job_name: 'keychain_memory_exporter'
metrics_path: api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics
scrape_interval: 5s
static_configs:
- targets: ['{host}:{port}']
Here the host:port
is where the prometheus exporter metrics are exposed. The test cases (For example, packages/cactus-plugin-keychain-memory/src/test/typescript/unit/plugin-keychain-memory.test.ts) exposes it over 0.0.0.0
and a random port(). The random port can be found in the running logs of the test case and looks like (42379 in the below mentioned URL)
Metrics URL: http://0.0.0.0:42379/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics
Once edited, you can start the prometheus service by referencing the above edited prometheus.yml file. On the prometheus graphical interface (defaulted to http://localhost:9090), choose Graph from the menu bar, then select the Console tab. From the Insert metric at cursor drop down, select cactus_keychain_memory_total_key_count and click execute
This file contains the various responses of the metrics.
This file contains functions encasing the logic to process the data points
This file lists all the prometheus metrics and what they are used for.
FAQs
Dummy keychain implementation doing NO encryption and storing everything in-memory. Only suitable for development and testing.
The npm package @hyperledger/cactus-plugin-keychain-memory receives a total of 149 weekly downloads. As such, @hyperledger/cactus-plugin-keychain-memory popularity was classified as not popular.
We found that @hyperledger/cactus-plugin-keychain-memory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.