You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set default CredentialStore to "kubernetes" in multiple controllers (#271)
* Set default CredentialStore to "kubernetes" in multiple controllers
- Updated the Reconcile functions in the CA, identity, ordnode, and peer controllers to set the CredentialStore to "kubernetes" if it is not already specified.
- This change ensures a consistent default configuration across different components, enhancing usability and reducing potential misconfigurations.
Signed-off-by: dviejokfs <[email protected]>
* Add Prometheus metrics documentation and update sidebar
- Added a new documentation file for Prometheus metrics, detailing available metrics for monitoring Hyperledger Fabric, including certificate expiration and current time metrics.
- Updated the sidebar configuration to include a link to the new Prometheus metrics documentation, enhancing navigation for users.
These changes improve the documentation and usability of monitoring features within the Hyperledger Fabric operator.
Signed-off-by: dviejokfs <[email protected]>
---------
Signed-off-by: dviejokfs <[email protected]>
The HLF Operator exposes several Prometheus metrics that can be used for monitoring and alerting on your Hyperledger Fabric network. These metrics provide insights into certificate expiration times and current system time.
count by (node_type) (hlf_operator_certificate_expiration_timestamp_seconds)
106
+
```
107
+
108
+
## Enabling Metrics Collection
109
+
110
+
To collect these metrics, ensure that:
111
+
112
+
1.**ServiceMonitor is enabled** in your Fabric resources:
113
+
```yaml
114
+
serviceMonitor:
115
+
enabled: true
116
+
interval: 10s
117
+
labels: {}
118
+
sampleLimit: 0
119
+
scrapeTimeout: 10s
120
+
```
121
+
122
+
2. **Prometheus Operator is installed** in your cluster to automatically discover and scrape the metrics.
123
+
124
+
3. **Metrics endpoint is accessible** on the HLF Operator service.
125
+
126
+
## Metric Updates
127
+
128
+
- **Certificate expiration metrics** are updated whenever certificates are processed or renewed
129
+
- **Current time metric** is updated regularly to provide a reference point for time-based calculations
130
+
131
+
These metrics help you maintain visibility into your Hyperledger Fabric network's certificate lifecycle and ensure timely certificate renewals to prevent service disruptions.
0 commit comments