Skip to content
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

No labels and no logs #2446

Closed
nortrom-lh opened this issue Jul 30, 2020 · 2 comments
Closed

No labels and no logs #2446

nortrom-lh opened this issue Jul 30, 2020 · 2 comments

Comments

@nortrom-lh
Copy link

grafana

hello
Installing by docker-compose,but there is no labels in grafana,help check the question。

[root@elk ~]# more docker-compose.yaml
version: "3"

networks:
loki:

services:
loki:
image: grafana/loki:1.4.0
ports:
- "3100:3100"
networks:
- loki
grafana:
image: grafana/grafana:master
ports:
- "3000:3000"
environment:
GF_EXPLORE_ENABLED: "true"
networks:
- loki
promtail:
image: grafana/promtail:master
volumes:
- /tmp/log:/var/log
- /root/promtail:/etc/promtail
networks:
- loki

[root@elk promtail]# more config.yml
server:
http_listen_port: 9080
grpc_listen_port: 0

positions:
filename: /tmp/positions.yaml

clients:

scrape_configs:

  • job_name: system
    static_configs:
    • targets:
      • 192.168.56.107
        labels:
        job: varlogs
        path: /var/log/*log
@slim-bean
Copy link
Collaborator

the promtail scrape config looks incorrect to me:

scrape_configs:
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: varlogs
      __path__: /var/log/*log

It's a bit hard to tell what the indentation is in your example, you can escape blocks of yaml in markdown using three backticks before and after the code section.

It's possible what you have is the same as what I pasted it just didn't format well.

Aside from this check all the logs for promtail and Loki, are there errors?

Also keep in mind the labels in Grafana are only loaded when the page loads or when the time window is changed.

@nortrom-lh
Copy link
Author

Hi,Bean, thank you,you are right,in the docker-compose,there is a problem。

cyriltovena pushed a commit to cyriltovena/loki that referenced this issue Jun 11, 2021
* Moved seriesStore lookupSeriesByMetricNameMatcher to store.lookupChunkIdsByMetricNameMatcher.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Implement optimization for set regex.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Added test for regex set optimization.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Added CHANGELOG.md

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Fix race errors.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Fix compilation errors after rebase.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Rename method to lookupIdsByMetricNameMatcher

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants