Skip to content

Commit

Permalink
PMM-12913 minor syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Jun 6, 2024
1 parent 605ed44 commit 3779c33
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions api/MIGRATION_EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ curl -X GET http://admin:[email protected]:8080/v1/backups/bcc83096-b006-4d2e-ac17
### POST /v1/backup/Backups/GetLogs -> GET /v1/backups/restores/{restore_id}/logs (this is a second endpoint, that accepts artifact_id)
curl -X GET http://admin:[email protected]:8080/v1/backups/restores/bcc83096-b006-4d2e-ac17-365a57c3e37a/logs

### POST /v1/alerting/Rules/Create -> POST /v1/alerting/rules
curl -X POST -d '{"severity":"SEVERITY_CRITICAL","template_name":"mongodb_down","folder_uid":"fdjhiflcwnytcc","name":"MongoDB Down Alerting Rule","group":"MongoDB"}' http://admin:[email protected]:8080/v1/alerting/rules

### POST /v0/qan/Filters/Get -> POST /v1/qan/metrics:getFilters
curl -X POST -d '{"period_start_from": "2024-05-21T06:50:00Z", "period_start_to": "2025-05-28T14:00:00Z"}' http://admin:[email protected]:8080/v1/qan/metrics:getFilters

Expand All @@ -85,5 +88,12 @@ curl -X POST -d '{"filter_by":"-6680645881763619241","group_by":"queryid","label
### POST /v0/qan/GetMetricsNames -> POST /v1/qan/metrics:getNames
curl -X POST -d '{}' http://admin:[email protected]:8080/v1/qan/metrics:getNames

### POST /v1/alerting/Rules/Create -> POST /v1/alerting/rules
curl -X POST -d '{"severity":"SEVERITY_CRITICAL","template_name":"mongodb_down","folder_uid":"fdjhiflcwnytcc","name":"MongoDB Down Alerting Rule","group":"MongoDB"}' http://admin:[email protected]:8080/v1/alerting/rules
### POST /v0/qan/ObjectDetails/GetLables -> POST /v1/qan:getLabels
curl -X POST -d '{"filter_by":"-6680645881763619241","group_by":"queryid","labels":[],"period_start_from":"2024-05-29T23:32:25+03:00","period_start_to":"2024-05-30T11:32:25+03:00","tables":[],"totals":false}' http://admin:[email protected]:8080/v1/qan:getLabels

### POST /v0/qan/ObjectDetails/GetHistogram -> POST /v1/qan:getHistogram
curl -X POST -d '{"queryid": "32b9a8dbf71f9d7b202fe117ebc72ce060bf304b504dbeae74da8782a5d27edf","period_start_from":"2024-05-29T23:32:25+03:00","period_start_to":"2024-05-30T11:32:25+03:00"}' http://admin:[email protected]:8080/v1/qan:getHistogram

### POST /v0/qan/ObjectDetails/ExplainFingerprintByQueryId -> POST /v1/qan:explainFingerprint
curl -X POST -d '{"queryid": "32b9a8dbf71f9d7b202fe117ebc72ce060bf304b504dbeae74da8782a5d27edf","period_start_from":"2024-05-29T23:32:25+03:00","period_start_to":"2024-05-30T11:32:25+03:00"}' http://admin:[email protected]:8080/v1/qan:explainFingerprint

2 changes: 1 addition & 1 deletion build/ansible/roles/nginx/files/conf.d/pmm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@

# pmm-dump artifacts
location /dump {
alias /srv/dump/;
alias /srv/dump/;
}

# This localtion stores static content for general pmm-server purposes.
Expand Down
2 changes: 1 addition & 1 deletion utils/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func PMMHTTPErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler r

md, ok := runtime.ServerMetadataFromContext(ctx)
if !ok {
grpclog.Infof("Failed to extract ServerMetadata from context")
grpclog.Info("Failed to extract ServerMetadata from context")
}

handleForwardResponseServerMetadata(w, mux, md)
Expand Down

0 comments on commit 3779c33

Please sign in to comment.