-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCIP-2840 Add basic monitoring for telemetry client (#14661)
* Add basic monitoring for telemetry client * Add changeset * Fix changeset * Add tests * Fix tests * Fix sonar findings * Fixes after review * Swap mutex with RWmutex * Address review feedback
- Loading branch information
Showing
5 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
#added Add prometheus metrics exposing health of telemetry client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package synchronization | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promauto" | ||
) | ||
|
||
var ( | ||
TelemetryClientConnectionStatus = promauto.NewGaugeVec(prometheus.GaugeOpts{ | ||
Name: "telemetry_client_connection_status", | ||
Help: "Status of the connection to the telemetry ingress server", | ||
}, []string{"endpoint"}) | ||
|
||
TelemetryClientMessagesSent = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
Name: "telemetry_client_messages_sent", | ||
Help: "Number of telemetry messages sent to the telemetry ingress server", | ||
}, []string{"endpoint", "telemetry_type"}) | ||
|
||
TelemetryClientMessagesSendErrors = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
Name: "telemetry_client_messages_send_errors", | ||
Help: "Number of telemetry messages that failed to send to the telemetry ingress server", | ||
}, []string{"endpoint", "telemetry_type"}) | ||
|
||
TelemetryClientMessagesDropped = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
Name: "telemetry_client_messages_dropped", | ||
Help: "Number of telemetry messages dropped", | ||
}, []string{"endpoint", "telemetry_type"}) | ||
|
||
TelemetryClientWorkers = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
Name: "telemetry_client_workers", | ||
Help: "Number of telemetry workers", | ||
}, []string{"endpoint", "telemetry_type"}) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters