canonical / grafana-agent-operator

https://charmhub.io/grafana-agent
Apache License 2.0
4 stars 11 forks source link

Grafana-agent is in blocked status even if there exists a tracing relation #192

Open shayancanonical opened 1 month ago

shayancanonical commented 1 month ago

Bug Description

Grafana-agent unit and app are in blocked status even if there is a tracing relation (with no relations to prometheus, grafana or loki)

To Reproduce

  1. juju deploy -n 1 mysql --channel latest/edge (after this PR is merged)
  2. juju deploy -n 1 grafana-agent
  3. juju relate mysql grafana-agent
  4. juju relate grafana-agent tempo (where tempo is an offer consumed from the tempo_coordinator_k8s in the COS model)

Environment

juju: 3.5.4 lxd: 6.1 grafana-agent rev: 282

Relevant log output

n/a

Additional context

juju status:

Model     Controller  Cloud/Region         Version  SLA          Timestamp
database  lxd-3-5-4   localhost/localhost  3.5.4    unsupported  19:15:55Z

SAAS   Status  Store       URL
tempo  active  uk8s-3-5-4  admin/cos.tempo

App            Version          Status   Scale  Charm          Channel      Rev  Exposed  Message
grafana-agent                   blocked      1  grafana-agent  latest/edge  282  no       Missing ['grafana-cloud-config']|['grafana-dashboards-provider']|['logging-consumer']|['send-remote-write'] for cos-a...
mysql          8.0.37-0ubun...  active       1  mysql                         0  no       

Unit                Workload  Agent  Machine  Public address  Ports           Message
mysql/0*            active    idle   0        10.205.193.32   3306,33060/tcp  Primary
  grafana-agent/0*  blocked   idle            10.205.193.32                   Missing ['grafana-cloud-config']|['grafana-dashboards-provider']|['logging-consumer']|['send-remote-write'] for cos-a...

Machine  State    Address        Inst id        Base          AZ  Message
0        started  10.205.193.32  juju-4f3e50-0  ubuntu@22.04      Running

Integration provider  Requirer                 Interface              Type         Message
grafana-agent:peers   grafana-agent:peers      grafana_agent_replica  peer         
mysql:cos-agent       grafana-agent:cos-agent  cos_agent              subordinate  
mysql:database-peers  mysql:database-peers     mysql_peers            peer         
mysql:restart         mysql:restart            rolling_op             peer         
mysql:upgrade         mysql:upgrade            upgrade                peer         
tempo:tracing         grafana-agent:tracing    tracing                regular  
Abuelodelanada commented 2 weeks ago

We need to add the tracing relation as one of the mandatory relation-pairs