Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Plugin setup changes:
- Use a less expensive api key check
- Ensure the default DataSet url is set
- Set the power query frequency to high (for performance)

## 3.1.6

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sentinelone-dataset-datasource",
"version": "3.1.6",
"version": "3.1.7",
"description": "Scalyr Observability Platform",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewDataSetClient(dataSetUrl string, apiKey string) DataSetClient {
}

func (d *dataSetClient) newRequest(method, url string, body io.Reader) (*http.Request, error) {
const VERSION = "3.1.6"
const VERSION = "3.1.7"

// Apply the rate limiter to the initial POST request of the LRQ api session.
// This ensures that later LRQ api "pings" (ie GET requests) are not rate-limited;
Expand All @@ -79,7 +79,7 @@ func (d *dataSetClient) newRequest(method, url string, body io.Reader) (*http.Re
// However RoundTrip should not modify the request (ref: go doc net/http.RoundTripper)
request.Header.Set("Authorization", "Bearer "+d.apiKey)
request.Header.Set("Content-Type", "application/json")
request.Header.Set("User-Agent", "sentinelone-dataset-datasource/"+VERSION)
request.Header.Set("User-Agent", "grafana-sentinelone-dataset-datasource/"+VERSION)

return request, nil
}
Expand Down
1 change: 1 addition & 0 deletions pkg/plugin/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func TestClientRateLimiter(t *testing.T) {
Pq: &PQOptions{
Query: "message contains 'error'\n| columns timestamp,severity,message",
ResultType: TABLE,
Frequency: HIGH,
},
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/plugin/lrq_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const COLUMN = "COLUMN"
// PLOT is a value for both a request "type" and a PQ "resultType"
const PLOT = "PLOT"

// Possible values for "frequency" of PLOT requests
// Possible values for "frequency"
const LOW = "LOW"
const HIGH = "HIGH"

Expand Down Expand Up @@ -55,6 +55,7 @@ type TopFacetOptions struct {
type PQOptions struct {
Query string `json:"query"`
ResultType string `json:"resultType"`
Frequency string `json:"frequency"`
}

type PlotOptions struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (d *DataSetDatasource) query(ctx context.Context, query backend.DataQuery)
Pq: &PQOptions{
Query: qm.Expression,
ResultType: TABLE,
Frequency: HIGH,
},
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"path": "img/DatasetConfig.png"
}
],
"version": "3.1.6",
"updated": "2025-09-19"
"version": "3.1.7",
"updated": "2025-09-25"
},
"dependencies": {
"grafanaDependency": ">=8.2.0",
Expand Down
Loading