Repository: grafana/grafana-plugin-sdk-go (go)

Issue:
Add support for checking plugin config health
Given a Grafana app/datasource plugin before saving it it will call a test function provided by the client side app/datasource. It would be nice if you could call the backend plugin to verify the health of a configured app/datasource instance.

Later we could possibly show iindication n UI whether certain app/datasource is online/working or not.

Pull request:
add plugin config to healthcheck
closes #38

Patch:
diff --git a/backend/adapter.go b/backend/adapter.go
index 4d1ef17..be5666b 100644
--- a/backend/adapter.go
+++ b/backend/adapter.go
@@ -43,7 +43,7 @@ func (a *sdkAdapter) CollectMetrics(ctx context.Context, protoReq *pluginv2.Coll
 
 func (a *sdkAdapter) CheckHealth(ctx context.Context, protoReq *pluginv2.CheckHealth_Request) (*pluginv2.CheckHealth_Response, error) {
 	if a.CheckHealthHandler != nil {
-		res, err := a.CheckHealthHandler.CheckHealth(ctx)
+		res, err := a.CheckHealthHandler.CheckHealth(ctx, fromProto().HealthCheckRequest(protoReq))
 		if err != nil {
 			return nil, err
 		}
diff --git a/backend/convert_from_protobuf.go b/backend/convert_from_protobuf.go
index c6835fc..8437934 100644
--- a/backend/convert_from_protobuf.go
+++ b/backend/convert_from_protobuf.go
@@ -116,3 +116,10 @@ func (f convertFromProtobuf) CallResourceRequest(protoReq *pluginv2.CallResource
 		User:         f.User(protoReq.User),
 	}
 }
+
+// HealthCheckRequest converts proto version to SDK version.
+func (f convertFromProtobuf) HealthCheckRequest(protoReq *pluginv2.CheckHealth_Request) *CheckHealthRequest {
+	return &CheckHealthRequest{
+		PluginConfig: f.PluginConfig(protoReq.Config),
+	}
+}
diff --git a/backend/convert_to_protobuf.go b/backend/convert_to_protobuf.go
index 091352b..46e7521 100644
--- a/backend/convert_to_protobuf.go
+++ b/backend/convert_to_protobuf.go
@@ -77,8 +77,9 @@ func (t convertToProtobuf) HealthStatus(status HealthStatus) pluginv2.CheckHealt
 
 func (t convertToProtobuf) CheckHealthResponse(res *CheckHealthResult) *pluginv2.CheckHealth_Response {
 	return &pluginv2.CheckHealth_Response{
-		Status: t.HealthStatus(res.Status),
-		Info:   res.Info,
+		Status:      t.HealthStatus(res.Status),
+		Message:     res.Message,
+		JsonDetails: res.JSONDetails,
 	}
 }
 
diff --git a/backend/diagnostics.go b/backend/diagnostics.go
index 19b29eb..a1bd31e 100644
--- a/backend/diagnostics.go
+++ b/backend/diagnostics.go
@@ -4,8 +4,10 @@ import (
 	"context"
 )
 
+// CheckHealthHandler enables users to send health check
+// requests to a backend plugin
 type CheckHealthHandler interface {
-	CheckHealth(ctx context.Context) (*CheckHealthResult, error)
+	CheckHealth(ctx context.Context, req *CheckHealthRequest) (*CheckHealthResult, error)
 }
 
 // HealthStatus is the status of the plugin.
@@ -20,7 +22,14 @@ const (
 	HealthStatusError
 )
 
+// CheckHealthRequest contains the healthcheck request
+type CheckHealthRequest struct {
+	PluginConfig PluginConfig
+}
+
+// CheckHealthResult contains the healthcheck response
 type CheckHealthResult struct {
-	Status HealthStatus
-	Info   string
+	Status      HealthStatus
+	Message     string
+	JSONDetails string
 }
diff --git a/genproto/pluginv2/backend.pb.go b/genproto/pluginv2/backend.pb.go
index 6e39827..ce70d39 100644
--- a/genproto/pluginv2/backend.pb.go
+++ b/genproto/pluginv2/backend.pb.go
@@ -909,9 +909,10 @@ func (m *CheckHealth) XXX_DiscardUnknown() {
 var xxx_messageInfo_CheckHealth proto.InternalMessageInfo
 
 type CheckHealth_Request struct {
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
+	Config               *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
+	XXX_unrecognized     []byte        `json:"-"`
+	XXX_sizecache        int32         `json:"-"`
 }
 
 func (m *CheckHealth_Request) Reset()         { *m = CheckHealth_Request{} }
@@ -939,9 +940,17 @@ func (m *CheckHealth_Request) XXX_DiscardUnknown() {
 
 var xxx_messageInfo_CheckHealth_Request proto.InternalMessageInfo
 
+func (m *CheckHealth_Request) GetConfig() *PluginConfig {
+	if m != nil {
+		return m.Config
+	}
+	return nil
+}
+
 type CheckHealth_Response struct {
 	Status               CheckHealth_Response_HealthStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pluginv2.CheckHealth_Response_HealthStatus" json:"status,omitempty"`
-	Info                 string                            `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
+	Message              string                            `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
+	JsonDetails          string                            `protobuf:"bytes,3,opt,name=jsonDetails,proto3" json:"jsonDetails,omitempty"`
 	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
 	XXX_unrecognized     []byte                            `json:"-"`
 	XXX_sizecache        int32                             `json:"-"`
@@ -979,9 +988,16 @@ func (m *CheckHealth_Response) GetStatus() CheckHealth_Response_HealthStatus {
 	return CheckHealth_Response_UNKNOWN
 }
 
-func (m *CheckHealth_Response) GetInfo() string {
+func (m *CheckHealth_Response) GetMessage() string {
+	if m != nil {
+		return m.Message
+	}
+	return ""
+}
+
+func (m *CheckHealth_Response) GetJsonDetails() string {
 	if m != nil {
-		return m.Info
+		return m.JsonDetails
 	}
 	return ""
 }
@@ -1333,97 +1349,98 @@ func init() {
 func init() { proto.RegisterFile("backend.proto", fileDescriptor_5ab9ba5b8d8b2ba5) }
 
 var fileDescriptor_5ab9ba5b8d8b2ba5 = []byte{
-	// 1436 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcb, 0x8f, 0x1b, 0x45,
-	0x13, 0xff, 0xc6, 0x8f, 0xb5, 0xa7, 0xec, 0x6c, 0x9c, 0xce, 0x2a, 0xb1, 0x26, 0xf9, 0xf6, 0x73,
-	0xac, 0xe8, 0x63, 0xc3, 0xc3, 0x01, 0xe7, 0x00, 0x4a, 0x24, 0x50, 0xf0, 0x3a, 0xaf, 0xcd, 0x66,
-	0x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b7, 0xf7, 0xc1, 0x7e, 0xc0, 0x49, 0x14, 0x2b, 0xff, 0x5e,
+	0x8d, 0xc9, 0xcf, 0xe0, 0x54, 0x66, 0x52, 0xba, 0xfe, 0x09, 0x71, 0x0f, 0x5f, 0x91, 0xe9, 0xa7,
+	0x16, 0x9c, 0xcc, 0x1a, 0x5e, 0xbf, 0x14, 0xe8, 0x63, 0xa8, 0xf5, 0x59, 0x14, 0x51, 0x57, 0xa0,
+	0x25, 0xcf, 0x88, 0xe3, 0x1c, 0x43, 0x9f, 0x86, 0x8e, 0xde, 0xb5, 0x24, 0xdb, 0x1e, 0x70, 0xe6,
+	0xd2, 0x38, 0x46, 0xce, 0x72, 0x9e, 0x5d, 0x65, 0x04, 0x7d, 0x04, 0xb0, 0xe3, 0xc7, 0x6e, 0xe6,
+	0x86, 0xfe, 0x45, 0xef, 0xa6, 0xbf, 0xe8, 0xdd, 0x81, 0xfc, 0x45, 0x77, 0x5a, 0xc7, 0x58, 0x50,
+	0xac, 0xd5, 0xbb, 0x29, 0x81, 0x21, 0x3b, 0x95, 0x72, 0x74, 0x0d, 0xd6, 0xf4, 0x1a, 0x9d, 0xcd,
+	0xf7, 0x2f, 0x90, 0x57, 0xd1, 0xd0, 0x62, 0x83, 0x8f, 0xd6, 0xd4, 0x95, 0x57, 0xfe, 0x0e, 0x00,
+	0x00, 0xff, 0xff, 0xac, 0x22, 0x7c, 0x48, 0x3e, 0x10, 0x00, 0x00,
 }
 
 // Reference imports to suppress errors if they are not otherwise used.
diff --git a/proto/backend.proto b/proto/backend.proto
index cbb6922..0559750 100644
--- a/proto/backend.proto
+++ b/proto/backend.proto
@@ -135,6 +135,7 @@ message CollectMetrics {
 
 message CheckHealth {
   message Request {
+    PluginConfig config = 1;
   }
 
   message Response {
@@ -145,7 +146,8 @@ message CheckHealth {
     }
 
     HealthStatus status = 1;
-    string info = 2;
+    string message = 2;
+    string jsonDetails = 3;
   }
 }
 


Test patch:
diff --git a/backend/adapter_diagnostics_test.go b/backend/adapter_diagnostics_test.go
index 4e78981..22636ec 100644
--- a/backend/adapter_diagnostics_test.go
+++ b/backend/adapter_diagnostics_test.go
@@ -34,35 +34,44 @@ func TestCheckHealth(t *testing.T) {
 		require.NoError(t, err)
 		require.NotNil(t, res)
 		require.Equal(t, pluginv2.CheckHealth_Response_OK, res.Status)
-		require.Empty(t, res.Info)
+		require.Empty(t, res.Message)
+		require.Empty(t, res.JsonDetails)
 	})
 
 	t.Run("When check health handler set should call that", func(t *testing.T) {
 		tcs := []struct {
-			status         HealthStatus
-			info           string
-			err            error
-			expectedStatus pluginv2.CheckHealth_Response_HealthStatus
-			expectedInfo   string
-			expectedError  bool
+			status              HealthStatus
+			message             string
+			jsonDetails         string
+			err                 error
+			expectedStatus      pluginv2.CheckHealth_Response_HealthStatus
+			expectedMessage     string
+			expectedJSONDetails string
+			expectedError       bool
 		}{
 			{
-				status:         HealthStatusUnknown,
-				info:           "unknown",
-				expectedStatus: pluginv2.CheckHealth_Response_UNKNOWN,
-				expectedInfo:   "unknown",
+				status:              HealthStatusUnknown,
+				message:             "unknown",
+				jsonDetails:         "{}",
+				expectedStatus:      pluginv2.CheckHealth_Response_UNKNOWN,
+				expectedMessage:     "unknown",
+				expectedJSONDetails: "{}",
 			},
 			{
-				status:         HealthStatusOk,
-				info:           "all good",
-				expectedStatus: pluginv2.CheckHealth_Response_OK,
-				expectedInfo:   "all good",
+				status:              HealthStatusOk,
+				message:             "all good",
+				jsonDetails:         "{}",
+				expectedStatus:      pluginv2.CheckHealth_Response_OK,
+				expectedMessage:     "all good",
+				expectedJSONDetails: "{}",
 			},
 			{
-				status:         HealthStatusError,
-				info:           "BOOM",
-				expectedStatus: pluginv2.CheckHealth_Response_ERROR,
-				expectedInfo:   "BOOM",
+				status:              HealthStatusError,
+				message:             "BOOM",
+				jsonDetails:         `{"error": "boom"}`,
+				expectedStatus:      pluginv2.CheckHealth_Response_ERROR,
+				expectedMessage:     "BOOM",
+				expectedJSONDetails: `{"error": "boom"}`,
 			},
 			{
 				err:           errors.New("BOOM"),
@@ -73,13 +82,17 @@ func TestCheckHealth(t *testing.T) {
 		for _, tc := range tcs {
 			adapter := &sdkAdapter{
 				CheckHealthHandler: &testCheckHealthHandler{
-					status: tc.status,
-					info:   tc.info,
-					err:    tc.err,
+					status:      tc.status,
+					message:     tc.message,
+					jsonDetails: tc.jsonDetails,
+					err:         tc.err,
 				},
 			}
 
-			res, err := adapter.CheckHealth(context.Background(), &pluginv2.CheckHealth_Request{})
+			req := &pluginv2.CheckHealth_Request{
+				Config: &pluginv2.PluginConfig{},
+			}
+			res, err := adapter.CheckHealth(context.Background(), req)
 			if tc.expectedError {
 				require.Error(t, err)
 				require.Nil(t, res)
@@ -87,21 +100,24 @@ func TestCheckHealth(t *testing.T) {
 				require.NoError(t, err)
 				require.NotNil(t, res)
 				require.Equal(t, tc.expectedStatus, res.Status)
-				require.Equal(t, tc.expectedInfo, res.Info)
+				require.Equal(t, tc.expectedMessage, res.Message)
+				require.Equal(t, tc.expectedJSONDetails, res.JsonDetails)
 			}
 		}
 	})
 }
 
 type testCheckHealthHandler struct {
-	status HealthStatus
-	info   string
-	err    error
+	status      HealthStatus
+	message     string
+	jsonDetails string
+	err         error
 }
 
-func (h *testCheckHealthHandler) CheckHealth(ctx context.Context) (*CheckHealthResult, error) {
+func (h *testCheckHealthHandler) CheckHealth(ctx context.Context, req *CheckHealthRequest) (*CheckHealthResult, error) {
 	return &CheckHealthResult{
-		Status: h.status,
-		Info:   h.info,
+		Status:      h.status,
+		Message:     h.message,
+		JSONDetails: h.jsonDetails,
 	}, h.err
 }