This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-28
Channels
- # announcements (11)
- # aws (2)
- # babashka (35)
- # beginners (173)
- # calva (3)
- # chlorine-clover (2)
- # cider (17)
- # clara (2)
- # clj-kondo (28)
- # cljs-dev (11)
- # cljsrn (53)
- # clojure (178)
- # clojure-argentina (1)
- # clojure-europe (12)
- # clojure-germany (5)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (25)
- # clojure-uk (88)
- # clojurescript (109)
- # conjure (34)
- # cursive (2)
- # data-science (35)
- # datomic (15)
- # emacs (6)
- # events (1)
- # fulcro (28)
- # graphql (15)
- # helix (21)
- # hoplon (7)
- # jobs (4)
- # jobs-discuss (1)
- # joker (15)
- # lambdaisland (1)
- # lein-figwheel (4)
- # local-first-clojure (1)
- # malli (8)
- # meander (17)
- # off-topic (33)
- # parinfer (2)
- # rdf (16)
- # re-frame (3)
- # reagent (21)
- # reitit (14)
- # remote-jobs (5)
- # ring (8)
- # rum (1)
- # shadow-cljs (184)
- # sql (2)
- # testing (1)
- # tools-deps (23)
i know this question is 10% Ions and 90% AWS, but maybe one of you experts can help me out. i'm trying to configure a CloudWatch metric (later to be used as an Alarm), which looks for my Ion's cast/alert
s and cast/event
s. after setting up the metric, i have no results in my graph, even though i can find filtered matches in my log streams when i use the same filter pattern.
1. in CloudWatch, i find my datomic-<system-name>
log group
2. i select the radio option and click the Create Metric button
3. i enter the Filter Pattern {$.Msg = "my-specific-cast-event"}
(which works as a normal filter pattern when searching log streams)
4. i choose a Metric Namespace (i don't think it matters which one)
5. i click Create Filter, and the final result is an empty an empty graph
hmm...
NOTE AWS will display all metrics in lowercase with the first character capitalized. As an example, the aforementioned :CodeDeployEvent will display as Codedeployevent in both the metrics and the logs. Additionally, CloudWatch Metrics do not have namespaces, and any namespace provided in the metric name will be ignored.
Are you trying to cast a metric from your local environment? I'm not sure that cast/metric
works locally, it may have to be deployed. It's been a while since I've worked with these.
hey no worries, and thanks for the input. the cast is coming from a deployed environment, and i can see them in my cloudwatch logs. i just can't seem to wrangle them in the CloudWatch Metrics (which i think are different from what Datomic calls Metrics)
when I submit a retract transaction with this form:
[:db/retract entity-id attribute]
I get the following error:
Error printing return value (IndexOutOfBoundsException) at clojure.lang.PersistentVector/arrayFor (PersistentVector.java:158). null
my code specifically looks like:
(d/transact conn [[:db/retract 17592186123123 :entity/attribute]])
and the relevant schema looks like:
{:db/ident :entity/attribute
:db/valueType :db.type/tuple
:db/tupleTypes [:db.type/string :db.type/string]
:db/cardinality :db.cardinality/many}
I don't think the fact that the attribute is a tuple or cardinality many is relevant, I've tried retracting string valued attributes with cardinality one in the same way and gotten the same error.
Looking at the documentation here:
https://docs.datomic.com/on-prem/transactions.html#list-forms
it seems like I should not have to specify a value for a retraction and if the value is not specified it will retract all the attributes that match the supplied entity id and attribute.
Anyone have any thoughts?i think that functionality was introduced only in the very latest release of Datomic (13 Feb 2020). are you on the latest version? https://docs.datomic.com/on-prem/changes.html#0.9.6045 https://docs.datomic.com/cloud/releases.html#616-8879 (cloud)