-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ignoring DynamoDB URL path" #310
Comments
Yes, the issue above caused by the "0/" and "/" symbols in the SECRET_KEY. loki_1 | level=error ts=2019-02-11T14:08:35.322757196Z caller=chunk_store.go:391 org_id=fake msg="error querying storage" err="QueryPage error: table=loki-poc, err=ValidationException: Query condition missed key schema element: OrgID\n\tstatus code: 400, request id: 7INPECMU" |
Hi @setevoy2 Please refer documents from the master branch with the latest commit. So use |
Thanks, @yubozhao! Indeed - there are keys mentioned (now?) in the
Not sure about the 0/ bug (from the http://github.com/weaveworks/common) but anyway it works with new keys, so it's OK for now. |
I'm getting |
@base698 You can do the same thing as Loki's team with another layer in front of Loki and mutate the incoming requests with the new header. |
You can also do This is where they talked about it https://github.com/grafana/loki/blob/d33722dc71559a1cfd150eb4926b073537ce4c5c/docs/operations.md#authentication |
`auth_enabled: false` results in a 400 error "sample missing metric name"
which is in the code here:
https://github.com/grafana/loki/blob/master/vendor/github.com/cortexproject/cortex/pkg/util/validation/validate.go#L16
It works locally with a config that doesn't have the AWS stuff in it. 🤷
…On Sun, Apr 28, 2019 at 11:38 AM Bozhao ***@***.***> wrote:
You can also do auth_enabled: false in the Loki's configuration setting.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#310 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABSVGXEQXAZ3G5LHKATB5DPSXVLZANCNFSM4GWQ4SLQ>
.
|
Hmm interesting. I have ours running on k8s/aws with dynamodb/s3. I don’t think I did anything different. Maybe an older version? Keep me posted with your progress. Want to learn |
Yeah I've been digging through the code. It's looking for metric name in
the label to have __name__ which is not sent by promtail.
…On Sun, Apr 28, 2019, 1:41 PM Bozhao ***@***.***> wrote:
Hmm interesting. I have ours running on k8s/aws with dynamodb/s3. I don’t
think I did anything different. Maybe an older version? Keep me posted with
your progress. Want to learn
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#310 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABSVGQL24AGUMUI4FNYV7LPSYDZLANCNFSM4GWQ4SLQ>
.
|
In this file: https://github.com/grafana/loki/blob/master/pkg/promtail/targets/filetargetmanager.go#L171 Adding:
Fixes it. I see the logs now in loki |
Cool glad you figured it out. Enjoy your Sunday! |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Facing the same issue. I didn't understand where to add this line of code |
Update from upstream repository
Hi.
I'm trying to configure an S3 bucket and DynamoDB's table to be used from Loki using two examples - here and here.
The first one says:
And the second one is:
But using both examples - I'm getting the error:
Then once any request made from Grafana - Loki going down with another error:
Can't understand this message:
Why it's starting from the "W8/+" if inside config it looks like:
The SECRET_KEY is stating from the "0/W8/+" symbols - not "W8/+C" - where the "0/" symbol missed? Mybe a bug with "0/"? Or just my wrong configuration?
DymanoDB table "loki-poc" was created manually, with the OrgID as a primary key filed (not sure this is correct).
Trying to add the quotes around it - but didn't help.
The text was updated successfully, but these errors were encountered: